[coreboot-gerrit] New patch to review for coreboot: 02b606b buildgcc: defer cleaning up the tree a bit
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Thu Dec 19 22:07:17 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/4544
-gerrit
commit 02b606ba4038219338faf0c2884d802f771436a1
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Thu Dec 19 22:06:22 2013 +0100
buildgcc: defer cleaning up the tree a bit
cleanup() uses BUILDDIRPREFIX, which is set after the
getopt loop.
Change-Id: I8a904781ee4fefc42681d31e94b64008cf03750a
Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
util/crossgcc/buildgcc | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 5d7ac6f..87054f2 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -208,7 +208,7 @@ while true ; do
case "$1" in
-V|--version) shift; myversion; exit 0;;
-h|--help) shift; myhelp; exit 0;;
- -c|--clean) shift; cleanup;;
+ -c|--clean) shift; clean=1;;
-t|--savetemps) shift; SAVETEMPS=1;;
-d|--directory) shift; TARGETDIR="$1"; shift;;
-p|--platform) shift; TARGETARCH="$1"; shift;;
@@ -235,6 +235,10 @@ esac
echo "Target arch is now $TARGETARCH"
BUILDDIRPREFIX=build-${TARGETARCH}
+if [ "$clean" = "1" ]; then
+ cleanup
+fi
+
GDB_PACKAGE="GDB"
PYTHON_PACKAGE="PYTHON"
EXPAT_PACKAGE="EXPAT"
More information about the coreboot-gerrit
mailing list