From 2aac3f6c51d6eb13da97f801d00bb73a2cdd4fdd Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Mon, 8 Aug 2011 16:07:50 -0600 Subject: Add iasl to buldgcc and rev the version. Change-Id: If9144cdf088f16bc3974a1784a442a1fd12ac75b Signed-off-by: Marc Jones Reviewed-on: http://review.coreboot.org/147 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/xcompile/xcompile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'util/xcompile') diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile index 19103c7ade..fd4dbeb278 100644 --- a/util/xcompile/xcompile +++ b/util/xcompile/xcompile @@ -35,13 +35,14 @@ for make in make gmake gnumake; do done GCCPREFIX=invalid +XGCCPATH="`pwd`/util/crossgcc/xgcc/bin/" TMPFILE=`mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz` touch $TMPFILE # This should be a loop over all supported architectures TARCH=i386 TWIDTH=32 -for gccprefixes in `pwd`/util/crossgcc/xgcc/bin/${TARCH}-elf- ${TARCH}-elf- ""; do +for gccprefixes in ${XGCCPATH}${TARCH}-elf- ${TARCH}-elf- ""; do if ! which ${gccprefixes}as 2>/dev/null >/dev/null; then continue fi @@ -85,6 +86,12 @@ else HOSTCC=cc fi +if [ "`${XGCCPATH}/iasl 2>/dev/null | grep -c ACPI`" -gt 0 ]; then + IASL=${XGCCPATH}iasl +else + IASL=iasl +fi + cat << EOF # elf${TWIDTH}-${TARCH} toolchain AS:=${GCCPREFIX}as ${ASFLAGS} @@ -96,6 +103,8 @@ NM:=${GCCPREFIX}nm OBJCOPY:=${GCCPREFIX}objcopy OBJDUMP:=${GCCPREFIX}objdump +IASL:=${IASL} + # native toolchain HOSTCC:=${HOSTCC} EOF -- cgit v1.2.3