<div dir="ltr">Awesome, thanks! <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 7, 2020 at 3:45 PM Bruce Ashfield &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">On Fri, Feb 7, 2020 at 9:20 AM Martin Jansa &lt;<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; With the LD=&quot;${KERNEL_LD}&quot; removed here, the build with ld-is-gold doesn&#39;t work anymore again.<br>
&gt;<br>
&gt; Why did you remove it?<br>
<br>
I removed it by mistake, and fixed it .. but apparently sent the wrong<br>
version of the patch.<br>
<br>
I&#39;ll send a v2 shortly!<br>
<br>
Bruce<br>
<br>
&gt;<br>
&gt; On Thu, Feb 6, 2020 at 6:37 PM &lt;<a href="mailto:bruce.ashfield@gmail.com" target="_blank">bruce.ashfield@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; From: Bruce Ashfield &lt;<a href="mailto:bruce.ashfield@gmail.com" target="_blank">bruce.ashfield@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; To ensure that the kernel linker is used when allno/mod/yes config<br>
&gt;&gt; merge_config steps were executed, the call to make was tweaked to<br>
&gt;&gt; explicitly pass LD.<br>
&gt;&gt;<br>
&gt;&gt; But since the variable wasn&#39;t quoted, any parameters to LD (like<br>
&gt;&gt; the sysroot) were mistakenly passed to make, and hence could trigger<br>
&gt;&gt; an error on some architectures.<br>
&gt;&gt;<br>
&gt;&gt; We also tweak the logging to hightlight errors like this in the<br>
&gt;&gt; future and avoid losing it in the noise of merge configs sometimes<br>
&gt;&gt; overly verbose output.<br>
&gt;&gt;<br>
&gt;&gt; Signed-off-by: Bruce Ashfield &lt;<a href="mailto:bruce.ashfield@gmail.com" target="_blank">bruce.ashfield@gmail.com</a>&gt;<br>
&gt;&gt; ---<br>
&gt;&gt;  meta/classes/kernel-yocto.bbclass                      | 10 +++++++---<br>
&gt;&gt;  .../recipes-kernel/kern-tools/<a href="http://kern-tools-native_git.bb" rel="noreferrer" target="_blank">kern-tools-native_git.bb</a> |  2 +-<br>
&gt;&gt;  2 files changed, 8 insertions(+), 4 deletions(-)<br>
&gt;&gt;<br>
&gt;&gt; diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass<br>
&gt;&gt; index 918d101d3d..31ea42580c 100644<br>
&gt;&gt; --- a/meta/classes/kernel-yocto.bbclass<br>
&gt;&gt; +++ b/meta/classes/kernel-yocto.bbclass<br>
&gt;&gt; @@ -352,10 +352,14 @@ do_kernel_configme() {<br>
&gt;&gt;                 bbfatal_log &quot;Could not find configuration queue (${meta_dir}/config.queue)&quot;<br>
&gt;&gt;         fi<br>
&gt;&gt;<br>
&gt;&gt; -       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>
&gt;&gt; -<br>
&gt;&gt; +       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>
&gt;&gt;         if [ $? -ne 0 -o ! -f ${B}/.config ]; then<br>
&gt;&gt; -               bbfatal_log &quot;Could not configure ${KMACHINE}-${LINUX_KERNEL_TYPE}&quot;<br>
&gt;&gt; +               bberror &quot;Could not generate a .config for ${KMACHINE}-${LINUX_KERNEL_TYPE}&quot;<br>
&gt;&gt; +               if [ ${KCONF_AUDIT_LEVEL} -gt 1 ]; then<br>
&gt;&gt; +                       bbfatal_log &quot;`cat ${meta_dir}/cfg/merge_config_build.log`&quot;<br>
&gt;&gt; +               else<br>
&gt;&gt; +                       bbfatal_log &quot;Details can be found at: ${S}/${meta_dir}/cfg/merge_config_build.log&quot;<br>
&gt;&gt; +               fi<br>
&gt;&gt;         fi<br>
&gt;&gt;<br>
&gt;&gt;         if [ ! -z &quot;${LINUX_VERSION_EXTENSION}&quot; ]; then<br>
&gt;&gt; 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>
&gt;&gt; index f263421234..4f1af731d6 100644<br>
&gt;&gt; --- 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>
&gt;&gt; +++ 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>
&gt;&gt; @@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = &quot;file://tools/kgit;beginline=5;endline=9;md5=9c30e971d435e249<br>
&gt;&gt;<br>
&gt;&gt;  DEPENDS = &quot;git-native&quot;<br>
&gt;&gt;<br>
&gt;&gt; -SRCREV = &quot;388b67974deb2176c06994a325676cbf23e5fce8&quot;<br>
&gt;&gt; +SRCREV = &quot;c66833e1caac25279a5052fceb13213f5e4f79f9&quot;<br>
&gt;&gt;  PR = &quot;r12&quot;<br>
&gt;&gt;  PV = &quot;0.2+git${SRCPV}&quot;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; 2.19.1<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Openembedded-core mailing list<br>
&gt;&gt; <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
&gt;&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
<br>
<br>
<br>
-- <br>
- Thou shalt not follow the NULL pointer, for chaos and madness await<br>
thee at its end<br>
- &quot;Use the force Harry&quot; - Gandalf, Star Trek II<br>
</blockquote></div>