Zheng Bao (zheng.bao@amd.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1502
-gerrit
commit 5e5b919b0d44e3a00eb1a177913fde25ceabd0f0 Author: Zheng Bao fishbaozi@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@amd.com Signed-off-by: Zheng Bao fishbaozi@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 }