mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
wic: Support for changing the imager.
(From OE-Core rev: f24c3538a27388d282a94e2d8a70cd9108d0919c) Signed-off-by: Michael Davis <michael.davis@essvote.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f76e2655d4
commit
9fa7068855
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user