From b67e9a1acd82fec30235c69f717a0103f245667a Mon Sep 17 00:00:00 2001 From: Andrew Wu Date: Mon, 28 Apr 2014 18:13:44 +0800 Subject: 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 Reviewed-on: http://review.coreboot.org/5598 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Georgi --- util/crossgcc/buildgcc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc index c6d7183a37..5aa98d52c5 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 -- cgit v1.2.3