From: Felix Fietkau Date: Sun, 22 May 2016 17:51:00 +0000 (+0200) Subject: image.mk: fix profile selection in the image builder X-Git-Tag: v17.01.0-rc1~2699 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e00770f093f1a9f216bb2fbf5964549c7cc20c43;p=openwrt%2Fstaging%2Fchunkeey.git image.mk: fix profile selection in the image builder Signed-off-by: Felix Fietkau --- diff --git a/include/image.mk b/include/image.mk index ac8cc2e333..1ae14dd52b 100644 --- a/include/image.mk +++ b/include/image.mk @@ -471,7 +471,11 @@ define Device/Export $(1) : FILESYSTEM:=$(2) 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 _PROFILE_SET = $$(strip $$(foreach profile,$$(PROFILES) DEVICE_$(1),$$(call DEVICE_CHECK_PROFILE,$$(profile))))