summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2017-07-14 15:04:17 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-15 10:10:56 +0200
commit0e99bef2fbffd521f457d199c76e42534cc8d419 (patch)
treee1af52d18942c5feab352415e0d0e3aa50cfdd09 /package
parenta3da7980eb4744248b0f83e07cfdb42ae82ccf6f (diff)
downloadbuildroot-0e99bef2fbffd521f457d199c76e42534cc8d419.tar.gz
buildroot-0e99bef2fbffd521f457d199c76e42534cc8d419.zip
package/Makefile.in: export O= to post-build/image scripts for out-of-tree builds
Sometimes it can be interesting to call back into buildroot from a post-build/image script (E.G. make printvars or similar). For this to work correctly with out-of-tree builds we need to pass O= to make, but this is currently not available in the environment of post-build/image scripts. In concept, O could be derrived from BUILD_DIR (E.G. by stripping /build), but directly exporting O is cleaner. O= cannot be exported globally as it interferes with various build systems, so instead add it to EXTRA_ENV. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index b95e5e3fa8..a2b0d90f32 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -309,7 +309,8 @@ HOST_CONFIGURE_OPTS = \
EXTRA_ENV = \
PATH=$(BR_PATH) \
BR2_DL_DIR=$(BR2_DL_DIR) \
- BUILD_DIR=$(BUILD_DIR)
+ BUILD_DIR=$(BUILD_DIR) \
+ O=$(CANONICAL_O)
################################################################################
# settings we need to pass to configure
OpenPOWER on IntegriCloud