[coreboot-gerrit] New patch to review for coreboot: 5bb9f3b abuild: make build directory configurable
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Thu Dec 19 20:55:59 CET 2013
Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4543
-gerrit
commit 5bb9f3b3f09ab0911c77063bd5ab9f88a1eb4021
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Thu Dec 19 20:43:29 2013 +0100
abuild: make build directory configurable
By setting the COREBOOT_BUILD_DIR variable, it's now possible
to keep the abuild build results in a different directory.
Due to issues in the build system, it still has to reside
below the source root.
Change-Id: If907897cf6ac01caa7d1e4b51aad4c005356bc5b
Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
util/abuild/abuild | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/util/abuild/abuild b/util/abuild/abuild
index ec5c27b..636d908 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -21,7 +21,7 @@ ABUILD_VERSION="0.9.2"
TOP=$PWD
# Where shall we place all the build trees?
-TARGET=coreboot-builds
+TARGET=${COREBOOT_BUILD_DIR:-coreboot-builds}
XMLFILE=$TOP/abuild.xml
REAL_XMLFILE=$XMLFILE
@@ -278,7 +278,7 @@ function build_target
CONFIG=$3
TARCH=$( architecture $VENDOR $MAINBOARD )
- if [ "`cat $TOP/$TARGET/${VENDOR}_${MAINBOARD}/compile.status 2>/dev/null`" = "ok" -a \
+ if [ "`cat $TARGET/${VENDOR}_${MAINBOARD}/compile.status 2>/dev/null`" = "ok" -a \
"$buildall" = "false" ]; then
printf "Skipping $VENDOR/$MAINBOARD; (already successful)\n"
return
@@ -303,8 +303,8 @@ function build_target
HOSTCC='gcc'
printf "Building $VENDOR/$MAINBOARD; "
- mkdir -p $TOP/$TARGET/${VENDOR}_${MAINBOARD} $TOP/$TARGET/abuild
- XMLFILE=$TOP/$TARGET/abuild/${VENDOR}_${MAINBOARD}.xml
+ mkdir -p $TARGET/${VENDOR}_${MAINBOARD} $TARGET/abuild
+ XMLFILE=$TARGET/abuild/${VENDOR}_${MAINBOARD}.xml
if [ "$ARCH" = "$TARCH" -o $found_crosscompiler = true ]; then
printf "$TARCH: ok$CROSS_TEXT\n"
@@ -613,8 +613,8 @@ build_all_targets()
if [ "$enable_blobs" = "true" ]; then
echo "CONFIG_USE_BLOBS=y" > $TMPCFG
fi
- make -j $cpus DOTCONFIG=$TMPCFG obj=coreboot-builds/temp objutil=coreboot-builds/sharedutils tools
- rm -rf coreboot-builds/temp $TMPCFG
+ make -j $cpus DOTCONFIG=$TMPCFG obj=$TARGET/temp objutil=$TARGET/sharedutils tools
+ rm -rf $TARGET/temp $TMPCFG
for VENDOR in $( vendors ); do
for MAINBOARD in $( mainboards $VENDOR ); do
echo $VENDOR/$MAINBOARD
More information about the coreboot-gerrit
mailing list