1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 20:35:33 +03:00

Make 'make <target>_flash' build the hex file as well. (#8501)

Make 'make <target>_flash' build the hex file as well.
This commit is contained in:
Michael Keller 2019-06-30 22:41:31 +12:00 committed by GitHub
commit e0ffdc8c2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -468,11 +468,10 @@ TARGETS_FLASH = $(addsuffix _flash,$(VALID_TARGETS) )
## <TARGET>_flash : build and flash a target ## <TARGET>_flash : build and flash a target
$(TARGETS_FLASH): $(TARGETS_FLASH):
ifneq (,$(findstring /dev/ttyUSB,$(SERIAL_DEVICE)))
$(V0) $(MAKE) -j hex TARGET=$(subst _flash,,$@) $(V0) $(MAKE) -j hex TARGET=$(subst _flash,,$@)
ifneq (,$(findstring /dev/ttyUSB,$(SERIAL_DEVICE)))
$(V0) $(MAKE) tty_flash TARGET=$(subst _flash,,$@) $(V0) $(MAKE) tty_flash TARGET=$(subst _flash,,$@)
else else
$(V0) $(MAKE) -j binary TARGET=$(subst _flash,,$@)
$(V0) $(MAKE) dfu_flash TARGET=$(subst _flash,,$@) $(V0) $(MAKE) dfu_flash TARGET=$(subst _flash,,$@)
endif endif