<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 11, 2018 at 3:28 PM, Chris Laplante via Openembedded-core <span dir="ltr"><<a href="mailto:openembedded-core@lists.openembedded.org" target="_blank">openembedded-core@lists.openembedded.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_475090223536561029WordSection1">
<p class="MsoNormal">OK, I figured out why this happens. This line in kernel-yocto.bbclass:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-indent:.5in">scc --force -o ${S}/${meta_dir}:cfg,merge,<wbr>meta ${includes} ${bsp_definition} ${sccs} ${patches} ${KERNEL_FEATURES}<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">… passes the BSP def before the sccs. In my case, the BSP def is mymachine.scc, and the sccs is the defconfig. So that’s why the defconfig comes after the BSP.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My takeaway is that a BSP plus a defconfig is not a supported use case. Is that correct?</p></div></div></blockquote><div><br></div><div>A defconfig isn't magic, it is just another input to the configuration merging. It will be applied as any other fragment. There is some special processing only a defconfig is specified, but otherwise, it is the same. So in this case, whatever it sets would be applied after the BSP definition and would take precedence (last through the gate wins).</div><div><br></div><div>If you have a BSP definition, you normally don't have a defconfig. Where is the defconfig coming from in your scenario ? The SRC_URI ? You can just include it from the .scc files to control the order, which is what is expected when you have a BSP definition.</div><div><br></div><div>Were you seeing none of your options set ? or something else ?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_475090223536561029WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If so, I think it’s important to add some sanity checking to kernel-yocto.bbclass.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> </p></div></div></blockquote><div><br></div><div>There's really nothing that could be checked, since the intent of the fragments isn't known, and for the most part, defconfigs are the same as any other fragment (from the point of view of the merging).</div><div><br></div><div>Bruce</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_475090223536561029WordSection1"><p class="MsoNormal"><u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Chris<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> <a href="mailto:openembedded-core-bounces@lists.openembedded.org" target="_blank">openembedded-core-bounces@<wbr>lists.openembedded.org</a> [mailto:<a href="mailto:openembedded-core-bounces@lists.openembedded.org" target="_blank">openembedded-core-<wbr>bounces@lists.openembedded.org</a><wbr>]
<b>On Behalf Of </b>Chris Laplante via Openembedded-core<br>
<b>Sent:</b> Friday, May 11, 2018 2:51 PM<br>
<b>To:</b> <a href="mailto:openembedded-core@lists.openembedded.org" target="_blank">openembedded-core@lists.<wbr>openembedded.org</a><br>
<b>Cc:</b> SMITH,JARED (A-Little Falls,ex1) <<a href="mailto:jared.smith@agilent.com" target="_blank">jared.smith@agilent.com</a>><br>
<b>Subject:</b> [OE-core] do_kernel_configme and defconfig<u></u><u></u></p>
</div>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is it expected for do_kernel_configme to apply the defconfig last (after configuration fragments introduced by sccs)?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">For some reason, in the call to merge_config, “.kernel-meta/configs//./<wbr>defconfig” is passed last whereas I’d expect it would be first (since that should be the base config). This is causing problems, because config options that my config
fragments are setting are getting overridden by the defconfig – it should be the other way around.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">For reference, I’m using Rocko and have just updated to the latest commit. We have an in-tree defconfig, and we set KBUILD_DEFCONFIG_machinename appropriately. We are using the separate kernel-meta repository to store kernel metadata. I
have KMACHINE_machinename set up so that it finds the correct BSP definition .scc file. Still seem to be missing something, though.<span style="font-variant:small-caps"><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Chris<u></u><u></u></p>
</div></div></div>
</div>
<br>-- <br>
______________________________<wbr>_________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/<wbr>mailman/listinfo/openembedded-<wbr>core</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"</div>
</div></div>