Skip to contentSkip to conversation

sandbox: Update minor documentation changes

PATCH Superseded Jagannadha Sutradharudu Teki 2 participants 4 messages Aug 29, 2014 – Sep 1, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 sandbox: Update minor documentation changes

From: Jagannadha Sutradharudu Teki <[email protected]>

- Use _defconfig instead of _config, but _config is still working.
- Corrected README.sandbox path in ./README

---
 README                       | 2 +-
 board/sandbox/README.sandbox | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
README +1 -1
index 1e63f04..e88184b 100644
@@ -272,7 +272,7 @@ board. This allows feature development which is not board- or architecture-
 specific to be undertaken on a native platform. The sandbox is also used to
 run some of U-Boot's tests.
 
-See board/sandbox/sandbox/README.sandbox for more details.
+See board/sandbox/README.sandbox for more details.
 
 
 Configuration Options:
board/sandbox/README.sandbox +2 -2
index 529c447..2613c46 100644
@@ -32,7 +32,7 @@ Basic Operation
 
 To run sandbox U-Boot use something like:
 
-   make sandbox_config all
+   make sandbox_defconfig all
    ./u-boot
 
 Note:
@@ -41,7 +41,7 @@ Note:
    build sandbox without SDL (i.e. no display/keyboard support) by removing
    the CONFIG_SANDBOX_SDL line in include/configs/sandbox.h or using:
 
-      make sandbox_config all NO_SDL=1
+      make sandbox_defconfig all NO_SDL=1
       ./u-boot
 
 
Signature · 1 line
2.0.0.rc1.4.gd8779e1
#1 lore raw

PATCH 2/2 doc: Use KBUILD_OUTPUT instead of BUILD_DIR

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

---
 MAKEALL             | 12 ++++++------
 README              | 10 +++++-----
 doc/README.kwbimage |  4 ++--
 3 files changed, 13 insertions(+), 13 deletions(-)
MAKEALL +6 -6
index 392ea8d..42f09e8 100755
@@ -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
README +5 -5
index e88184b..8e05f69 100644
@@ -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
 
doc/README.kwbimage +2 -2
index 13f6f92..8c02298 100644
@@ -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:
Signature · 1 line
2.0.0.rc1.4.gd8779e1
#2 lore raw

PATCH 2/2 doc: Use KBUILD_OUTPUT instead of BUILD_DIR

Hi Jagan,

Quoted 5 lines · On Fri, 29 Aug 2014 18:37:10 +0530 Jagannadha Sutradharudu Teki…

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

I am afraid you are confused.

The "BUILD_DIR" variable in MAKEALL has nothing to do with the "BUILD_DIR" variable which the core build system used to use prior to Kbuild.

MAKEALL is an upper level utility which is separated from Kbuild.

Quoted 28 lines
 MAKEALL             | 12 ++++++------
 README              | 10 +++++-----
 doc/README.kwbimage |  4 ++--
 3 files changed, 13 insertions(+), 13 deletions(-)
MAKEALL +4 -4
index 392ea8d..42f09e8 100755
@@ -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 {} +

MAKEALL BUILD_MANY=0 · line 236

Quoted 10 lines
MAKEALL +2 -2
 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

You do not need to change MAKEALL.
"BUILD_DIR" is a variable used only inside this utility. It is totally unrelated to Kbuild.

Quoted 11 lines
README +1 -1
index e88184b..8e05f69 100644
@@ -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:
 

README this behavior and build U-Boot to some external directory: · line 4981

Quoted 10 lines
README +2 -2
-	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.
 

Correct.

Quoted 5 lines
README +0 -1
@@ -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

README or to build on a native PowerPC system you can type · line 5043

Quoted 10 lines
README +2 -1
+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

Incorrect.

Quoted 7 lines
doc/README.kwbimage +0 -0
index 13f6f92..8c02298 100644
@@ -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:

doc/README.kwbimage kwbimage support available with mkimage utility will generate kirkwood boot · line 39

Quoted 10 lines
doc/README.kwbimage +2 -2
 
-  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:

The first one is correct.

The second one should be:
make u-boot.kwb

While you are here, please also fix s/yourboard_config/yourboard_defconfig/

Best Regards
Masahiro Yamada

#3 lore raw

PATCH 1/2 sandbox: Update minor documentation changes

In reply to Jagannadha Sutradharudu Teki

Hi Jagan,

2014-08-29 22:07 GMT+09:00 Jagannadha Sutradharudu Teki <[email protected]>:

Quoted 16 lines

From: Jagannadha Sutradharudu Teki <[email protected]>

- Use _defconfig instead of _config, but _config is still working.
- Corrected README.sandbox path in ./README

---
 README                       | 2 +-
 board/sandbox/README.sandbox | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
README +0 -0
index 1e63f04..e88184b 100644

README board. This allows feature development which is not board- or architecture- · line 278

Quoted 8 lines
README +1 -1
@@ -272,7 +272,7 @@ board. This allows feature development which is not board- or architecture-
 specific to be undertaken on a native platform. The sandbox is also used to
 run some of U-Boot's tests.
 
-See board/sandbox/sandbox/README.sandbox for more details.
+See board/sandbox/README.sandbox for more details.
 
 
 Configuration Options:

Thanks for catching this!

Could you also fix the following part in /board/sandbox/README.sandbox ?

---------------------->8--------------------------
The chosen vendor and board names are also 'sandbox', so there is a single board in board/sandbox/sandbox. ----------------------8<--------------------------

Signature · 2 lines
Best Regards
Masahiro Yamada