<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 23, 2016, at 6:39 AM, Bruce Ashfield <<a href="mailto:bruce.ashfield@gmail.com" class="">bruce.ashfield@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Aug 23, 2016 at 3:25 AM, Jérémy Rosen <span dir="ltr" class=""><<a href="mailto:jeremy.rosen@smile.fr" target="_blank" class="">jeremy.rosen@smile.fr</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">The KConfig infrastructure hardwires the compiler name to gcc, which breaks<br class="">
the BUILD_CC feature. This is needed even when cross compiling because<br class="">
make *config rely on the kconfig infrastructure<br class="">
---<br class="">
</span> meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers.inc | 7 ++++++-<br class="">
meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers/0001-Allow-overriding-<wbr class="">host-compiler-name-from-<wbr class="">environment.patch | 32 ++++++++++++++++++++++++++++++<wbr class="">++<br class="">
2 files changed, 38 insertions(+), 1 deletion(-)<br class="">
create mode 100644 meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers/0001-Allow-overriding-<wbr class="">host-compiler-name-from-<wbr class="">environment.patch<br class="">
<br class="">
diff --git a/meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers.inc b/meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers.inc<br class="">
index 92acf8a..18bd080 100644<br class="">
--- a/meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers.inc<br class="">
+++ b/meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers.inc<br class="">
@@ -46,7 +46,9 @@ inherit kernel-arch<br class="">
<br class="">
KORG_ARCHIVE_COMPRESSION ?= "xz"<br class="">
<br class="">
-SRC_URI = "${KERNELORG_MIRROR}/linux/<wbr class="">kernel/v${HEADER_FETCH_VER}/<wbr class="">linux-${PV}.tar.${KORG_<wbr class="">ARCHIVE_COMPRESSION}"<br class="">
+SRC_URI = "${KERNELORG_MIRROR}/linux/<wbr class="">kernel/v${HEADER_FETCH_VER}/<wbr class="">linux-${PV}.tar.${KORG_<wbr class="">ARCHIVE_COMPRESSION} \<br class="">
+ <a href="file:///0001-Allow-overriding-" class="">file://0001-Allow-overriding-</a><wbr class="">host-compiler-name-from-<wbr class="">environment.patch \<br class="">
+ "<br class="">
<br class=""></blockquote><div class=""><br class=""></div><div class="">We shouldn't be patching linux-libc-headers, and much less with a build patch like this. libc-headers<br class=""></div><div class="">are the c libraries interface to the kernel. If something is building against the kernel itself, it needs<br class=""></div><div class="">to go against the kernel source.</div></div></div></div></div></blockquote><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><div class="">If this is broken, it needs to be fixed upstream.<br class=""></div></div></div></div></div></blockquote><div><br class=""></div><div>I agree. now a days we have more than gcc available as system C compiler perhaps your patch might be upstream worthy.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><div class=""><br class=""></div><div class="">But like the kernel patch, I can't tell exactly what problem you are trying to fix. Can you be more<br class=""></div><div class="">specific ?<br class=""><br class=""></div><div class="">Bruce<br class=""></div><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
S = "${WORKDIR}/linux-${PV}"<br class="">
<br class="">
@@ -77,3 +79,6 @@ RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPKGV})"<br class="">
<br class="">
INHIBIT_DEFAULT_DEPS = "1"<br class="">
DEPENDS += "unifdef-native"<br class="">
+<br class="">
+export HOSTCC="${BUILD_CC}"<br class="">
+export HOSTCXX="${BUILD_CXX}"<br class="">
diff --git a/meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers/0001-Allow-overriding-<wbr class="">host-compiler-name-from-<wbr class="">environment.patch b/meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers/0001-Allow-overriding-<wbr class="">host-compiler-name-from-<wbr class="">environment.patch<br class="">
new file mode 100644<br class="">
index 0000000..6fcfbc8<br class="">
--- /dev/null<br class="">
+++ b/meta/recipes-kernel/linux-<wbr class="">libc-headers/linux-libc-<wbr class="">headers/0001-Allow-overriding-<wbr class="">host-compiler-name-from-<wbr class="">environment.patch<br class="">
@@ -0,0 +1,32 @@<br class="">
+From 0ce4c4f29b5d456a7707e870c7affe<wbr class="">524f7c8807 Mon Sep 17 00:00:00 2001<br class="">
+From: =?UTF-8?q?J=C3=A9r=C3=A9my=<wbr class="">20Rosen?= <<a href="mailto:jeremy.rosen@smile.fr" class="">jeremy.rosen@smile.fr</a>><br class="">
<span class="">+Date: Tue, 16 Aug 2016 22:39:29 +0200<br class="">
+Subject: [PATCH] Allow overriding host-compiler name from environment<br class="">
+ variables<br class="">
+<br class="">
+---<br class="">
+ Makefile | 8 ++++----<br class="">
</span>+ 1 file changed, 4 insertions(+), 4 deletions(-)<br class="">
<span class="">+<br class="">
+diff --git a/Makefile b/Makefile<br class="">
</span>+index 70dea02..1f0d2d2 100644<br class="">
+--- a/Makefile<br class="">
++++ b/Makefile<br class="">
<span class="im HOEnZb">+@@ -295,10 +295,10 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \<br class="">
+ else if [ -x /bin/bash ]; then echo /bin/bash; \<br class="">
+ else echo sh; fi ; fi)<br class="">
</span><span class="im HOEnZb">+<br class="">
+-HOSTCC = gcc<br class="">
+-HOSTCXX = g++<br class="">
</span><span class="im HOEnZb">+-HOSTCFLAGS = -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89<br class="">
+-HOSTCXXFLAGS = -O2<br class="">
</span><span class="im HOEnZb">++HOSTCC ?= gcc<br class="">
++HOSTCXX ?= g++<br class="">
</span><span class="im HOEnZb">++HOSTCFLAGS ?= -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu89<br class="">
++HOSTCXXFLAGS ?= -O2<br class="">
+<br class="">
+ ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)<br class="">
+ HOSTCFLAGS += -Wno-unused-value -Wno-unused-parameter \<br class="">
</span><div class="HOEnZb"><div class="h5">+--<br class="">
+2.8.1<br class="">
+<br class="">
--<br class="">
git-series 0.8.9<br class="">
--<br class="">
______________________________<wbr class="">_________________<br class="">
Openembedded-core mailing list<br class="">
<a href="mailto:Openembedded-core@lists.openembedded.org" class="">Openembedded-core@lists.<wbr class="">openembedded.org</a><br class="">
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank" class="">http://lists.openembedded.org/<wbr class="">mailman/listinfo/openembedded-<wbr class="">core</a><br class="">
</div></div></blockquote></div><br class=""><br clear="all" class=""><br class="">-- <br class=""><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>
-- <br class="">_______________________________________________<br class="">Openembedded-core mailing list<br class=""><a href="mailto:Openembedded-core@lists.openembedded.org" class="">Openembedded-core@lists.openembedded.org</a><br class="">http://lists.openembedded.org/mailman/listinfo/openembedded-core<br class=""></div></blockquote></div><br class=""></body></html>