Make 'make <target>_flash' build the hex file as well.
This commit is contained in:
parent
23ca254277
commit
0cc448e2b2
3
Makefile
3
Makefile
|
@ -468,11 +468,10 @@ TARGETS_FLASH = $(addsuffix _flash,$(VALID_TARGETS) )
|
|||
|
||||
## <TARGET>_flash : build and flash a target
|
||||
$(TARGETS_FLASH):
|
||||
ifneq (,$(findstring /dev/ttyUSB,$(SERIAL_DEVICE)))
|
||||
$(V0) $(MAKE) -j hex TARGET=$(subst _flash,,$@)
|
||||
ifneq (,$(findstring /dev/ttyUSB,$(SERIAL_DEVICE)))
|
||||
$(V0) $(MAKE) tty_flash TARGET=$(subst _flash,,$@)
|
||||
else
|
||||
$(V0) $(MAKE) -j binary TARGET=$(subst _flash,,$@)
|
||||
$(V0) $(MAKE) dfu_flash TARGET=$(subst _flash,,$@)
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue