Allow XGCCPATH to be set on the make command line.
[coreboot.git] / util / xcompile / xcompile
index b68e1b3a7910aa1ea28f86565d31709e2f385d9a..9a0a295c75d86e2a91b9bf09978e5db1bce23aa8 100644 (file)
@@ -35,7 +35,8 @@ for make in make gmake gnumake; do
 done
 
 GCCPREFIX=invalid
-XGCCPATH="`pwd`/util/crossgcc/xgcc/bin/"
+XGCCPATH=${1:-"`pwd`/util/crossgcc/xgcc/bin/"}
+echo '#XGCCPATH='${XGCCPATH}
 TMPFILE=`mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz`
 touch $TMPFILE