summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavis, Michael <michael.davis@essvote.com>2018-10-08 19:55:22 +0000
committerArmin Kuster <akuster808@gmail.com>2019-04-07 15:04:29 +0530
commit30b33d787595b8c3120b73c755a432a0f0f30fa7 (patch)
treed81a1c16b6901f4466df2f8211c44b71422a4a96
parent5ae49260180adc0070287db01c01a0820ce99ad3 (diff)
downloadopenembedded-core-contrib-30b33d787595b8c3120b73c755a432a0f0f30fa7.tar.gz
openembedded-core-contrib-30b33d787595b8c3120b73c755a432a0f0f30fa7.tar.bz2
openembedded-core-contrib-30b33d787595b8c3120b73c755a432a0f0f30fa7.zip
wic: Support for changing the imager.
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>
-rw-r--r--scripts/lib/wic/engine.py2
-rwxr-xr-xscripts/wic2
2 files changed, 3 insertions, 1 deletions
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