<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p><br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 23/08/2016 15:36, Bruce Ashfield
      wrote:<br>
    </div>
    <blockquote
cite="mid:CADkTA4NU-X9mif2cK03piq+6YyrGtw8ak-A9ysfvwrUu3eVX3Q@mail.gmail.com"
      type="cite">
      <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">&lt;<a
                  moz-do-not-send="true"
                  href="mailto:jeremy.rosen@smile.fr" target="_blank">jeremy.rosen@smile.fr</a>&gt;</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>
        </div>
      </div>
    </blockquote>
    Ok, two answers here<br>
    <br>
    * the problem is specifically when the kernel builds a binary for
    the host. not when the kernel itself is compiled. i.e it is the
    binary needed to run menuconfig itself that was the problem. <br>
    * I have contacted the KConfig maintainer and he has offered me a
    more elegant solution to that problem that does not require an
    upstream patch. I will propose a better fix for the<br>
    three instances of KConfig (kernel, kernel headers, busybox) in V2
    of this patch<br>
    <br>
    Sorry for the churn, I am compiling his approch as we speak :)<br>
    <blockquote
cite="mid:CADkTA4NU-X9mif2cK03piq+6YyrGtw8ak-A9ysfvwrUu3eVX3Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div class="gmail_extra">
            <div class="gmail_quote">
              <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 = " <a class="moz-txt-link-freetext" href="file://0001-Allow-overriding">file://0001-Allow-overriding</a>-<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>
              <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?= &lt;<a
                  moz-do-not-send="true"
                  href="mailto:jeremy.rosen@smile.fr">jeremy.rosen@smile.fr</a>&gt;<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&gt;&amp;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 moz-do-not-send="true"
                      href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.<wbr>openembedded.org</a><br>
                    <a moz-do-not-send="true"
                      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>
    </blockquote>
    <br>
  </body>
</html>