]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
base.bbclass: Deferred inherit native toolchain class
authorKhem Raj <raj.khem@gmail.com>
Fri, 4 Jul 2025 03:13:49 +0000 (20:13 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Jul 2025 13:56:38 +0000 (14:56 +0100)
commit546baa210acacff5dde6ce55e9842b90277bc9a8
tree1bfd8032ee2decfe452c9de2e5b6bc3dc8532ae1
parentd54512c1c0a98516077b77d5414af47d8c2b8c39
base.bbclass: Deferred inherit native toolchain class

use TOOLCHAIN_NATIVE variable for selecting native compiler

Default it to PREFERRED_TOOLCHAIN_NATIVE, a recipe which wants
to enforce a toolchain can do so with

for cross toolchains ( e.g. target, nativesdk )

TOOLCHAIN = "gcc"

For native

TOOLCHAIN_NATIVE = "gcc"

This helps build native recipe with clang as native compiler.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/base.bbclass