]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Add new argument to wic_create function
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 22 Jun 2015 11:58:19 +0000 (14:58 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 26 Jun 2015 13:08:01 +0000 (14:08 +0100)
Added 'compressor' argument to wic_create to pass a name of
compressor utility to the wic engine.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
scripts/lib/image/engine.py
scripts/wic

index 29099ee0e6f622dcb261183d2d8b88e06ecb1b4e..047c40d908e3789ba7dde6dcc63ff03501346937 100644 (file)
@@ -179,7 +179,8 @@ def list_source_plugins():
 
 
 def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
-               native_sysroot, scripts_path, image_output_dir, debug):
+               native_sysroot, scripts_path, image_output_dir,
+               compressor, debug):
     """Create image
 
     wks_file - user-defined OE kickstart file
@@ -189,6 +190,7 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
     native_sysroot - absolute path to the build's native sysroots dir
     scripts_path - absolute path to /scripts dir
     image_output_dir - dirname to create for image
+    compressor - compressor utility to compress the image
 
     Normally, the values for the build artifacts values are determined
     by 'wic -e' from the output of the 'bitbake -e' command given an
index 8869fba0483b81a2703353f73bae99047fb1fdba..f9be972bad7a3240388eca1ecb777509b5b55415 100755 (executable)
@@ -228,7 +228,7 @@ def wic_create_subcommand(args, usage_str):
     print "Creating image(s)...\n"
     engine.wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir,
                       native_sysroot, scripts_path, image_output_dir,
-                      options.debug)
+                      options.compressor, options.debug)
 
 
 def wic_list_subcommand(args, usage_str):