aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-08-14 13:05:22 +0000
committerJonas Gorski <jogo@openwrt.org>2015-08-14 13:05:22 +0000
commit8e69c9f7ef2e1ca40b33a4a33c76b460c1f62861 (patch)
tree350321a0e1cd4bf2449f960da1422253c73d2cff /include
parent4ecae78c1605e48d35f130dbd62b7b3dcb9a0540 (diff)
downloadupstream-8e69c9f7ef2e1ca40b33a4a33c76b460c1f62861.tar.gz
upstream-8e69c9f7ef2e1ca40b33a4a33c76b460c1f62861.tar.bz2
upstream-8e69c9f7ef2e1ca40b33a4a33c76b460c1f62861.zip
image.mk: store the device name variable
Make the device name accessible for any build commands instead of forcing targets to define it themselves. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46597
Diffstat (limited to 'include')
-rw-r--r--include/image.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/image.mk b/include/image.mk
index 583bc66157..5722231044 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -367,6 +367,7 @@ endef
define Device/Init
PROFILES := $(PROFILE)
+ DEVICE_NAME := $(1)
KERNEL:=
KERNEL_INITRAMFS = $$(KERNEL)
KERNEL_SIZE:=
@@ -391,7 +392,7 @@ define Device/ExportVar
endef
define Device/Export
- $(foreach var,$(DEVICE_VARS) KERNEL KERNEL_INITRAMFS,$(call Device/ExportVar,$(1),$(var)))
+ $(foreach var,$(DEVICE_VARS) DEVICE_NAME KERNEL KERNEL_INITRAMFS,$(call Device/ExportVar,$(1),$(var)))
$(1) : FILESYSTEM:=$(2)
endef