image.mk: fix profile selection in the image builder
authorFelix Fietkau <nbd@nbd.name>
Sun, 22 May 2016 17:51:00 +0000 (19:51 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sun, 22 May 2016 17:51:00 +0000 (19:51 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/image.mk

index ac8cc2e333cc2575bb7b3c21ee2bcb3b638db09c..1ae14dd52bcfb9c1d8756f39f5674d11c2a4a641 100644 (file)
@@ -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))))