Skip to content

Commit e8c0942

Browse files
committed
Makefile: Fix the flash-to-device helper rules
1 parent d572d26 commit e8c0942

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,13 @@ BAUD=115200
127127
DEV=/dev/ttyUSB0
128128
SUDO=sudo
129129
STM32FLASH=stm32flash
130+
T=out/$(target)/target.hex
130131

131132
ocd: FORCE all
132-
$(PYTHON) scripts/openocd/flash.py $(target)/target.hex
133+
$(PYTHON) scripts/openocd/flash.py $(T)
133134

134135
flash: FORCE all
135-
$(SUDO) $(STM32FLASH) -b $(BAUD) -w $(target)/target.hex $(DEV)
136+
$(SUDO) $(STM32FLASH) -b $(BAUD) -w $(T) $(DEV)
136137

137138
start: FORCE
138139
$(SUDO) $(STM32FLASH) -b $(BAUD) -g 0 $(DEV)

0 commit comments

Comments
 (0)