From: Davis, Michael Date: Mon, 8 Oct 2018 19:55:22 +0000 (+0000) Subject: wic: Support for changing the imager. X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~16453 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f24c3538a27388d282a94e2d8a70cd9108d0919c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wic: Support for changing the imager. Signed-off-by: Michael Davis Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index 850cec30e55..e6c830ce789 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, if not os.path.exists(options.outdir): os.makedirs(options.outdir) - pname = 'direct' + pname = options.imager plugin_class = PluginMgr.get_plugins('imager').get(pname) if not plugin_class: raise WicError('Unknown plugin: %s' % pname) diff --git a/scripts/wic b/scripts/wic index 7392bc4e7f4..37dfe2dc589 100755 --- a/scripts/wic +++ b/scripts/wic @@ -362,6 +362,8 @@ def wic_init_parser_create(subparser): "bitbake variables") subparser.add_argument("-D", "--debug", dest="debug", action="store_true", default=False, help="output debug information") + subparser.add_argument("-i", "--imager", dest="imager", + default="direct", help="the wic imager plugin") return