diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/engine.py | 2 | ||||
-rwxr-xr-x | scripts/wic | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index 850cec30e5..e6c830ce78 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py | |||
@@ -191,7 +191,7 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir, kernel_dir, | |||
191 | if not os.path.exists(options.outdir): | 191 | if not os.path.exists(options.outdir): |
192 | os.makedirs(options.outdir) | 192 | os.makedirs(options.outdir) |
193 | 193 | ||
194 | pname = 'direct' | 194 | pname = options.imager |
195 | plugin_class = PluginMgr.get_plugins('imager').get(pname) | 195 | plugin_class = PluginMgr.get_plugins('imager').get(pname) |
196 | if not plugin_class: | 196 | if not plugin_class: |
197 | raise WicError('Unknown plugin: %s' % pname) | 197 | raise WicError('Unknown plugin: %s' % pname) |
diff --git a/scripts/wic b/scripts/wic index 7392bc4e7f..37dfe2dc58 100755 --- a/scripts/wic +++ b/scripts/wic | |||
@@ -362,6 +362,8 @@ def wic_init_parser_create(subparser): | |||
362 | "bitbake variables") | 362 | "bitbake variables") |
363 | subparser.add_argument("-D", "--debug", dest="debug", action="store_true", | 363 | subparser.add_argument("-D", "--debug", dest="debug", action="store_true", |
364 | default=False, help="output debug information") | 364 | default=False, help="output debug information") |
365 | subparser.add_argument("-i", "--imager", dest="imager", | ||
366 | default="direct", help="the wic imager plugin") | ||
365 | return | 367 | return |
366 | 368 | ||
367 | 369 | ||