mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-04 20:54:45 +02:00
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. (From OE-Core rev: 546baa210acacff5dde6ce55e9842b90277bc9a8) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
582664d64d
commit
c69887224f
|
@ -30,8 +30,9 @@ PREFERRED_TOOLCHAIN:class-crosssdk = "${PREFERRED_TOOLCHAIN_SDK}"
|
|||
PREFERRED_TOOLCHAIN:class-nativesdk = "${PREFERRED_TOOLCHAIN_SDK}"
|
||||
|
||||
TOOLCHAIN ??= "${PREFERRED_TOOLCHAIN}"
|
||||
TOOLCHAIN_NATIVE ??= "${PREFERRED_TOOLCHAIN_NATIVE}"
|
||||
|
||||
inherit toolchain/gcc-native
|
||||
inherit_defer toolchain/${TOOLCHAIN_NATIVE}-native
|
||||
inherit_defer toolchain/${TOOLCHAIN}
|
||||
|
||||
def lsb_distro_identifier(d):
|
||||
|
|
Loading…
Reference in New Issue
Block a user