summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-04-14 14:35:40 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-04-14 14:35:40 +0000
commit34ee3cd512188baa93ba5595da2982e39fcc7491 (patch)
tree7956fa957a24d55339dc361a0745417d31cac174
parent5d3dee8334c2303434d7b00bec3aad4911120ac1 (diff)
downloadcoreboot-34ee3cd512188baa93ba5595da2982e39fcc7491.tar.xz
Rename variable to not confuse gcc on mingw
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5427 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--util/xcompile/xcompile16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 1ab739b3c0..0c5da65de8 100644
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -35,8 +35,8 @@ for make in make gmake gnumake; do
done
GCCPREFIX=invalid
-TMP=`mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz`
-touch $TMP
+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
@@ -45,9 +45,9 @@ for gccprefixes in `pwd`/util/crossgcc/xgcc/bin/${TARCH}-elf- ${TARCH}-elf- "";
if ! which ${gccprefixes}as 2>/dev/null >/dev/null; then
continue
fi
- rm -f ${TMP}.o
- if ${gccprefixes}as -o ${TMP}.o ${TMP}; then
- TYPE=`${gccprefixes}objdump -p ${TMP}.o`
+ rm -f ${TMPFILE}.o
+ if ${gccprefixes}as -o ${TMPFILE}.o ${TMPFILE}; then
+ TYPE=`${gccprefixes}objdump -p ${TMPFILE}.o`
if [ ${TYPE##* } == "elf${TWIDTH}-${TARCH}" ]; then
GCCPREFIX=$gccprefixes
ASFLAGS=
@@ -56,8 +56,8 @@ for gccprefixes in `pwd`/util/crossgcc/xgcc/bin/${TARCH}-elf- ${TARCH}-elf- "";
break
fi
fi
- if ${gccprefixes}as --32 -o ${TMP}.o ${TMP}; then
- TYPE=`${gccprefixes}objdump -p ${TMP}.o`
+ if ${gccprefixes}as --32 -o ${TMPFILE}.o ${TMPFILE}; then
+ TYPE=`${gccprefixes}objdump -p ${TMPFILE}.o`
if [ ${TYPE##* } == "elf${TWIDTH}-${TARCH}" ]; then
GCCPREFIX=$gccprefixes
ASFLAGS=--32
@@ -67,7 +67,7 @@ for gccprefixes in `pwd`/util/crossgcc/xgcc/bin/${TARCH}-elf- ${TARCH}-elf- "";
fi
fi
done
-rm -f $TMP ${TMP}.o
+rm -f $TMPFILE ${TMPFILE}.o
if [ "$GCCPREFIX" = "invalid" ]; then
echo '$(error no suitable gcc found)'