1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

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

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