[coreboot-gerrit] New patch to review for coreboot: buildgcc: Deal with gmp on 32bit Cygwin on 64bit host
Zheng Bao (zheng.bao@amd.com)
gerrit at coreboot.org
Wed Aug 5 15:03:17 CEST 2015
Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11123
-gerrit
commit 80c12eb3501fc1f22c570a2e7e872136a76bf065
Author: zbao <fishbaozi at gmail.com>
Date: Wed Aug 5 09:00:26 2015 -0400
buildgcc: Deal with gmp on 32bit Cygwin on 64bit host
Similar to what the below change says,
http://review.coreboot.org/10792
building GMP can not detect Cygwin is 32bit if the
host which Cygwin is running is actually 64bit. Let ABI=32
if that happens.
And running `uname` on Cygwin gets "CYGWIN_NT-6.1-WOW"
instead of "Cygwin". Fix the $UNAME.
Change-Id: Ic53d75defebbe902325eb07f3d8631b2a53245ef
Signed-off-by: Zheng Bao <zheng.bao at amd.com>
Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
util/crossgcc/buildgcc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 590e1f8..b4eb69e 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -94,7 +94,7 @@ cyan='\033[0;36m'
CYAN='\033[1;36m'
NC='\033[0m' # No Color
-UNAME=$(uname)
+UNAME=$(uname | grep -iq cygwin && echo Cygwin || uname);
normalize_dirs()
{
@@ -622,7 +622,7 @@ if [ $UNAME = "Darwin" ]; then
if $CC -v 2>&1 | grep -q LLVM; then
CC=llvm-gcc
fi
-elif [ $UNAME = "Linux" ]; then
+elif [ $UNAME = "Linux" -o $UNAME = "Cygwin" ]; then
# gmp is overeager with detecting 64bit CPUs even if they run
# a 32bit kernel and userland.
if [ "$(uname -m 2>/dev/null)" = "i686" ]; then
More information about the coreboot-gerrit
mailing list