<div dir="ltr">Picked to mut, thanks Cal<div><br></div><div>Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 March 2018 at 19:42, Cal Sullivan <span dir="ltr"><<a href="mailto:california.l.sullivan@intel.com" target="_blank">california.l.sullivan@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ping. This is still an issue and it looks like this patch fell through the cracks!<br>
<br>
Thanks,<br>
Cal<div class="HOEnZb"><div class="h5"><br>
<br>
On 01/24/2018 07:12 PM, California Sullivan wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Kernel v4.14 and newer contain the following in their Makefile:<br>
<br>
HOST_LFS_LDFLAGS := $(shell getconf LFS_LDFLAGS)<br>
HOSTLDFLAGS := $(HOST_LFS_LDFLAGS)<br>
<br>
This breaks our menuconfig, because it can no longer find ncurses if its<br>
not on the host machine. This can be seen in linux-yocto-dev, for<br>
example:<br>
<br>
[clsulliv@clsulliv build]$ bitbake virtual/kernel -c menuconfig<br>
<br>
GEN ./Makefile<br>
HOSTLD scripts/kconfig/mconf<br>
/home/clsulliv/yocto/poky/buil<wbr>d/tmp/hosttools/ld: cannot find -lncurses<br>
/home/clsulliv/yocto/poky/buil<wbr>d/tmp/hosttools/ld: cannot find -ltinfo<br>
collect2: error: ld returned 1 exit status<br>
make[3]: *** [scripts/Makefile.host:99: scripts/kconfig/mconf] Error 1<br>
make[2]: *** [/home/clsulliv/yocto/poky/bui<wbr>ld/tmp/work-shared/intel-corei<wbr>7-64/kernel-source/Makefile:<wbr>504: menuconfig] Error 2<br>
make[1]: *** [Makefile:146: sub-make] Error 2<br>
make: *** [Makefile:24: __sub-make] Error 2<br>
Command failed.<br>
Press any key to continue...<br>
<br>
Fix this by setting HOSTLDFLAGS to ${BUILD_LDFLAGS} in our<br>
'make menuconfig' command.<br>
<br>
Signed-off-by: California Sullivan <<a href="mailto:california.l.sullivan@intel.com" target="_blank">california.l.sullivan@intel.c<wbr>om</a>><br>
---<br>
meta/classes/kernel.bbclass | 2 ++<br>
1 file changed, 2 insertions(+)<br>
<br>
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass<br>
index 2f6eca382e9..e4df1531c19 100644<br>
--- a/meta/classes/kernel.bbclass<br>
+++ b/meta/classes/kernel.bbclass<br>
@@ -531,6 +531,8 @@ addtask savedefconfig after do_configure<br>
inherit cml1<br>
+KCONFIG_CONFIG_COMMAND_append = " HOSTLDFLAGS='${BUILD_LDFLAGS}'<wbr>"<br>
+<br>
EXPORT_FUNCTIONS do_compile do_install do_configure<br>
# kernel-base becomes kernel-${KERNEL_VERSION}<br>
</blockquote>
<br>
</div></div></blockquote></div><br></div>