[coreboot] New patch to review for coreboot: f623c23 crossgcc: Allow the non-gnu tar and patch work on FreeBSD
Zheng Bao (zheng.bao@amd.com)
gerrit at coreboot.org
Tue Sep 11 09:51:51 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 f623c2339d698b613ad2c52a2f90319c0a3fe7ce
Author: Zheng Bao <fishbaozi at gmail.com>
Date: Tue Sep 11 17:47:29 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..028d3c9 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