summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-04-07 11:12:08 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-09 19:48:02 +0100
commitfa263f238bbddb00c9953994fb69cc358170e2ec (patch)
treed136b19350e0f927e40db12cace827a7f4de3cdb /scripts/lib
parent564e2f9732ac4318bb5923dd1ff771514c9afd2f (diff)
downloadopenembedded-core-fa263f238bbddb00c9953994fb69cc358170e2ec.tar.gz
openembedded-core-fa263f238bbddb00c9953994fb69cc358170e2ec.tar.bz2
openembedded-core-fa263f238bbddb00c9953994fb69cc358170e2ec.zip
wic: don't use host paths when looking for native tools
exec_native_cmd should not use host paths in $PATH to avoid finding and using host tools. [YOCTO: #6204] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/wic/utils/oe/misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index ea9b6e8ec4..5facbe0b70 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -81,7 +81,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3):
Always need to execute native commands as_shell
"""
native_paths = \
- "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin:$PATH" % \
+ "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin" % \
(native_sysroot, native_sysroot, native_sysroot)
native_cmd_and_args = "%s;%s" % (native_paths, cmd_and_args)
msger.debug("exec_native_cmd: %s" % cmd_and_args)