<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<pre><span style="color:black">&gt;<i>From 136d6214b6fc2c1118dac5b7f3e029ed006fab8a Mon Sep 17 00:00:00 2001<o:p></o:p></i></span></pre>
<pre><span style="color:black">From: Paul Knopf &lt;<a href="https://lists.yoctoproject.org/listinfo/yocto">pauldotknopf at gmail.com</a>&gt;<o:p></o:p></span></pre>
<pre><span style="color:black">Date: Mon, 21 May 2018 16:56:51 -0400<o:p></o:p></span></pre>
<pre><span style="color:black">Subject: [PATCH] Support for changing the imager used in wic.<o:p></o:p></span></pre>
<pre><span style="color:black"><o:p>&nbsp;</o:p></span></pre>
<pre><span style="color:black">---<o:p></o:p></span></pre>
<pre><span style="color:black"> scripts/lib/wic/engine.py | 2 &#43;-<o:p></o:p></span></pre>
<pre><span style="color:black"> scripts/wic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 1 &#43;<o:p></o:p></span></pre>
<pre><span style="color:black"> 2 files changed, 2 insertions(&#43;), 1 deletion(-)<o:p></o:p></span></pre>
<pre><span style="color:black"><o:p>&nbsp;</o:p></span></pre>
<pre><span style="color:black">diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py<o:p></o:p></span></pre>
<pre><span style="color:black">index edcfab3..d7c5c11 100644<o:p></o:p></span></pre>
<pre><span style="color:black">--- a/scripts/lib/wic/engine.py<o:p></o:p></span></pre>
<pre><span style="color:black">&#43;&#43;&#43; b/scripts/lib/wic/engine.py<o:p></o:p></span></pre>
<pre><span style="color:black">@@ -191,7 &#43;191,7 @@ def wic_create(wks_file, rootfs_dir, bootimg_dir,<o:p></o:p></span></pre>
<pre><span style="color:black">kernel_dir,<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp; if not os.path.exists(options.outdir):<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; os.makedirs(options.outdir)<o:p></o:p></span></pre>
<pre><span style="color:black"><o:p>&nbsp;</o:p></span></pre>
<pre><span style="color:black">-&nbsp; &nbsp;&nbsp;pname = 'direct'<o:p></o:p></span></pre>
<pre><span style="color:black">&#43;&nbsp;&nbsp;&nbsp; pname = options.imager<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp; plugin_class = PluginMgr.get_plugins('imager').get(pname)<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp; if not plugin_class:<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raise WicError('Unknown plugin: %s' % pname)<o:p></o:p></span></pre>
<pre><span style="color:black">diff --git a/scripts/wic b/scripts/wic<o:p></o:p></span></pre>
<pre><span style="color:black">index 7392bc4..255e524 100755<o:p></o:p></span></pre>
<pre><span style="color:black">--- a/scripts/wic<o:p></o:p></span></pre>
<pre><span style="color:black">&#43;&#43;&#43; b/scripts/wic<o:p></o:p></span></pre>
<pre><span style="color:black">@@ -360,6 &#43;360,7 @@ def wic_init_parser_create(subparser):<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp; subparser.add_argument(&quot;-v&quot;, &quot;--vars&quot;, dest='vars_dir',<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; help=&quot;directory with &lt;image&gt;.env files that store &quot;<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;bitbake variables&quot;)<o:p></o:p></span></pre>
<pre><span style="color:black">&#43;&nbsp;&nbsp;&nbsp; subparser.add_argument(&quot;-i&quot;, &quot;--imager&quot;, dest=&quot;imager&quot;,<o:p></o:p></span></pre>
<pre><span style="color:black">default=&quot;direct&quot;, help=&quot;the wic imager plugin&quot;)<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp; subparser.add_argument(&quot;-D&quot;, &quot;--debug&quot;, dest=&quot;debug&quot;,<o:p></o:p></span></pre>
<pre><span style="color:black">action=&quot;store_true&quot;,<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default=False, help=&quot;output debug information&quot;)<o:p></o:p></span></pre>
<pre><span style="color:black">&nbsp;&nbsp;&nbsp;&nbsp; return<o:p></o:p></span></pre>
<pre><span style="color:black">-- <o:p></o:p></span></pre>
<pre><span style="color:black">2.7.4<o:p></o:p></span></pre>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I found this patch that got sent to the yocto mailing list, but never made it to the correct mailing list.<o:p></o:p></p>
<p class="MsoNormal">I would really like to have the functionality if it is possible to get it pulled in.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>