mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
In order to save people from themselves, force a given FMU version to depend on the corresponding _default IO version. This avoids the risk of building a new FMU ROMFS with an old IO firmware, at the cost of the sanity of anyone reading this.
This commit is contained in:
@@ -121,6 +121,19 @@ $(FIRMWARES): $(BUILD_DIR)%.build/firmware.px4:
|
|||||||
WORK_DIR=$(work_dir) \
|
WORK_DIR=$(work_dir) \
|
||||||
$(FIRMWARE_GOAL)
|
$(FIRMWARE_GOAL)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Make FMU firmwares depend on pre-packaged IO binaries.
|
||||||
|
#
|
||||||
|
# This is a pretty vile hack, since it hard-codes knowledge of the FMU->IO dependency
|
||||||
|
# and forces the _default config in all cases. There has to be a better way to do this...
|
||||||
|
#
|
||||||
|
FMU_VERSION = $(patsubst px4fmu-%,%,$(word 1, $(subst _, ,$(1))))
|
||||||
|
define FMU_DEP
|
||||||
|
$(BUILD_DIR)$(1).build/firmware.px4: $(IMAGE_DIR)px4io-$(call FMU_VERSION,$(1))_default.px4
|
||||||
|
endef
|
||||||
|
FMU_CONFIGS := $(filter px4fmu%,$(CONFIGS))
|
||||||
|
$(foreach config,$(FMU_CONFIGS),$(eval $(call FMU_DEP,$(config))))
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build the NuttX export archives.
|
# Build the NuttX export archives.
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user