From bbf13d61b7377b5114d9c716b7326f3f2bc468c1 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Fri, 14 Aug 2015 13:05:22 +0000 Subject: 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46597 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/image.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/image.mk') 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 -- cgit v1.2.3