[coreboot] Patch set updated for coreboot: 258e18f crossgcc: Allow the non-gnu tar and patch work on FreeBSD

Zheng Bao (zheng.bao@amd.com) gerrit at coreboot.org
Tue Sep 11 11:07: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 258e18f6889174eaa011136fafffb03934a940e4
Author: Zheng Bao <fishbaozi at gmail.com>
Date:   Tue Sep 11 17:55:57 2012 +0800

    crossgcc: Allow the non-gnu tar and patch work on FreeBSD
    
    This patch and 2 previous ones,
    http://review.coreboot.org/1500
    http://review.coreboot.org/1501
    can make the coreboot built on FreeBSD stable-8.3.
    
    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 | 7 +++++++
 1 file changed, 7 insertions(+)

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




More information about the coreboot mailing list