aboutsummaryrefslogtreecommitdiffstats
path: root/include/image.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-22 12:43:54 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-29 10:18:26 +0200
commitc792c7512c8e7cfd4e76155369eb8f437977f3e9 (patch)
treeb54e77b745b3e5ab2a04543141fc9bfc14ffa6cb /include/image.mk
parent731b166528658e0b89f6bd0e589f029eb665f7a6 (diff)
downloadupstream-c792c7512c8e7cfd4e76155369eb8f437977f3e9.tar.gz
upstream-c792c7512c8e7cfd4e76155369eb8f437977f3e9.tar.bz2
upstream-c792c7512c8e7cfd4e76155369eb8f437977f3e9.zip
build: add target_params variable for getting root filesystem image parameters
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/image.mk')
-rw-r--r--include/image.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk
index 2ed089d0c7..8cc6a91373 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -16,6 +16,7 @@ include $(INCLUDE_DIR)/image-legacy.mk
override MAKE:=$(_SINGLE)$(SUBMAKE)
override NO_TRACE_MAKE:=$(_SINGLE)$(NO_TRACE_MAKE)
+target_params = $(subst +,$(space),$*)
param_get = $(patsubst $(1)=%,%,$(filter $(1)=%,$(2)))
param_mangle = $(subst $(space),_,$(strip $(1)))
param_unmangle = $(subst _,$(space),$(1))
@@ -272,7 +273,7 @@ ifdef CONFIG_TARGET_ROOTFS_CPIOGZ
endif
$(KDIR)/root.%: kernel_prepare
- $(call Image/mkfs/$(word 1,$(subst +,$(space),$*)),$(subst +,$(space),$*))
+ $(call Image/mkfs/$(word 1,$(target_params)),$(target_params))
define Device/InitProfile
PROFILES := $(PROFILE)