aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilien Cuony <maximilien@theglu.org>2015-12-09 20:45:11 +0100
committerMaximilien Cuony <maximilien@theglu.org>2015-12-09 20:45:11 +0100
commitd02e071181e635ecf224350aa13eb120e30e36e5 (patch)
tree41cb94ebdb00595586a9dc5a1024b699c2a097f9 /src
parentc82953d3a633125c091190a6a0f570561dc06642 (diff)
downloadglutte-o-matic-d02e071181e635ecf224350aa13eb120e30e36e5.tar.gz
glutte-o-matic-d02e071181e635ecf224350aa13eb120e30e36e5.tar.bz2
glutte-o-matic-d02e071181e635ecf224350aa13eb120e30e36e5.zip
Make deploy dependant of ELF to autorebuild, reset and run cpu then exit
Diffstat (limited to 'src')
-rw-r--r--src/cw-example/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cw-example/Makefile b/src/cw-example/Makefile
index aa8926d..8a6e463 100644
--- a/src/cw-example/Makefile
+++ b/src/cw-example/Makefile
@@ -111,9 +111,9 @@ clean:
rm -f $(OBJECTS) $(BINDIR)/$(BINELF) $(BINDIR)/$(BINHEX)
# Connect to openocd's gdb server on port 3333
-deploy:
+deploy: $(BINDIR)/$(BINELF)
ifeq ($(wildcard /opt/openocd/bin/openocd),)
- /usr/bin/openocd -f /usr/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset halt"
+ /usr/bin/openocd -f /usr/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset" -c "exit"
else
- /opt/openocd/bin/openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset halt"
+ /opt/openocd/bin/openocd -f /opt/openocd/share/openocd/scripts/board/stm32f4discovery.cfg -c "program bin/"$(BINELF)" verify reset" -c "init" -c "reset" -c "exit"
endif