diff options
author | Andrew Wu <arw@dmp.com.tw> | 2014-04-28 18:13:44 +0800 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-04-29 21:23:10 +0200 |
commit | b67e9a1acd82fec30235c69f717a0103f245667a (patch) | |
tree | c553797490fd7512f291864071a7b71d0d84d93b /util/crossgcc/buildgcc | |
parent | dfa8a32f1f9603d852538de909ead732bc4f9b86 (diff) | |
download | coreboot-b67e9a1acd82fec30235c69f717a0103f245667a.tar.gz coreboot-b67e9a1acd82fec30235c69f717a0103f245667a.tar.bz2 coreboot-b67e9a1acd82fec30235c69f717a0103f245667a.zip |
crossgcc: Support OSX 10.9 built-in tar utility program.
Unlike OSX 10.8, OSX 10.9 doesn't provide GNU tar program, and built-in
tar program is bsdtar 2.8.3. bsdtar can build crossgcc toolchain.
Modify buildgcc to support tar in OSX 10.9 (uname = Darwin).
Change-Id: I093898f8f99e29918387f9b275a30af461a7e1be
Signed-off-by: Andrew Wu <arw@dmp.com.tw>
Reviewed-on: http://review.coreboot.org/5598
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'util/crossgcc/buildgcc')
-rwxr-xr-x | util/crossgcc/buildgcc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index c6d7183a3760..5aa98d52c51b 100755 --- a/util/crossgcc/buildgcc +++ b/util/crossgcc/buildgcc @@ -105,8 +105,9 @@ searchgnu() fi fi done - # A workaround for XxxBSD, whose nongnu patch and tar also work. - if [ $UNAME = "FreeBSD" -o $UNAME = "NetBSD" ]; then + # A workaround for OSX 10.9 and some BSDs, whose nongnu + # patch and tar also work. + if [ $UNAME = "Darwin" -o $UNAME = "FreeBSD" -o $UNAME = "NetBSD" ]; then if [ $1 != "make" ]; then if test -x "`which $1 2>/dev/null`"; then echo $1 |