All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 2/2] doc: Use KBUILD_OUTPUT instead of BUILD_DIR
@ 2014-08-31 15:50 Jagannadha Sutradharudu Teki
  2014-09-18  4:42 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Jagannadha Sutradharudu Teki @ 2014-08-31 15:50 UTC (permalink / raw)
  To: u-boot

From: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>

Now saving output files in a separate directory through
KBUILD_OUTPUT not with BUILD_DIR, so updated the documentation
accordingly.

Signed-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
---
Changes for v2:
	- none

 MAKEALL             | 12 ++++++------
 README              | 10 +++++-----
 doc/README.kwbimage |  4 ++--
 3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/MAKEALL b/MAKEALL
index 392ea8d..187770b 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -42,7 +42,7 @@ usage()
 			   architecture "ARCH".  Substitute "ARCH" for any
 			   supported architecture (default: "")
 	  MAKEALL_LOGDIR   output all logs to here (default: ./LOG/)
-	  BUILD_DIR        output build directory (default: ./)
+	  KBUILD_OUTPUT	   output build directory (default: ./)
 	  BUILD_NBUILDS	   number of parallel targets (default: 1)
 
 	Examples:
@@ -223,14 +223,14 @@ BUILD_MANY=0
 
 if [ "${BUILD_NBUILDS}" -gt 1 ] ; then
 	BUILD_MANY=1
-	: ${BUILD_DIR:=./build}
-	mkdir -p "${BUILD_DIR}/ERR"
-	find "${BUILD_DIR}/ERR/" -type f -exec rm -f {} +
+	: ${KBUILD_OUTPUT:=./build}
+	mkdir -p "${KBUILD_OUTPUT}/ERR"
+	find "${KBUILD_OUTPUT}/ERR/" -type f -exec rm -f {} +
 fi
 
-: ${BUILD_DIR:=.}
+: ${KBUILD_OUTPUT:=.}
 
-OUTPUT_PREFIX="${BUILD_DIR}"
+OUTPUT_PREFIX="${KBUILD_OUTPUT}"
 
 [ -d ${LOG_DIR} ] || mkdir "${LOG_DIR}" || exit 1
 if [ "$CONTINUE" != 'y' -a "$REBUILD_ERRORS" != 'y' ] ; then
diff --git a/README b/README
index e88184b..8e05f69 100644
--- a/README
+++ b/README
@@ -4969,14 +4969,14 @@ this behavior and build U-Boot to some external directory:
 	make O=/tmp/build NAME_defconfig
 	make O=/tmp/build all
 
-2. Set environment variable BUILD_DIR to point to the desired location:
+2. Set environment variable KBUILD_OUTPUT to point to the desired location:
 
-	export BUILD_DIR=/tmp/build
+	export KBUILD_OUTPUT=/tmp/build
 	make distclean
 	make NAME_defconfig
 	make all
 
-Note that the command line "O=" setting overrides the BUILD_DIR environment
+Note that the command line "O=" setting overrides the KBUILD_OUTPUT environment
 variable.
 
 
@@ -5032,13 +5032,13 @@ or to build on a native PowerPC system you can type
 
 When using the MAKEALL script, the default behaviour is to build
 U-Boot in the source directory. This location can be changed by
-setting the BUILD_DIR environment variable. Also, for each target
+setting the KBUILD_OUTPUT environment variable. Also, for each target
 built, the MAKEALL script saves two log files (<target>.ERR and
 <target>.MAKEALL) in the <source dir>/LOG directory. This default
 location can be changed by setting the MAKEALL_LOGDIR environment
 variable. For example:
 
-	export BUILD_DIR=/tmp/build
+	export KBUILD_OUTPUT=/tmp/build
 	export MAKEALL_LOGDIR=/tmp/log
 	CROSS_COMPILE=ppc_8xx- MAKEALL
 
diff --git a/doc/README.kwbimage b/doc/README.kwbimage
index 13f6f92..8c02298 100644
--- a/doc/README.kwbimage
+++ b/doc/README.kwbimage
@@ -30,10 +30,10 @@ kwbimage support available with mkimage utility will generate kirkwood boot
 image that can be flashed on the board NAND/SPI flash.  The make target
 which uses mkimage to produce such an image is "u-boot.kwb".  For example:
 
-  export BUILD_DIR=/tmp/build
+  export KBUILD_OUTPUT=/tmp/build
   make distclean
   make yourboard_config
-  make $BUILD_DIR/u-boot.kwb
+  make $KBUILD_OUTPUT/u-boot.kwb
 
 
 Board specific configuration file specifications:
-- 
2.0.0.rc1.4.gd8779e1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH v2 2/2] doc: Use KBUILD_OUTPUT instead of BUILD_DIR
  2014-08-31 15:50 [U-Boot] [PATCH v2 2/2] doc: Use KBUILD_OUTPUT instead of BUILD_DIR Jagannadha Sutradharudu Teki
@ 2014-09-18  4:42 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2014-09-18  4:42 UTC (permalink / raw)
  To: u-boot


On Sun, 31 Aug 2014 21:20:31 +0530
Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> wrote:

> From: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
> 
> Now saving output files in a separate directory through
> KBUILD_OUTPUT not with BUILD_DIR, so updated the documentation
> accordingly.
> 
> Signed-off-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
> ---
> Changes for v2:
> 	- none


I left comments in v1:

http://patchwork.ozlabs.org/patch/384226/



Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-18  4:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-31 15:50 [U-Boot] [PATCH v2 2/2] doc: Use KBUILD_OUTPUT instead of BUILD_DIR Jagannadha Sutradharudu Teki
2014-09-18  4:42 ` Masahiro Yamada

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.