<div dir="ltr"><span style="font-size:12.8px">When selected multiple subimages a similar error could happend:</span><br style="font-size:12.8px"><span style="font-size:12.8px">  Variable do_image_cpio[subimages] value changed \</span><br style="font-size:12.8px"><span style="font-size:12.8px">    from &#39;cpio.gz.u-boot cpio.gz&#39; to &#39;cpio.gz cpio.gz.u-boot&#39;</span><br style="font-size:12.8px"><span style="font-size:12.8px">To avoid this, &#39;ctypes&#39; should be sorted at &#39;gen_conversion_cmds&#39;.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">This garantee that &#39;CONVERSION_CMD_xxx&#39; are always written in tha same</span><br style="font-size:12.8px"><span style="font-size:12.8px">order and consequently &#39;do_image_cpio&#39; have the same hash.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">(From OE-Core rev: 271f1a5f65b8685a1e364502687625</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">1122ef3974)</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Signed-off-by: Gerson Fernando Budke &lt;</span><a href="mailto:nandojve@gmail.com" style="font-size:12.8px">nandojve@gmail.com</a><span style="font-size:12.8px">&gt;</span><br style="font-size:12.8px"><span style="font-size:12.8px">Signed-off-by: Ross Burton &lt;</span><a href="mailto:ross.burton@intel.com" style="font-size:12.8px">ross.burton@intel.com</a><span style="font-size:12.8px">&gt;</span><br style="font-size:12.8px"><span style="font-size:12.8px">Signed-off-by: Richard Purdie &lt;</span><a href="mailto:richard.purdie@linuxfoundation.org" style="font-size:12.8px">richard.purdie@<wbr>linuxfoundation.org</a><span style="font-size:12.8px">&gt;</span><br style="font-size:12.8px"><span style="font-size:12.8px">---</span><br style="font-size:12.8px"><span style="font-size:12.8px"> meta/classes/image.bbclass | 2 +-</span><br style="font-size:12.8px"><span style="font-size:12.8px"> 1 file changed, 1 insertion(+), 1 deletion(-)</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass</span><br style="font-size:12.8px"><span style="font-size:12.8px">index ef2b38aeaf..9c9f14a99a 100644</span><br style="font-size:12.8px"><span style="font-size:12.8px">--- a/meta/classes/image.bbclass</span><br style="font-size:12.8px"><span style="font-size:12.8px">+++ b/meta/classes/image.bbclass</span><br style="font-size:12.8px"><span style="font-size:12.8px">@@ -453,7 +453,7 @@ python () {</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">         rm_tmp_images = set()</span><br style="font-size:12.8px"><span style="font-size:12.8px">         def gen_conversion_cmds(bt):</span><br style="font-size:12.8px"><span style="font-size:12.8px">-            for ctype in ctypes:</span><br style="font-size:12.8px"><span style="font-size:12.8px">+            for ctype in sorted(ctypes):</span><br style="font-size:12.8px"><span style="font-size:12.8px">                 if bt.endswith(&quot;.&quot; + ctype):</span><br style="font-size:12.8px"><span style="font-size:12.8px">                     type = bt[0:-len(ctype) - 1]</span><br style="font-size:12.8px"><span style="font-size:12.8px">                     if type.startswith(&quot;debugfs_&quot;):</span><div class="gmail-yj6qo gmail-ajU" style="margin:2px 0px 0px;font-size:12.8px"><div id="gmail-:95h" class="gmail-ajR" tabindex="0"><br></div></div></div>