[oe-commits] Ed Bartosh : wic: Add --compress-with command line option

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: 8425ef0a67aa5ca7b2dbf4c461004af555aa0c96
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=8425ef0a67aa5ca7b2dbf4c461004af555aa0c96

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Mon Jun 22 14:42:37 2015 +0300

wic: Add --compress-with command line option

Added -c/--compress-with command line option to 'wic create'
subcommand. This option is used to specify compressor
utility to compress the image produced by wic. gzip, bzip2 and
xz compressors are supported in this implementation.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>

---

 scripts/lib/image/help.py | 4 ++++
 scripts/wic               | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py
index fe66548..c8b2fab 100644
--- a/scripts/lib/image/help.py
+++ b/scripts/lib/image/help.py
@@ -152,6 +152,7 @@ SYNOPSIS
         [-e | --image-name] [-s, --skip-build-check] [-D, --debug]
         [-r, --rootfs-dir] [-b, --bootimg-dir]
         [-k, --kernel-dir] [-n, --native-sysroot] [-f, --build-rootfs]
+        [-c, --compress-with]
 
 DESCRIPTION
     This command creates an OpenEmbedded image based on the 'OE
@@ -218,6 +219,9 @@ DESCRIPTION
     The -o option can be used to place the image in a directory with a
     different name and location.
 
+    The -c option is used to specify compressor utility to compress
+    an image. gzip, bzip2 and xz compressors are supported.
+
     The set of properties available for a given image type can be
     listed using the 'wic list' command.
 """
diff --git a/scripts/wic b/scripts/wic
index 7b0c3b2..8869fba 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -105,6 +105,9 @@ def wic_create_subcommand(args, usage_str):
     parser.add_option("-p", "--skip-build-check", dest="build_check",
                       action="store_false", default=True, help="skip the build check")
     parser.add_option("-f", "--build-rootfs", action="store_true", help="build rootfs")
+    parser.add_option("-c", "--compress-with", choices=("gzip", "bzip2", "xz"),
+                      dest='compressor',
+                      help="compress image with specified compressor")
     parser.add_option("-D", "--debug", dest="debug", action="store_true",
                       default=False, help="output debug information")
 



More information about the Openembedded-commits mailing list