summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/utils/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/utils/misc.py')
-rw-r--r--scripts/lib/wic/utils/misc.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/lib/wic/utils/misc.py b/scripts/lib/wic/utils/misc.py
index 4b822f0eee..3bab2f1ea2 100644
--- a/scripts/lib/wic/utils/misc.py
+++ b/scripts/lib/wic/utils/misc.py
@@ -105,9 +105,13 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch=3, pseudo=""):
105 105
106 if pseudo: 106 if pseudo:
107 cmd_and_args = pseudo + cmd_and_args 107 cmd_and_args = pseudo + cmd_and_args
108
109 wtools_sysroot = get_bitbake_var("RECIPE_SYSROOT_NATIVE", "wic-tools")
110
108 native_paths = \ 111 native_paths = \
109 "%s/sbin:%s/usr/sbin:%s/usr/bin" % \ 112 "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/sbin:%s/usr/sbin:%s/usr/bin" % \
110 (native_sysroot, native_sysroot, native_sysroot) 113 (wtools_sysroot, wtools_sysroot, wtools_sysroot,
114 native_sysroot, native_sysroot, native_sysroot)
111 native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ 115 native_cmd_and_args = "export PATH=%s:$PATH;%s" % \
112 (native_paths, cmd_and_args) 116 (native_paths, cmd_and_args)
113 logger.debug("exec_native_cmd: %s", cmd_and_args) 117 logger.debug("exec_native_cmd: %s", cmd_and_args)