<div dir="ltr">With the LD=&quot;${KERNEL_LD}&quot; removed here, the build with ld-is-gold doesn&#39;t work anymore again.<div><br></div><div>Why did you remove it?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 6, 2020 at 6:37 PM &lt;<a href="mailto:bruce.ashfield@gmail.com">bruce.ashfield@gmail.com</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">From: Bruce Ashfield &lt;<a href="mailto:bruce.ashfield@gmail.com" target="_blank">bruce.ashfield@gmail.com</a>&gt;<br>
<br>
To ensure that the kernel linker is used when allno/mod/yes config<br>
merge_config steps were executed, the call to make was tweaked to<br>
explicitly pass LD.<br>
<br>
But since the variable wasn&#39;t quoted, any parameters to LD (like<br>
the sysroot) were mistakenly passed to make, and hence could trigger<br>
an error on some architectures.<br>
<br>
We also tweak the logging to hightlight errors like this in the<br>
future and avoid losing it in the noise of merge configs sometimes<br>
overly verbose output.<br>
<br>
Signed-off-by: Bruce Ashfield &lt;<a href="mailto:bruce.ashfield@gmail.com" target="_blank">bruce.ashfield@gmail.com</a>&gt;<br>
---<br>
 meta/classes/kernel-yocto.bbclass                      | 10 +++++++---<br>
 .../recipes-kernel/kern-tools/<a href="http://kern-tools-native_git.bb" rel="noreferrer" target="_blank">kern-tools-native_git.bb</a> |  2 +-<br>
 2 files changed, 8 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass<br>
index 918d101d3d..31ea42580c 100644<br>
--- a/meta/classes/kernel-yocto.bbclass<br>
+++ b/meta/classes/kernel-yocto.bbclass<br>
@@ -352,10 +352,14 @@ do_kernel_configme() {<br>
                bbfatal_log &quot;Could not find configuration queue (${meta_dir}/config.queue)&quot;<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; LD=&quot;${KERNEL_LD}&quot; ARCH=${ARCH} merge_config.sh -O ${B} ${config_flags} ${configs}<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;&amp;1<br>
        if [ $? -ne 0 -o ! -f ${B}/.config ]; then<br>
-               bbfatal_log &quot;Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}&quot;<br>
+               bberror &quot;Could not generate a .config for ${KMACHINE}-${LINUX_KERNEL_TYPE}&quot;<br>
+               if [ ${KCONF_AUDIT_LEVEL} -gt 1 ]; then<br>
+                       bbfatal_log &quot;`cat ${meta_dir}/cfg/merge_config_build.log`&quot;<br>
+               else<br>
+                       bbfatal_log &quot;Details can be found at: ${S}/${meta_dir}/cfg/merge_config_build.log&quot;<br>
+               fi<br>
        fi<br>
<br>
        if [ ! -z &quot;${LINUX_VERSION_EXTENSION}&quot; ]; then<br>
diff --git a/meta/recipes-kernel/kern-tools/<a href="http://kern-tools-native_git.bb" rel="noreferrer" target="_blank">kern-tools-native_git.bb</a> b/meta/recipes-kernel/kern-tools/<a href="http://kern-tools-native_git.bb" rel="noreferrer" target="_blank">kern-tools-native_git.bb</a><br>
index f263421234..4f1af731d6 100644<br>
--- a/meta/recipes-kernel/kern-tools/<a href="http://kern-tools-native_git.bb" rel="noreferrer" target="_blank">kern-tools-native_git.bb</a><br>
+++ b/meta/recipes-kernel/kern-tools/<a href="http://kern-tools-native_git.bb" rel="noreferrer" target="_blank">kern-tools-native_git.bb</a><br>
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = &quot;file://tools/kgit;beginline=5;endline=9;md5=9c30e971d435e249<br>
<br>
 DEPENDS = &quot;git-native&quot;<br>
<br>
-SRCREV = &quot;388b67974deb2176c06994a325676cbf23e5fce8&quot;<br>
+SRCREV = &quot;c66833e1caac25279a5052fceb13213f5e4f79f9&quot;<br>
 PR = &quot;r12&quot;<br>
 PV = &quot;0.2+git${SRCPV}&quot;<br>
<br>
-- <br>
2.19.1<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>