From 04ceed6a0f0a0856be6975af266850bab03cc3c6 Mon Sep 17 00:00:00 2001 From: Zheng Bao Date: Tue, 23 Oct 2012 19:41:25 +0800 Subject: buildgcc: redirect error output to /dev/null Change-Id: I7cd63248eb8abb711cecce41e3f8a282b34aa126 Signed-off-by: Zheng Bao Signed-off-by: Zheng Bao Reviewed-on: http://review.coreboot.org/1548 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/crossgcc/buildgcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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" -- cgit v1.2.3