Make 'make <target>_flash' build the hex file as well.

This commit is contained in:
mikeller 2019-06-29 18:38:35 +12:00
parent 23ca254277
commit 0cc448e2b2
1 changed files with 1 additions and 2 deletions

View File

@ -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