diff --git a/Makefile b/Makefile index e70060614..be4e2461e 100644 --- a/Makefile +++ b/Makefile @@ -698,7 +698,8 @@ endif ############################## # Firmware files to package -PACKAGE_FW_TARGETS := $(filter-out fw_simposix, $(FW_TARGETS)) +PACKAGE_FW_EXCLUDE := fw_simposix $(if $(PACKAGE_FW_INCLUDE_DISCOVERYF4BARE),,fw_discoveryf4bare) +PACKAGE_FW_TARGETS := $(filter-out $(PACKAGE_FW_EXCLUDE), $(FW_TARGETS)) PACKAGE_ELF_TARGETS := $(filter fw_simposix, $(FW_TARGETS)) # Rules to generate GCS resources used to embed firmware binaries into the GCS.