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
This commit is contained in:
Patrick Georgi 2010-04-14 14:35:40 +00:00
parent 5d3dee8334
commit 34ee3cd512
1 changed files with 8 additions and 8 deletions

View File

@ -35,8 +35,8 @@ for make in make gmake gnumake; do
done done
GCCPREFIX=invalid GCCPREFIX=invalid
TMP=`mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz` TMPFILE=`mktemp /tmp/temp.XXXX 2>/dev/null || echo /tmp/temp.78gOIUGz`
touch $TMP touch $TMPFILE
# This should be a loop over all supported architectures # This should be a loop over all supported architectures
TARCH=i386 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 if ! which ${gccprefixes}as 2>/dev/null >/dev/null; then
continue continue
fi fi
rm -f ${TMP}.o rm -f ${TMPFILE}.o
if ${gccprefixes}as -o ${TMP}.o ${TMP}; then if ${gccprefixes}as -o ${TMPFILE}.o ${TMPFILE}; then
TYPE=`${gccprefixes}objdump -p ${TMP}.o` TYPE=`${gccprefixes}objdump -p ${TMPFILE}.o`
if [ ${TYPE##* } == "elf${TWIDTH}-${TARCH}" ]; then if [ ${TYPE##* } == "elf${TWIDTH}-${TARCH}" ]; then
GCCPREFIX=$gccprefixes GCCPREFIX=$gccprefixes
ASFLAGS= ASFLAGS=
@ -56,8 +56,8 @@ for gccprefixes in `pwd`/util/crossgcc/xgcc/bin/${TARCH}-elf- ${TARCH}-elf- "";
break break
fi fi
fi fi
if ${gccprefixes}as --32 -o ${TMP}.o ${TMP}; then if ${gccprefixes}as --32 -o ${TMPFILE}.o ${TMPFILE}; then
TYPE=`${gccprefixes}objdump -p ${TMP}.o` TYPE=`${gccprefixes}objdump -p ${TMPFILE}.o`
if [ ${TYPE##* } == "elf${TWIDTH}-${TARCH}" ]; then if [ ${TYPE##* } == "elf${TWIDTH}-${TARCH}" ]; then
GCCPREFIX=$gccprefixes GCCPREFIX=$gccprefixes
ASFLAGS=--32 ASFLAGS=--32
@ -67,7 +67,7 @@ for gccprefixes in `pwd`/util/crossgcc/xgcc/bin/${TARCH}-elf- ${TARCH}-elf- "";
fi fi
fi fi
done done
rm -f $TMP ${TMP}.o rm -f $TMPFILE ${TMPFILE}.o
if [ "$GCCPREFIX" = "invalid" ]; then if [ "$GCCPREFIX" = "invalid" ]; then
echo '$(error no suitable gcc found)' echo '$(error no suitable gcc found)'