[oe-commits] Tobias Henkel : icecc: Remove output on stderr when calling which
git at git.openembedded.org
git at git.openembedded.org
Tue Nov 12 10:51:26 UTC 2013
Module: openembedded-core.git
Branch: master-next
Commit: b8f7bf53ef2e3ac648659ed80188b334481b0252
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b8f7bf53ef2e3ac648659ed80188b334481b0252
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 71c556f..c4088af 100644
--- a/meta/classes/icecc.bbclass
+++ b/meta/classes/icecc.bbclass
@@ -48,7 +48,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):
"""
@@ -161,9 +161,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