diff mbox

[git,commit] Makefile: export BUILD_DIR

Message ID 7EC43AD3B54844BEAC908529E9E57748@JohanW7
State Superseded
Headers show

Commit Message

Sagaert Johan Oct. 24, 2013, 2:53 p.m. UTC
Hi All

What is the difference between TOPDIR and BASE_DIR variables?

Johan

-----Oorspronkelijk bericht-----
Van: buildroot-bounces@busybox.net [mailto:buildroot-bounces@busybox.net] Namens Peter Korsgaard
Verzonden: donderdag 24 oktober 2013 8:47
Aan: buildroot@busybox.net
Onderwerp: [Buildroot] [git commit] Makefile: export BUILD_DIR

commit: http://git.buildroot.net/buildroot/commit/?id=feb0877015cc0c644129e69276b3000c83742750
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

$(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.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 Makefile                         |    1 +
 docs/manual/customize-rootfs.txt |    3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

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

Comments

Thomas Petazzoni Oct. 27, 2013, 4:31 p.m. UTC | #1
Dear Sagaert Johan,

On Thu, 24 Oct 2013 16:53:28 +0200, Sagaert Johan wrote:

> What is the difference between TOPDIR and BASE_DIR variables?

TOPDIR is the root of the Buildroot source tree.

BASE_DIR is the root of where we do the build (i.e output/ by default,
but can be overridden with O=).

Best regards,

Thomas
diff mbox

Patch

diff --git a/Makefile b/Makefile
index f266e2d..9528703 100644
--- a/Makefile
+++ b/Makefile
@@ -291,6 +291,7 @@  export STAGING_DIR
 export HOST_DIR
 export BINARIES_DIR
 export BASE_DIR
+export BUILD_DIR
 
 ################################################################################
 #
diff --git a/docs/manual/customize-rootfs.txt b/docs/manual/customize-rootfs.txt
index 49a6b4b..158389c 100644
--- a/docs/manual/customize-rootfs.txt
+++ b/docs/manual/customize-rootfs.txt
@@ -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