From f24c3538a27388d282a94e2d8a70cd9108d0919c Mon Sep 17 00:00:00 2001 From: "Davis, Michael" Date: Mon, 8 Oct 2018 19:55:22 +0000 Subject: wic: Support for changing the imager. Signed-off-by: Michael Davis Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/lib/wic/engine.py | 2 +- scripts/wic | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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, 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 -- cgit 1.2.3-korg