Allow XGCCPATH to be set on the make command line.

The xgcc toolchain may be moved by the user and passed in on the commandline. Updates the Makefile and the xcompile script.

Change-Id: I05797b2cabce39bdd7868c2515f30d34043fc8cc
Signed-off-by: Marc Jones <marcj303@gmail.com>
Reviewed-on: http://review.coreboot.org/318
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
Marc Jones 2011-10-07 17:20:30 -06:00 committed by Patrick Georgi
parent 5cfd583c5c
commit 616da1ee7f
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ ifeq ($(INNER_SCANBUILD),y)
CC_real:=$(CC)
endif
$(if $(wildcard .xcompile),,$(eval $(shell bash util/xcompile/xcompile > .xcompile)))
$(if $(wildcard .xcompile),,$(eval $(shell bash util/xcompile/xcompile $(XGCCPATH) > .xcompile)))
include .xcompile
ifeq ($(INNER_SCANBUILD),y)

View 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