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>
This commit is contained in:
zbao 2015-08-05 23:10:05 -04:00 committed by Stefan Reinauer
parent 74234ebd7b
commit e05c1eac44
1 changed files with 1 additions and 1 deletions

View File

@ -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()
{