mirror of
git://git.yoctoproject.org/poky
synced 2026-04-02 02:49:11 +00:00
wic: Support for changing the imager.
(From OE-Core rev: 30b33d787595b8c3120b73c755a432a0f0f30fa7) 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> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
56ddd6b3f4
commit
d335a43030
@ -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…
x
Reference in New Issue
Block a user