]> code.ossystems Code Review - openembedded-core.git/commit
wic/utils/oe/misc.py: Preserve PATH when running native tools
authorRandy Witt <randy.e.witt@linux.intel.com>
Fri, 23 Oct 2015 02:53:56 +0000 (19:53 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Oct 2015 11:21:28 +0000 (12:21 +0100)
commitba127370e621b5b683d6f454596c3d0c60c13df7
tree5187037cf4f4e7e0f40b64459ba063be62a78cc1
parentba3493c434ced719135082607e5f2e1d87559952
wic/utils/oe/misc.py: Preserve PATH when running native tools

Previously exec_native_cmd() would remove all items from PATH except for
the native sysroot. This can cause issues for the tools that are created
using create_wrapper().

Now instead of wiping out the PATH, run a sanity check to check if the
command is in the native sysroot.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/utils/oe/misc.py