summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2012-10-23 19:41:25 +0800
committerPatrick Georgi <patrick@georgi-clan.de>2012-10-26 12:51:15 +0200
commit04ceed6a0f0a0856be6975af266850bab03cc3c6 (patch)
tree1d7b3fd0a5707e746eebea96f0146b48f290f636 /util
parent908b043da03024bd362adb46bd0ca7b4c1a23a86 (diff)
downloadcoreboot-04ceed6a0f0a0856be6975af266850bab03cc3c6.tar.xz
buildgcc: redirect error output to /dev/null
Change-Id: I7cd63248eb8abb711cecce41e3f8a282b34aa126 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1548 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'util')
-rwxr-xr-xutil/crossgcc/buildgcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 230da1d9fb..ba1776f1a8 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -325,7 +325,7 @@ if [ `uname` = "Darwin" ]; then
# binaries in 10.6 (even if the kernel is 32bit)
# For some weird reason, 10.5 autodetects an ABI=64 though
# so we're setting the ABI explicitly here.
- if [ `sysctl -n hw.optional.x86_64` -eq 1 ]; then
+ if [ `sysctl -n hw.optional.x86_64 2>/dev/null` -eq 1 ] 2>/dev/null; then
OPTIONS="ABI=64"
else
OPTIONS="ABI=32"