summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-22 14:42:37 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-26 14:08:01 +0100
commit8425ef0a67aa5ca7b2dbf4c461004af555aa0c96 (patch)
treedd8db5d027371f5256f68a261ba724de136df621 /scripts/wic
parentecdfdd7286a2f406655577f2c4d6fcf3fe3de429 (diff)
downloadopenembedded-core-8425ef0a67aa5ca7b2dbf4c461004af555aa0c96.tar.gz
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@linux.intel.com>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/wic b/scripts/wic
index 7b0c3b2aa8..8869fba048 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")