<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 29, 2019 at 10:01 AM Flavio Suligoi &lt;<a href="mailto:f.suligoi@asem.it">f.suligoi@asem.it</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Sometimes, for example in case of missed dependecies, after the<br>
execution of:<br>
<br>
merge_config.sh<br>
<br>
the resulting file &quot;.config&quot; can be empty.<br>
This is the reason why is necessary test it and, in case, display<br>
the &quot;Could not configure ...&quot; error message.<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">This doesn&#39;t belong here. Auditing of the final .config is done in a separate task, and we could pickup that issue there.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">That being said, there are already checks for inputs that could result in something like this. How were you triggering this issue ? I&#39;d like to reproduce it here, and perhaps come up with a different solution.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Bruce</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Signed-off-by: Flavio Suligoi &lt;<a href="mailto:f.suligoi@asem.it" target="_blank">f.suligoi@asem.it</a>&gt;<br>
---<br>
 meta/classes/kernel-yocto.bbclass | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass<br>
index 243f8d6..895966b 100644<br>
--- a/meta/classes/kernel-yocto.bbclass<br>
+++ b/meta/classes/kernel-yocto.bbclass<br>
@@ -331,7 +331,7 @@ do_kernel_configme() {<br>
        fi<br>
<br>
        CFLAGS=&quot;${CFLAGS} ${TOOLCHAIN_OPTIONS}&quot; HOSTCC=&quot;${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}&quot; HOSTCPP=&quot;${BUILD_CPP}&quot; CC=&quot;${KERNEL_CC}&quot; ARCH=${ARCH} merge_config.sh -O ${B} ${config_flags} ${configs} &gt; ${meta_dir}/cfg/merge_config_build.log 2&gt; ${meta_dir}/cfg/merge_config_build-errors.log<br>
-       if [ $? -ne 0 ]; then<br>
+       if [ $? -ne 0 ] || [ ! -s ${B}/.config ]; then<br>
                bbfatal_log &quot;Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}&quot;<br>
        fi<br>
<br>
-- <br>
2.7.4<br>
<br>
-- <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" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end<br>- &quot;Use the force Harry&quot; - Gandalf, Star Trek II<br><br></div></div>