diff options
Diffstat (limited to 'scripts')
-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 3bc165fd7d..2b90821b30 100644 --- a/scripts/lib/wic/misc.py +++ b/scripts/lib/wic/misc.py | |||
@@ -141,11 +141,12 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""): | |||
141 | cmd_and_args = pseudo + cmd_and_args | 141 | cmd_and_args = pseudo + cmd_and_args |
142 | 142 | ||
143 | hosttools_dir = get_bitbake_var("HOSTTOOLS_DIR") | 143 | hosttools_dir = get_bitbake_var("HOSTTOOLS_DIR") |
144 | target_sys = get_bitbake_var("TARGET_SYS") | ||
144 | 145 | ||
145 | native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin:%s" % \ | 146 | native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/usr/bin/%s:%s/bin:%s" % \ |
146 | (native_sysroot, native_sysroot, | 147 | (native_sysroot, native_sysroot, |
147 | native_sysroot, native_sysroot, | 148 | native_sysroot, native_sysroot, target_sys, |
148 | hosttools_dir) | 149 | native_sysroot, hosttools_dir) |
149 | 150 | ||
150 | native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ | 151 | native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ |
151 | (native_paths, cmd_and_args) | 152 | (native_paths, cmd_and_args) |