[coreboot] [commit] r5427 - trunk/util/xcompile

repository service svn at coreboot.org
Wed Apr 14 16:35:41 CEST 2010


Author: oxygene
Date: Wed Apr 14 16:35:40 2010
New Revision: 5427
URL: https://tracker.coreboot.org/trac/coreboot/changeset/5427

Log:
Rename variable to not confuse gcc on mingw

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi at coresystems.de>

Modified:
   trunk/util/xcompile/xcompile

Modified: trunk/util/xcompile/xcompile
==============================================================================
--- trunk/util/xcompile/xcompile	Wed Apr 14 13:40:34 2010	(r5426)
+++ trunk/util/xcompile/xcompile	Wed Apr 14 16:35:40 2010	(r5427)
@@ -35,8 +35,8 @@
 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 @@
 	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 @@
 			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 @@
 		fi
 	fi
 done
-rm -f $TMP ${TMP}.o
+rm -f $TMPFILE ${TMPFILE}.o
 
 if [ "$GCCPREFIX" = "invalid" ]; then
 	echo '$(error no suitable gcc found)'




More information about the coreboot mailing list