<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 26, 2017 at 9:19 AM, Stefano Babic <span dir="ltr">&lt;<a href="mailto:sbabic@denx.de" target="_blank">sbabic@denx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In case the defconfig was created with &quot;make savedefconfig&quot;, it is not<br>
enough to copy it to defconfig as it is done now. In fact, running make<br>
${KBUILD_DEFCONFIG}, as usually when building the kernel outside poky,<br>
does much more and the resulting .config file is different as the starting one.<br>
The file generated by &quot;make savedefconfig&quot; contains in most cases a<br>
subset of all options that are required for the kernel, and other<br>
options are inserted automatically when make is called.<br>
<br>
Signed-off-by: Stefano Babic &lt;<a href="mailto:sbabic@denx.de">sbabic@denx.de</a>&gt;<br>
---<br>
 meta/classes/kernel-yocto.<wbr>bbclass | 3 ++-<br>
 1 file changed, 2 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/kernel-yocto.<wbr>bbclass b/meta/classes/kernel-yocto.<wbr>bbclass<br>
index 0330270..27ff8b7 100644<br>
--- a/meta/classes/kernel-yocto.<wbr>bbclass<br>
+++ b/meta/classes/kernel-yocto.<wbr>bbclass<br>
@@ -109,7 +109,8 @@ do_kernel_metadata() {<br>
                                        bbwarn &quot;defconfig detected in WORKDIR. ${KBUILD_DEFCONFIG} skipped&quot;<br>
                                fi<br>
                        else<br>
-                               cp -f ${S}/arch/${ARCH}/configs/${<wbr>KBUILD_DEFCONFIG} ${WORKDIR}/defconfig<br>
+                                oe_runmake -C ${S} O=${B} ${KBUILD_DEFCONFIG}<br></blockquote><div><br></div><div><br></div><div>This would need to be a different mode in the configuration task, not here.</div><div>This routine only gathers inputs, and doesn&#39;t process them.</div><div><br></div><div>I have an open bug for this, and a WIP patch that will go out early in the</div><div>2.4 release cycle.</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">
+                                mv ${B}/.config ${WORKDIR}/defconfig<br>
                                sccs=&quot;${WORKDIR}/defconfig&quot;<br>
                        fi<br>
                else<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.4<br>
<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>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">&quot;Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end&quot;</div>
</div></div>