Skip to contentSkip to conversation

wic: Support for changing the imager.

PATCH New Davis, Michael 1 participant 1 message Oct 8, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wic: Support for changing the imager.

---
 scripts/lib/wic/engine.py | 2 +-
 scripts/wic               | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
scripts/lib/wic/engine.py +1 -1
index 850cec30e55..e6c830ce789 100644
@@ -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)
scripts/wic +2 -0
index 7392bc4e7f4..37dfe2dc589 100755
@@ -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
 
 
Signature · 1 line
2.17.1