diff options
Diffstat (limited to 'scripts/lib/wic/engine.py')
| -rw-r--r-- | scripts/lib/wic/engine.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index 5d35c46b32..5b104631ca 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
| @@ -145,7 +145,7 @@ def list_source_plugins(): | |||
| 145 | 145 | ||
| 146 | def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, | 146 | def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, |
| 147 | native_sysroot, scripts_path, image_output_dir, | 147 | native_sysroot, scripts_path, image_output_dir, |
| 148 | compressor, debug): | 148 | compressor, bmap, debug): |
| 149 | """Create image | 149 | """Create image |
| 150 | 150 | ||
| 151 | wks_file - user-defined OE kickstart file | 151 | wks_file - user-defined OE kickstart file |
| @@ -156,6 +156,7 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, | |||
| 156 | scripts_path - absolute path to /scripts dir | 156 | scripts_path - absolute path to /scripts dir |
| 157 | image_output_dir - dirname to create for image | 157 | image_output_dir - dirname to create for image |
| 158 | compressor - compressor utility to compress the image | 158 | compressor - compressor utility to compress the image |
| 159 | bmap - enable generation of .bmap | ||
| 159 | 160 | ||
| 160 | Normally, the values for the build artifacts values are determined | 161 | Normally, the values for the build artifacts values are determined |
| 161 | by 'wic -e' from the output of the 'bitbake -e' command given an | 162 | by 'wic -e' from the output of the 'bitbake -e' command given an |
| @@ -186,8 +187,12 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, | |||
| 186 | 187 | ||
| 187 | crobj = creator.Creator() | 188 | crobj = creator.Creator() |
| 188 | 189 | ||
| 189 | crobj.main(["direct", native_sysroot, kernel_dir, bootimg_dir, rootfs_dir, | 190 | cmdline = ["direct", native_sysroot, kernel_dir, bootimg_dir, rootfs_dir, |
| 190 | wks_file, image_output_dir, oe_builddir, compressor or ""]) | 191 | wks_file, image_output_dir, oe_builddir, compressor or ""] |
| 192 | if bmap: | ||
| 193 | cmdline.append('--bmap') | ||
| 194 | |||
| 195 | crobj.main(cmdline) | ||
| 191 | 196 | ||
| 192 | print("\nThe image(s) were created using OE kickstart file:\n %s" % wks_file) | 197 | print("\nThe image(s) were created using OE kickstart file:\n %s" % wks_file) |
| 193 | 198 | ||
