summaryrefslogtreecommitdiffstats
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-10 18:10:26 +0100
commit024514037ddcc92de4f685f85bb916b2815fb47e (patch)
tree7f7229be89ed64435fcff826c3e0602d67f901bb
parent77a44c253b80e0a01ebfca90e5682469df636bee (diff)
downloadpoky-024514037ddcc92de4f685f85bb916b2815fb47e.tar.gz
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] (From OE-Core rev: fa263f238bbddb00c9953994fb69cc358170e2ec) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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):
81 Always need to execute native commands as_shell 81 Always need to execute native commands as_shell
82 """ 82 """
83 native_paths = \ 83 native_paths = \
84 "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin:$PATH" % \ 84 "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin" % \
85 (native_sysroot, native_sysroot, native_sysroot) 85 (native_sysroot, native_sysroot, native_sysroot)
86 native_cmd_and_args = "%s;%s" % (native_paths, cmd_and_args) 86 native_cmd_and_args = "%s;%s" % (native_paths, cmd_and_args)
87 msger.debug("exec_native_cmd: %s" % cmd_and_args) 87 msger.debug("exec_native_cmd: %s" % cmd_and_args)