<div dir="ltr"><div><div><div>Ok, I&#39;ve made some progress.<br>I&#39;m running <br>$bitbake lib32-&lt;image name&gt; -c populate_sdk<br><br>and it proceeds for a while.<br>We do have a few packages that are not ready to be built as 32-bit, and those fail as compiler errors.<br><br></div>Is there a way to temporarily remove them from the list of packages to be built?<br></div>Poking around I found DEFAULT_PREFERENCE*, but that looks like it&#39;s not quite what I&#39;m looking for.<br><br></div>Is there any easy way to quickly disable a particular package from an image build?<br><div><br>* <a href="http://www.embeddedlinux.org.cn/OEManual/recipes_defaultpreference.html">http://www.embeddedlinux.org.cn/OEManual/recipes_defaultpreference.html</a><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 29, 2016 at 1:30 PM, Nemicolopterus Crypticus <span dir="ltr">&lt;<a href="mailto:ncrypticus@gmail.com" target="_blank">ncrypticus@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Added: <a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=10054" target="_blank">https://bugzilla.yoctoproject.org/show_bug.cgi?id=10054</a><br><br><br></div><div>Please let me know if I can try anything else or provide more info.<br><br></div><div>In the meantime, I&#39;m going to try to disable multilib, and only build the ARMv7 version of the SDK.<br><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 29, 2016 at 12:07 PM, Khem Raj <span dir="ltr">&lt;<a href="mailto:raj.khem@gmail.com" target="_blank">raj.khem@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><span><blockquote type="cite"><div>On Jul 29, 2016, at 10:48 AM, Nemicolopterus Crypticus &lt;<a href="mailto:ncrypticus@gmail.com" target="_blank">ncrypticus@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr"><div><div>Hello all,<br><br></div>We are having issues with our 
generated SDK files. We&#39;re using the jethro branch, and have enabled 
multilib (see relevant portion of local.conf below).<br><br></div><div>I can succesfully run the command to generate the SDK:<br></div><div>$ bitbake &lt;recipe name&gt; -c populate_sdk<br><br></div><div>But the output is incorrect. <b>While
 the aarch sysroots look good, the sysroots for arm are completely 
missing. The environment setup script ends up pointing to non-existent 
compilers. </b>Please let me know if you need more information!<br></div></div></div></blockquote><div><br></div></span><div>Thanks for report. It will be good if you can open a bugzilla entry for this. So it can be tracked.</div><br><blockquote type="cite"><div><div><div><div dir="ltr"><div><br></div><div>Steps to reproduce:<br></div><div>$ bitbake &lt;recipe name&gt; -c populate_sdk<br></div><div>$ cp tmp/deploy/sdk/&lt;sdk-script&gt;.sh /test/directory<br></div><div>$ cd /test/directory<br></div><div>$ bash &lt;sdk-script&gt;.sh<br></div><div>$ ls sysroots/<br>aarch64-poky-linux/   x86_64-pokysdk-linux/ <br><br></div><div>Note the missing ARM directories.<br><br></div><div>Also, the setup script for arm sets this as the command for compiler:<br> 12 export CC=&quot;arm-pokymllib32-linux-gnueabi-gcc<br><br></div><div>But that compiler doesn&#39;t exist anywhere in the folder where I installed everything, or environment!<br><br></div><div>So it appears that it&#39;s not completely or correctly packaging everything for ARMv7.<br></div><div><br></div><div>The <a href="http://www.yoctoproject.org/docs/2.0/mega-manual/mega-manual.html#sdk-dev-environment" target="_blank">documentation does mention some environment variables</a>, but it&#39;s not clear how those related to multilib.<br><br></div><div>For
 instance, none of our recipes have &quot;SDKIMAGE_FEATURES&quot; defined, but 
clearly the aarch64 sysroots are getting populated correctly (we 
succesfully compiled and ran a simple hello world).<br><br></div><div><b>Can
 anyone point me to an example, or discuss a successful use of 
&quot;multilib&quot; on the Jethro branch (given desparate brainstorming below), 
share some more verbose documentation, or ask follow-up questions?</b><br></div><div><br></div><div><br>_____________________________________________________________<br></div><div>Desperate brainstorming below:<br></div><div>I did find this years-old patch: <a href="https://patchwork.openembedded.org/patch/30941/" target="_blank">https://patchwork.openembedded.org/patch/30941/</a><br></div><div>Notably, the do_populate_sdk method in poky/meta/classes/populate_sdk_base.bbclass iterates over the values listed in the MULTILIB_VARIANTS variable:<br><br><pre><span>+        variants = d.getVar(&quot;MULTILIB_VARIANTS&quot;, True) or &quot;&quot;</span>
<span>+        for item in variants.split():</span>
<span>+                # Load overrides from &#39;d&#39; to avoid having to reset the value...</span>
<span>+                overrides = d.getVar(&quot;OVERRIDES&quot;, False) + &quot;:virtclass-multilib-&quot; + item</span>
<span>+                localdata.setVar(&quot;OVERRIDES&quot;, overrides)</span>
<span>+                bb.data.update_data(localdata)</span>
<span>+                bb.build.exec_func(&quot;create_sdk_files&quot;, localdata)</span></pre><br></div><div><br></div><div>The latest version in Jethro does not have anything equivalent to that, but I did not dig deeply into the code or the commit history.<br></div><div><br><br><br><br>______________________________________________________________<br></div><div>More data:<br></div><div><br></div>local.conf relevant section:<br>#<br># Multilib configuration<br>#<br># This sets any packages preprended with lib32- to be built with<br># the armv7a tuning (32 bit) instead of 64 bit aarch.<br>#<br>require conf/multilib.conf<br>MULTILIBS = &quot;multilib:lib32&quot;<br>DEFAULTTUNE_virtclass-multilib-lib32 = &quot;armv7at-neon&quot;</div></div></div><span><font color="#888888">
-- <br>_______________________________________________<br>Openembedded-core mailing list<br><a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br><a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br></font></span></div></blockquote></div><br></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>