[OE-core] [PATCH 2/9] icecc: Remove output on stderr when calling which
Tobias Henkel
tobias.henkel at oss.bmw-carit.de
Tue Nov 12 08:33:56 UTC 2013
From: Tobias Henkel <tobias.henkel at bmw-carit.de>
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>
---
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}')
--
1.8.3.1
More information about the Openembedded-core
mailing list