diff options
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/misc.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/lib/wic/misc.py b/scripts/lib/wic/misc.py index 3e11822996..a8aab6c524 100644 --- a/scripts/lib/wic/misc.py +++ b/scripts/lib/wic/misc.py | |||
@@ -140,11 +140,12 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""): | |||
140 | cmd_and_args = pseudo + cmd_and_args | 140 | cmd_and_args = pseudo + cmd_and_args |
141 | 141 | ||
142 | hosttools_dir = get_bitbake_var("HOSTTOOLS_DIR") | 142 | hosttools_dir = get_bitbake_var("HOSTTOOLS_DIR") |
143 | target_sys = get_bitbake_var("TARGET_SYS") | ||
143 | 144 | ||
144 | native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin:%s" % \ | 145 | native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/usr/bin/%s:%s/bin:%s" % \ |
145 | (native_sysroot, native_sysroot, | 146 | (native_sysroot, native_sysroot, |
146 | native_sysroot, native_sysroot, | 147 | native_sysroot, native_sysroot, target_sys, |
147 | hosttools_dir) | 148 | native_sysroot, hosttools_dir) |
148 | 149 | ||
149 | native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ | 150 | native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ |
150 | (native_paths, cmd_and_args) | 151 | (native_paths, cmd_and_args) |