image.mk: fix profile selection in the image builder
Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
df98acc6a1
commit
e00770f093
@ -471,7 +471,11 @@ define Device/Export
|
|||||||
$(1) : FILESYSTEM:=$(2)
|
$(1) : FILESYSTEM:=$(2)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
DEVICE_CHECK_PROFILE = $(CONFIG_TARGET_$(call target_conf,$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET)))_$(1))
|
ifdef IB
|
||||||
|
DEVICE_CHECK_PROFILE = $(filter $(1),$(PROFILE))
|
||||||
|
else
|
||||||
|
DEVICE_CHECK_PROFILE = $(CONFIG_TARGET_$(call target_conf,$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET)))_$(1))
|
||||||
|
endif
|
||||||
|
|
||||||
define Device/Check
|
define Device/Check
|
||||||
_PROFILE_SET = $$(strip $$(foreach profile,$$(PROFILES) DEVICE_$(1),$$(call DEVICE_CHECK_PROFILE,$$(profile))))
|
_PROFILE_SET = $$(strip $$(foreach profile,$$(PROFILES) DEVICE_$(1),$$(call DEVICE_CHECK_PROFILE,$$(profile))))
|
||||||
|
Loading…
Reference in New Issue
Block a user