summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/image/help.py4
-rwxr-xr-xscripts/wic3
2 files changed, 7 insertions, 0 deletions
diff --git a/scripts/lib/image/help.py b/scripts/lib/image/help.py
index fe66548f0f..c8b2fab6d8 100644
--- a/scripts/lib/image/help.py
+++ b/scripts/lib/image/help.py
@@ -152,6 +152,7 @@ SYNOPSIS
152 [-e | --image-name] [-s, --skip-build-check] [-D, --debug] 152 [-e | --image-name] [-s, --skip-build-check] [-D, --debug]
153 [-r, --rootfs-dir] [-b, --bootimg-dir] 153 [-r, --rootfs-dir] [-b, --bootimg-dir]
154 [-k, --kernel-dir] [-n, --native-sysroot] [-f, --build-rootfs] 154 [-k, --kernel-dir] [-n, --native-sysroot] [-f, --build-rootfs]
155 [-c, --compress-with]
155 156
156DESCRIPTION 157DESCRIPTION
157 This command creates an OpenEmbedded image based on the 'OE 158 This command creates an OpenEmbedded image based on the 'OE
@@ -218,6 +219,9 @@ DESCRIPTION
218 The -o option can be used to place the image in a directory with a 219 The -o option can be used to place the image in a directory with a
219 different name and location. 220 different name and location.
220 221
222 The -c option is used to specify compressor utility to compress
223 an image. gzip, bzip2 and xz compressors are supported.
224
221 The set of properties available for a given image type can be 225 The set of properties available for a given image type can be
222 listed using the 'wic list' command. 226 listed using the 'wic list' command.
223""" 227"""
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):
105 parser.add_option("-p", "--skip-build-check", dest="build_check", 105 parser.add_option("-p", "--skip-build-check", dest="build_check",
106 action="store_false", default=True, help="skip the build check") 106 action="store_false", default=True, help="skip the build check")
107 parser.add_option("-f", "--build-rootfs", action="store_true", help="build rootfs") 107 parser.add_option("-f", "--build-rootfs", action="store_true", help="build rootfs")
108 parser.add_option("-c", "--compress-with", choices=("gzip", "bzip2", "xz"),
109 dest='compressor',
110 help="compress image with specified compressor")
108 parser.add_option("-D", "--debug", dest="debug", action="store_true", 111 parser.add_option("-D", "--debug", dest="debug", action="store_true",
109 default=False, help="output debug information") 112 default=False, help="output debug information")
110 113