diff options
Diffstat (limited to 'meta/classes/icecc.bbclass')
-rw-r--r-- | meta/classes/icecc.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/icecc.bbclass b/meta/classes/icecc.bbclass index 1f53f855fe..49dbd77019 100644 --- a/meta/classes/icecc.bbclass +++ b/meta/classes/icecc.bbclass | |||
@@ -55,7 +55,7 @@ def get_cross_kernel_cc(bb,d): | |||
55 | return kernel_cc | 55 | return kernel_cc |
56 | 56 | ||
57 | def get_icecc(d): | 57 | def get_icecc(d): |
58 | return d.getVar('ICECC_PATH') or os.popen("which icecc").read()[:-1] | 58 | return d.getVar('ICECC_PATH') or bb.utils.which(os.getenv("PATH"), "icecc") |
59 | 59 | ||
60 | def create_path(compilers, bb, d): | 60 | def create_path(compilers, bb, d): |
61 | """ | 61 | """ |
@@ -175,9 +175,9 @@ def icc_get_external_tool(bb, d, tool): | |||
175 | 175 | ||
176 | def icc_get_tool(bb, d, tool): | 176 | def icc_get_tool(bb, d, tool): |
177 | if icc_is_native(bb, d): | 177 | if icc_is_native(bb, d): |
178 | return os.popen("which %s" % tool).read()[:-1] | 178 | return bb.utils.which(os.getenv("PATH"), tool) |
179 | elif icc_is_kernel(bb, d): | 179 | elif icc_is_kernel(bb, d): |
180 | return os.popen("which %s" % get_cross_kernel_cc(bb, d)).read()[:-1] | 180 | return bb.utils.which(os.getenv("PATH"), get_cross_kernel_cc(bb, d)) |
181 | else: | 181 | else: |
182 | ice_dir = d.expand('${STAGING_BINDIR_TOOLCHAIN}') | 182 | ice_dir = d.expand('${STAGING_BINDIR_TOOLCHAIN}') |
183 | target_sys = d.expand('${TARGET_SYS}') | 183 | target_sys = d.expand('${TARGET_SYS}') |