From: Felix Fietkau Date: Thu, 13 Aug 2015 19:35:26 +0000 (+0000) Subject: image: fix device variable exports for initramfs images X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=18bacf61fd495631bd238bc54e9e2ce7b2da0dbc;p=openwrt%2Fsvn-archive%2Farchive.git image: fix device variable exports for initramfs images Signed-off-by: Felix Fietkau Backport of r46496 SVN-Revision: 46590 --- diff --git a/include/image.mk b/include/image.mk index 020418d54d..28cf36aaa0 100644 --- a/include/image.mk +++ b/include/image.mk @@ -364,6 +364,7 @@ endef ifndef IB define Device/Build/initramfs + $(call Device/Export,$(KDIR)/tmp/$$(KERNEL_INITRAMFS_IMAGE),$(1)) $$(_TARGET): $(BIN_DIR)/$$(KERNEL_INITRAMFS_IMAGE) $(KDIR)/$$(KERNEL_NAME)-initramfs: image_prepare @@ -411,7 +412,6 @@ endef define Device/Build/image $$(_TARGET): $(BIN_DIR)/$(call IMAGE_NAME,$(1),$(2)) $(eval $(call Device/Export,$(KDIR)/$(KERNEL_IMAGE),$(1))) - $(eval $(call Device/Export,$(KDIR)/tmp/$(KERNEL_INITRAMFS_IMAGE),$(1))) $(eval $(call Device/Export,$(KDIR)/tmp/$(call IMAGE_NAME,$(1),$(2)),$(1))) $(KDIR)/tmp/$(call IMAGE_NAME,$(1),$(2)): $(KDIR)/$$(KERNEL_IMAGE) $(KDIR)/root.$(1) @rm -f $$@