From: Davis, Michael Date: Mon, 8 Oct 2018 19:55:22 +0000 (+0000) Subject: wic: Support for changing the imager. X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=30b33d787595b8c3120b73c755a432a0f0f30fa7;p=openembedded-core.git wic: Support for changing the imager. Signed-off-by: Michael Davis Signed-off-by: Ross Burton Signed-off-by: Richard Purdie Signed-off-by: Armin Kuster --- diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index f0c5ff0aaf..4996bfffe7 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 7392bc4e7f..37dfe2dc58 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