aboutsummaryrefslogtreecommitdiff
path: root/example/Makefile
diff options
context:
space:
mode:
authorUwe Hermann2009-07-18 02:25:38 +0200
committerUwe Hermann2009-07-18 02:25:38 +0200
commitd7ec6a2983bb0075794c0ce88b08d6fae438b2f8 (patch)
treee0b246b2f832b2d8b6045444078cad363485bfd1 /example/Makefile
parent015b046c1ef74739649f4df0ecc98f3795a9416a (diff)
Make 'flash' target a bit more generic and drop absolute paths.
Diffstat (limited to 'example/Makefile')
-rw-r--r--example/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/example/Makefile b/example/Makefile
index a0f0dbb..0ab8309 100644
--- a/example/Makefile
+++ b/example/Makefile
@@ -72,13 +72,12 @@ clean:
$(Q)rm -f $(BINARY).list
flash:
- $(Q)$(OPENOCD) \
- -f /usr/share/openocd/scripts/interface/jtagkey-tiny.cfg \
- -f /usr/share/openocd/scripts/board/olimex_stm32_h103.cfg \
- -c "init" -c "reset halt" \
- -c "flash write_image erase blink.bin 0x08000000" \
- -c "resume 0x08000000" \
- -c "shutdown"
+ $(Q)$(OPENOCD) -f interface/jtagkey-tiny.cfg \
+ -f board/olimex_stm32_h103.cfg \
+ -c "init" -c "reset halt" \
+ -c "flash write_image erase $(BINARY).bin 0x08000000" \
+ -c "resume 0x08000000" \
+ -c "shutdown"
.PHONY: images clean