diff options
author | zbao <fishbaozi@gmail.com> | 2015-08-05 23:10:05 -0400 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2015-08-06 05:50:35 +0200 |
commit | e05c1eac44443f566af3909831328806bb8cd49a (patch) | |
tree | 9c3a7077ac5dfbec27c55a8ff981e007b7a2cce1 /util | |
parent | 74234ebd7b6029ef5a3f65dbdef17784a35055c6 (diff) |
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@amd.com>
Signed-off-by: Zheng Bao <fishbaozi@gmail.com>
Reviewed-on: http://review.coreboot.org/11124
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/crossgcc/buildgcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index 590e1f8671..cfe881bb55 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() { |