[coreboot-gerrit] New patch to review for coreboot: buildgcc: Get the clean and correct uname on Cygwin

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Thu Aug 6 05:16:27 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/11124

-gerrit

commit 0ae65aac63cb2dd4e44bfa927e5982e13a3d91aa
Author: zbao <fishbaozi at gmail.com>
Date:   Wed Aug 5 23:10:05 2015 -0400

    buildgcc: Get the clean and correct uname on Cygwin
    
    Running `uname` on Cygwin gets "CYGWIN_NT-6.1-WOW" instead of "Cygwin".
    We need to fix the $UNAME on Cygwin.
    
    Change-Id: I540bfc52089951006fd0e20bb9893a3d891df9e1
    Signed-off-by: Zheng Bao <zheng.bao at amd.com>
    Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
 util/crossgcc/buildgcc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 590e1f8..cfe881b 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()
 {



More information about the coreboot-gerrit mailing list