aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-01-18 09:25:59 +0100
committerChristian Lamparter <chunkeey@gmail.com>2019-02-05 19:37:30 +0100
commitbb23cb1bf2a32d1441720ae50bc354b8811b4bc7 (patch)
treece359868826919af8a9a33707427e3085c71bc00 /include
parentbe2b61e4f1ec1e351733bebb7105629599034639 (diff)
downloadupstream-bb23cb1bf2a32d1441720ae50bc354b8811b4bc7.tar.gz
upstream-bb23cb1bf2a32d1441720ae50bc354b8811b4bc7.tar.bz2
upstream-bb23cb1bf2a32d1441720ae50bc354b8811b4bc7.zip
build: Fix missing device variables for artifacts
It was reported to me today on IRC, that building of artifacts doesn't work properly if the concat_cmd references DEVICE_NAME variable. I've found out, that it's due to missing call of Device/Export in artifacts building code path, so this patch adds the missing Device/Export call which in turn exports DEFAULT_DEVICE_VARS into the artifacts environment. Fixes: 493c9a35516c ("build: Introduce building of artifacts") Tested-by: Oskari Lemmela <oskari@lemmela.net> Reported-by: Oskari Lemmela <oskari@lemmela.net> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'include')
-rw-r--r--include/image.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/image.mk b/include/image.mk
index 4307ead78b..4851a71bcd 100644
--- a/include/image.mk
+++ b/include/image.mk
@@ -527,6 +527,7 @@ endef
define Device/Build/artifact
$$(_TARGET): $(BIN_DIR)/$(IMAGE_PREFIX)-$(1)
+ $(eval $(call Device/Export,$(KDIR)/tmp/$(IMAGE_PREFIX)-$(1)))
$(KDIR)/tmp/$(IMAGE_PREFIX)-$(1): $$(KDIR_KERNEL_IMAGE)
@rm -f $$@
$$(call concat_cmd,$(ARTIFACT/$(1)))