[coreboot] Patch set updated for coreboot: 1518063 crossgcc: Allow the non-gnu tar and patch work on XxxBSD

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Fri Sep 28 08:21:15 CEST 2012


Zheng Bao (zheng.bao at amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1502

-gerrit

commit 1518063a5f96afeed1ae19b93011c37e13b2ce44
Author: Zheng Bao <fishbaozi at gmail.com>
Date:   Fri Sep 28 16:18:58 2012 +0800

    crossgcc: Allow the non-gnu tar and patch work on XxxBSD
    
    For BSD, patch and tar are not default GNU. Add a work around
    to let the non-gun patch and tar work.
    
    Change-Id: I0a9d0bb0e535aa5e0dde146db330c3c8d7b4d8cb
    Signed-off-by: Zheng Bao <zheng.bao at amd.com>
    Signed-off-by: Zheng Bao <fishbaozi at gmail.com>
---
 util/crossgcc/buildgcc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 67477a5..c2003d2 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -99,6 +99,15 @@ searchgnu()
 			fi
 		fi
 	done
+	# A workaround for XxxBSD, whose nongnu patch and tar also work.
+	if [ `uname` = "FreeBSD" -o `uname` = "NetBSD" ]; then
+		if [ $1 != "make" ]; then
+			if test -x "`which $1 2>/dev/null`"; then
+				echo $1
+				return
+			fi
+		fi
+	fi
 	printf "${RED}ERROR:${red} Missing toolchain: $1${NC}\n" >&2
 	exit 1
 }




More information about the coreboot mailing list