Make 'flash' target a bit more generic and drop absolute paths.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user