diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-05-22 19:51:00 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-22 19:51:00 +0200 |
commit | e00770f093f1a9f216bb2fbf5964549c7cc20c43 (patch) | |
tree | 4e39770944b21f868f08bd9af79602e3f44ef1ac | |
parent | df98acc6a1252456608958fc17f7da3ae4cfb46c (diff) | |
download | mtk-20170518-e00770f093f1a9f216bb2fbf5964549c7cc20c43.zip mtk-20170518-e00770f093f1a9f216bb2fbf5964549c7cc20c43.tar.gz mtk-20170518-e00770f093f1a9f216bb2fbf5964549c7cc20c43.tar.bz2 |
image.mk: fix profile selection in the image builder
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r-- | include/image.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk index ac8cc2e..1ae14dd 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)))) |