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:
commit
e0ffdc8c2f
1 changed files with 1 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue