Skip to contentSkip to conversation

Makefile: export BUILD_DIR

PATCH New Yann E. MORIN 2 participants 2 messages Oct 23, 2013 – Oct 24, 2013 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: export BUILD_DIR

From: "Yann E. MORIN" <[email protected]>

$(BUILD_DIR) is a nice place to put files generated during the build. With the advent of user-supplied step-hooks, they may want to store some information on the build.

Export BUILD_DIR to that effect; update manual accordingly.

---
v2: update documentation (Peter)

---
 Makefile                         | 1 +
 docs/manual/customize-rootfs.txt | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
Makefile +1 -0
index f266e2d..9528703 100644
@@ -291,6 +291,7 @@ export STAGING_DIR
 export HOST_DIR
 export BINARIES_DIR
 export BASE_DIR
+export BUILD_DIR
 
 ################################################################################
 #
docs/manual/customize-rootfs.txt +2 -1
index 49a6b4b..158389c 100644
@@ -41,6 +41,7 @@ there are a few ways to customize the resulting target filesystem.
     - +BUILDROOT_CONFIG+: the path to the Buildroot .config file
     - +HOST_DIR+, +STAGING_DIR+, +TARGET_DIR+: see
       xref:generic-package-reference[]
+    - +BUILD_DIR+: the directory where packages are extracted and built
     - +BINARIES_DIR+: the place where all binary files (aka images) are
       stored
     - +BASE_DIR+: the base output directory
@@ -79,7 +80,7 @@ in one of these _post-image scripts_ will require special handling
 Just like for the _post-build scripts_ mentioned above, you also have
 access to the following environment variables from your _post-image
 scripts_: +BUILDROOT_CONFIG+, +HOST_DIR+, +STAGING_DIR+, +TARGET_DIR+,
-+BINARIES_DIR+ and +BASE_DIR+.
++BUILD_DIR+, +BINARIES_DIR+ and +BASE_DIR+.
 
 Additionally, each of the +BR2_ROOTFS_POST_BUILD_SCRIPT+ and
 +BR2_ROOTFS_POST_IMAGE_SCRIPT+ scripts will be passed the arguments
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 Makefile: export BUILD_DIR

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

From: "Yann E. MORIN" <[email protected]> $(BUILD_DIR) is a nice place to put files generated during the build. With the advent of user-supplied step-hooks, they may want to store some information on the build.

Quoted 6 lines

Export BUILD_DIR to that effect; update manual accordingly.

---
v2: update documentation (Peter)

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard