[oe-commits] Tobias Henkel : icecc: Remove output on stderr when calling which
git at git.openembedded.org
git at git.openembedded.org
Wed Nov 20 11:09:40 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: 1aa636eac340df332e6d66a9e035f6dc9d98c78a
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1aa636eac340df332e6d66a9e035f6dc9d98c78a
Author: Tobias Henkel <tobias.henkel at bmw-carit.de>
Date: Tue Nov 12 09:33:56 2013 +0100
icecc: Remove output on stderr when calling which
The icecc class often uses 'which' for determining paths. This leads
to many messages on stderr in case 'which' doesn't find the
executable. Redirecting stderr to /dev/null inhibits these messages as
the result is handled correctly anyway.
Signed-off-by: Tobias Henkel <tobias.henkel at bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/icecc.bbclass | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass
index 1f53f85..970c557 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -55,7 +55,7 @@ def get_cross_kernel_cc(bb,d):
return kernel_cc
def get_icecc(d):
- return d.getVar('ICECC_PATH') or os.popen("which icecc").read()[:-1]
+ return d.getVar('ICECC_PATH') or os.popen("which icecc 2> /dev/null").read()[:-1]
def create_path(compilers, bb, d):
"""
@@ -175,9 +175,9 @@ def icc_get_external_tool(bb, d, tool):
def icc_get_tool(bb, d, tool):
if icc_is_native(bb, d):
- return os.popen("which %s" % tool).read()[:-1]
+ return os.popen("which %s 2> /dev/null" % tool).read()[:-1]
elif icc_is_kernel(bb, d):
- return os.popen("which %s" % get_cross_kernel_cc(bb, d)).read()[:-1]
+ return os.popen("which %s 2> /dev/null" % get_cross_kernel_cc(bb, d)).read()[:-1]
else:
ice_dir = d.expand('${STAGING_BINDIR_TOOLCHAIN}')
target_sys = d.expand('${TARGET_SYS}')
More information about the Openembedded-commits
mailing list