<div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote">On Tue, Aug 23, 2016 at 3:25 AM, Jérémy Rosen <span dir="ltr"><<a href="mailto:jeremy.rosen@smile.fr" target="_blank">jeremy.rosen@smile.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The KConfig infrastructure hardwires the compiler name to gcc, which breaks<br>
the BUILD_CC feature. This is needed even when cross compiling because<br>
make *config rely on the kconfig infrastructure<br></blockquote><div><br></div><div>Can you elaborate ? I'm not aware of any issues with either the host builds or<br></div><div>target builds with the kernel.<br><br></div><div>If there's an issue, we need to fix it upstream .. not here.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
meta/recipes-kernel/linux/<wbr>linux-yocto.inc | 4 ++++<br>
meta/recipes-kernel/linux/<wbr>linux-yocto/0001-Allow-<wbr>overriding-host-compiler-name-<wbr>from-environment.patch | 32 ++++++++++++++++++++++++++++++<wbr>++<br>
2 files changed, 36 insertions(+), 0 deletions(-)<br>
create mode 100644 meta/recipes-kernel/linux/<wbr>linux-yocto/0001-Allow-<wbr>overriding-host-compiler-name-<wbr>from-environment.patch<br>
<br>
diff --git a/meta/recipes-kernel/linux/<wbr>linux-yocto.inc b/meta/recipes-kernel/linux/<wbr>linux-yocto.inc<br>
index 98a48ec..63c1531 100644<br>
--- a/meta/recipes-kernel/linux/<wbr>linux-yocto.inc<br>
+++ b/meta/recipes-kernel/linux/<wbr>linux-yocto.inc<br>
@@ -58,3 +58,7 @@ do_install_append(){<br>
addtask kernel_link_images after do_compile before do_install<br>
addtask validate_branches before do_patch after do_kernel_checkout<br>
addtask kernel_configcheck after do_configure before do_compile<br>
+<br>
+SRC_URI_append = " file://0001-Allow-overriding-<wbr>host-compiler-name-from-<wbr>environment.patch"<br></blockquote><div><br></div><div>We don't carry patches to linux-yocto like this, they are sent to the linux-yocto mailing list, and<br></div><div>integrated into the tree itself.<br><br></div><div>Bruce<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+export HOSTCC = "${BUILD_CC}"<br>
+export HOSTCXX = "${BUILD_CXX}"<br>
diff --git a/meta/recipes-kernel/linux/<wbr>linux-yocto/0001-Allow-<wbr>overriding-host-compiler-name-<wbr>from-environment.patch b/meta/recipes-kernel/linux/<wbr>linux-</blockquote><div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">yocto/0001-Allow-<wbr>overriding-host-compiler-name-<wbr>from-environment.patch<br>
new file mode 100644<br>
index 0000000..6fcfbc8<br>
--- /dev/null<br>
+++ b/meta/recipes-kernel/linux/<wbr>linux-yocto/0001-Allow-<wbr>overriding-host-compiler-name-<wbr>from-environment.patch<br>
@@ -0,0 +1,32 @@<br>
+From 0ce4c4f29b5d456a7707e870c7affe<wbr>524f7c8807 Mon Sep 17 00:00:00 2001<br>
+From: =?UTF-8?q?J=C3=A9r=C3=A9my=<wbr>20Rosen?= <<a href="mailto:jeremy.rosen@smile.fr">jeremy.rosen@smile.fr</a>><br>
+Date: Tue, 16 Aug 2016 22:39:29 +0200<br>
+Subject: [PATCH] Allow overriding host-compiler name from environment<br>
+ variables<br>
+<br>
+---<br>
+ Makefile | 8 ++++----<br>
+ 1 file changed, 4 insertions(+), 4 deletions(-)<br>
+<br>
+diff --git a/Makefile b/Makefile<br>
+index 70dea02..1f0d2d2 100644<br>
+--- a/Makefile<br>
++++ b/Makefile<br>
+@@ -295,10 +295,10 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \<br>
+ else if [ -x /bin/bash ]; then echo /bin/bash; \<br>
+ else echo sh; fi ; fi)<br>
+<br>
+-HOSTCC = gcc<br>
+-HOSTCXX = g++<br>
+-HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89<br>
+-HOSTCXXFLAGS = -O2<br>
++HOSTCC ?= gcc<br>
++HOSTCXX ?= g++<br>
++HOSTCFLAGS ?= -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89<br>
++HOSTCXXFLAGS ?= -O2<br>
+<br>
+ ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)<br>
+ HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter \<br>
+--<br>
+2.8.1<br>
+<br>
<span class="HOEnZb"><font color="#888888">--<br>
git-series 0.8.9<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"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"</div>
</div></div></div>