summaryrefslogtreecommitdiff
path: root/util/abuild
diff options
context:
space:
mode:
authorMartin Roth <martinroth@google.com>2016-11-30 16:38:25 -0700
committerMartin Roth <martinroth@google.com>2017-01-03 17:45:24 +0100
commit14b9b9380a4649a1ec4440f625e34cb25c87df6f (patch)
tree0c28af515e79d1b7c2f5722057e6e979483c7a91 /util/abuild
parent87fff20356466887d5e879ded540862087e09580 (diff)
downloadcoreboot-14b9b9380a4649a1ec4440f625e34cb25c87df6f.tar.xz
util/abuild: Don't set XGCCPATH if it's in the environment
Change-Id: I0fa231ca3d33300a671810e994c5be54ac10a18b Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/17723 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'util/abuild')
-rwxr-xr-xutil/abuild/abuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index 7988feda88..7c4e29fcbf 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -31,8 +31,10 @@ export KCONFIG_OVERWRITECONFIG=1
# path to payload. Should be more generic
PAYLOAD=/dev/null
-# path to coreboot XGCC
-XGCCPATH="${TOP}/util/crossgcc/xgcc/bin/"
+# get path to coreboot XGCC if it's not already set
+if [ -z "$XGCCPATH" ]; then
+ XGCCPATH="${TOP}/util/crossgcc/xgcc/bin/"
+fi
# Add XGCC to the path.
if [ -d "$XGCCPATH" ] && [[ ":$PATH:" != *":$XGCCPATH:"* ]]; then