summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2015-02-07 19:28:21 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-02-07 20:46:05 +0100
commite91dfc68d7e7957e37e8125bf1ee982d94f53c51 (patch)
tree551142193dcbab0cae0cf6ed8cb6660d239ba4f6
parentb92602fe2f12919ebbd4d8bea61a198a6c9dbe79 (diff)
downloadbuildroot-e91dfc68d7e7957e37e8125bf1ee982d94f53c51.tar.gz
buildroot-e91dfc68d7e7957e37e8125bf1ee982d94f53c51.zip
br2-external: make it available to post-{build, image} scripts
Currently, BR2_EXTERNAL is not always exported to sub-processes that we spawn, like post-build or post-image scripts. This all depends on how the user passes BR2_EXTERNAL; consider the following: - make BR2_EXTERNAL=/path/to/br2-ext - BR2_EXTERNAL=/path/to/br2-ext make In the first case, it is just a make variable, not an environment variable, and thus not exported, while in the second case it is an environment variable and gets exported to all sub-processes make may spawn. Explicitly export it using EXTRA_ENV. Reported-by: Julian Scheel <julian@jusst.de> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Julian Scheel <julian@jusst.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index 70529f8a5b..803b162a74 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -326,7 +326,8 @@ HOST_MAKE_ENV = \
EXTRA_ENV = \
PATH=$(BR_PATH) \
BR2_DL_DIR=$(BR2_DL_DIR) \
- BUILD_DIR=$(BUILD_DIR)
+ BUILD_DIR=$(BUILD_DIR) \
+ BR2_EXTERNAL=$(BR2_EXTERNAL)
################################################################################
# settings we need to pass to configure
OpenPOWER on IntegriCloud