mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
77a44c253b
commit
024514037d
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user