mirror of
https://git.yoctoproject.org/poky
synced 2026-03-25 10:02:22 +01:00
wic: Allow exec_native_cmd to run HOSTTOOLS
This allows programs from HOSTTOOLS (e.g. 'install', 'rm', 'mv', etc) to be more easily executed by wic. Without this change only programs from an actual *-native recipe built by bitbake can be executed by wic. (From OE-Core rev: 7acb39f02b8160600d1508da114e98dd1c3e76ed) Signed-off-by: Paul Barker <pbarker@konsulko.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 8eb186acdecfbb3151c9a0ab148358e3fe5cce39) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7655375e15
commit
9cc3117aef
@@ -128,9 +128,12 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""):
|
||||
if pseudo:
|
||||
cmd_and_args = pseudo + cmd_and_args
|
||||
|
||||
native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin" % \
|
||||
hosttools_dir = get_bitbake_var("HOSTTOOLS_DIR")
|
||||
|
||||
native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin:%s" % \
|
||||
(native_sysroot, native_sysroot,
|
||||
native_sysroot, native_sysroot)
|
||||
native_sysroot, native_sysroot,
|
||||
hosttools_dir)
|
||||
|
||||
native_cmd_and_args = "export PATH=%s:$PATH;%s" % \
|
||||
(native_paths, cmd_and_args)
|
||||
|
||||
Reference in New Issue
Block a user