aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi-clan.de>2015-03-28 15:48:47 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-03-30 12:04:39 +0200
commit5602f2cd735c3a763a4c8256c1df1e8ee77832db (patch)
tree3f730bda92456b70e97f1a12b7253e39b296f76f /util
parentb5589026c7eba0a0aef880e57d10f7134ab1837b (diff)
downloadcoreboot-5602f2cd735c3a763a4c8256c1df1e8ee77832db.tar.gz
coreboot-5602f2cd735c3a763a4c8256c1df1e8ee77832db.tar.xz
coreboot-5602f2cd735c3a763a4c8256c1df1e8ee77832db.zip
crossgcc: Fix calling outside util/crossgcc
Copy $0 contains the path, and we cd into that early. Change-Id: If4124d16dea97b5eee4996bdfa3eae3d5d94c5d1 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/9145 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/crossgcc/buildgcc5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index fde8bc6d9..8bcaf2f26 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -614,8 +614,9 @@ printf "Building IASL ${IASL_VERSION} ... "
) 2>&1 | wait_for_build "$IASL_DIR/source/compiler" || exit 1
fi
-rm -f $DESTDIR$TARGETDIR/$0.commit.*
-cp $0 $DESTDIR$TARGETDIR/"$0.commit.`git describe`"
+PROGNAME=`basename "$0"`
+rm -f "$DESTDIR$TARGETDIR/$PROGNAME".commit.*
+cp "$PROGNAME" $DESTDIR$TARGETDIR/"$PROGNAME.commit.`git describe`"
if [ $SAVETEMPS -eq 0 ]; then
printf "Cleaning up... "