diff options
Diffstat (limited to 'scripts/lib/wic/misc.py')
-rw-r--r-- | scripts/lib/wic/misc.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/lib/wic/misc.py b/scripts/lib/wic/misc.py index 4b08d649c6..57c042c503 100644 --- a/scripts/lib/wic/misc.py +++ b/scripts/lib/wic/misc.py | |||
@@ -26,6 +26,7 @@ logger = logging.getLogger('wic') | |||
26 | 26 | ||
27 | # executable -> recipe pairs for exec_native_cmd | 27 | # executable -> recipe pairs for exec_native_cmd |
28 | NATIVE_RECIPES = {"bmaptool": "bmap-tools", | 28 | NATIVE_RECIPES = {"bmaptool": "bmap-tools", |
29 | "dumpe2fs": "e2fsprogs", | ||
29 | "grub-mkimage": "grub-efi", | 30 | "grub-mkimage": "grub-efi", |
30 | "isohybrid": "syslinux", | 31 | "isohybrid": "syslinux", |
31 | "mcopy": "mtools", | 32 | "mcopy": "mtools", |
@@ -138,9 +139,12 @@ def exec_native_cmd(cmd_and_args, native_sysroot, pseudo=""): | |||
138 | if pseudo: | 139 | if pseudo: |
139 | cmd_and_args = pseudo + cmd_and_args | 140 | cmd_and_args = pseudo + cmd_and_args |
140 | 141 | ||
141 | native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin" % \ | 142 | hosttools_dir = get_bitbake_var("HOSTTOOLS_DIR") |
143 | |||
144 | native_paths = "%s/sbin:%s/usr/sbin:%s/usr/bin:%s/bin:%s" % \ | ||
142 | (native_sysroot, native_sysroot, | 145 | (native_sysroot, native_sysroot, |
143 | native_sysroot, native_sysroot) | 146 | native_sysroot, native_sysroot, |
147 | hosttools_dir) | ||
144 | 148 | ||
145 | native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ | 149 | native_cmd_and_args = "export PATH=%s:$PATH;%s" % \ |
146 | (native_paths, cmd_and_args) | 150 | (native_paths, cmd_and_args) |