aboutsummaryrefslogtreecommitdiff
path: root/util/xcompile
diff options
context:
space:
mode:
Diffstat (limited to 'util/xcompile')
-rw-r--r--util/xcompile/xcompile11
1 files changed, 10 insertions, 1 deletions
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