[oe-commits] Ed Bartosh : wic: Add new argument to wic_create function
git at git.openembedded.org
git at git.openembedded.org
Fri Jun 26 13:08:58 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 33d38aefb06f8849b46c5f9f6c1db73b4dccd985
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=33d38aefb06f8849b46c5f9f6c1db73b4dccd985
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date: Mon Jun 22 14:58:19 2015 +0300
wic: Add new argument to wic_create function
Added 'compressor' argument to wic_create to pass a name of
compressor utility to the wic engine.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
scripts/lib/image/engine.py | 4 +++-
scripts/wic | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/lib/image/engine.py b/scripts/lib/image/engine.py
index 29099ee..047c40d 100644
--- a/scripts/lib/image/engine.py
+++ b/scripts/lib/image/engine.py
@@ -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
diff --git a/scripts/wic b/scripts/wic
index 8869fba..f9be972 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -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):
More information about the Openembedded-commits
mailing list