summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorzbao <fishbaozi@gmail.com>2015-09-18 06:17:09 -0700
committerZheng Bao <zheng.bao@amd.com>2015-11-20 05:38:06 +0100
commit669807682ed4fe2d01295bf99fe63c4c097ebc6f (patch)
tree1409b5e8e65bed8bb765ed7b0b538f9b346a800c /util
parent2f3fd2640f0630760497f59c6f5b137c1fb39e75 (diff)
downloadcoreboot-669807682ed4fe2d01295bf99fe63c4c097ebc6f.tar.xz
xcompile: Redirect the objdump stderr to /dev/null
On system with clang, "as" is available but "objdump" is not by default. So if ${gccprefix} is empty, "as" can run successfully and the "objdump" below might report error. Mask that output. Change-Id: I9940f069f66e097973ed6138cf3c696087fa5531 Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/11681 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/xcompile/xcompile2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/xcompile/xcompile b/util/xcompile/xcompile
index 76c36983b0..a8134a0c98 100755
--- a/util/xcompile/xcompile
+++ b/util/xcompile/xcompile
@@ -111,7 +111,7 @@ testas() {
2>/dev/null || return 1
# Check output content type.
- local obj_type="$(LANG=C LC_ALL= ${gccprefix}objdump -p $obj_file)"
+ local obj_type="$(LANG=C LC_ALL= ${gccprefix}objdump -p $obj_file 2>/dev/null)"
local obj_arch="$(expr "$obj_type" : '.*format \(.[a-z0-9-]*\)')"
[ "$obj_arch" = "$full_arch" ] || return 1