From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: mark.yang@lge.com, openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH v2] kernel-arch: limit KERNEL_TOOLCHAIN to the kbuild recipes
Date: Fri, 31 Jul 2026 11:44:16 +0100 [thread overview]
Message-ID: <15d504454286b8aa2c86f28a6dfca7a0946e3078.camel@linuxfoundation.org> (raw)
In-Reply-To: <20260724045917.3595374-1-mark.yang@lge.com>
On Fri, 2026-07-24 at 13:59 +0900, mark.yang via lists.openembedded.org wrote:
> From: "mark.yang" <mark.yang@lge.com>
>
> u-boot and barebox inherit kernel-arch for the ARCH mapping, so since
> 0e3756efe0 ("kernel-arch: add KERNEL_TOOLCHAIN to switch the whole
> kernel toolchain") KERNEL_TOOLCHAIN = "clang" switches them too. That
> swaps u-boot's gcc-cross dependency for clang-cross, but its kbuild
> hardcodes ${CROSS_COMPILE}gcc:
>
> /bin/sh: 1: x86_64-oe-linux-gcc: not found
>
> Full log: https://errors.yoctoproject.org/Errors/Build/242654/
>
> Pin TOOLCHAIN back to gcc in kernel-arch and set it from
> KERNEL_TOOLCHAIN in kernel.bbclass, module-base and make-mod-scripts.
>
> Signed-off-by: mark.yang <mark.yang@lge.com>
> ---
> v2: add a comment explaining why kernel-arch keeps TOOLCHAIN pinned
> to gcc
>
> The v2 series was merged, so this carries the remaining v3 3/3 delta
> (<20260720231714.1631366-1-mark.yang@lge.com>) as a follow-up fix.
>
> meta/classes-recipe/kernel-arch.bbclass | 5 ++++-
> meta/classes-recipe/kernel.bbclass | 1 +
> meta/classes-recipe/module-base.bbclass | 1 +
> meta/recipes-kernel/make-mod-scripts/make-mod-scripts_1.0.bb | 1 +
> 4 files changed, 7 insertions(+), 1 deletion(-)
I really don't like having to set the same thing in multiple places, it
will cause a maintenance nightmare in the future. The kernel classes
are getting too convoluted and too much of a twisted maze already.
There is very little u-boot and barebox actually need from the class
anyway. Instead, I suggest we move the arch function to the python
library and then have u-boot and barebox call what they need from
there.
I've some patches on master-next which start to do this.
Cheers
Richard
prev parent reply other threads:[~2026-07-31 10:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-24 4:59 [PATCH v2] kernel-arch: limit KERNEL_TOOLCHAIN to the kbuild recipes mark.yang
2026-07-31 10:44 ` Richard Purdie [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15d504454286b8aa2c86f28a6dfca7a0946e3078.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=mark.yang@lge.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox