mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 00:32:13 +02:00
packagegroup-core-sdk: Add SDK toolchain language selection support
Use SDK_TOOLCHAIN_LANGS to allow different language support to be selected within SDKs. Initially supported options are rust and go. (From OE-Core rev: 1ad7bb050accd930c85b6c51721046867394f629) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cf3b5adaf5
commit
f045d37015
@@ -11,6 +11,11 @@ inherit packagegroup
|
||||
|
||||
#PACKAGEFUNCS =+ 'generate_sdk_pkgs'
|
||||
|
||||
TARGET_TOOLCHAIN_LANGS ??= "${SDK_TOOLCHAIN_LANGS}"
|
||||
TARGET_TOOLCHAIN_LANGS:remove:sdkmingw32 = "rust"
|
||||
# libstd-rs doesn't build for mips n32 with compiler constraint errors
|
||||
TARGET_TOOLCHAIN_LANGS:remove:mipsarchn32 = "rust"
|
||||
|
||||
RDEPENDS:packagegroup-core-sdk = "\
|
||||
packagegroup-core-buildessential \
|
||||
coreutils \
|
||||
@@ -23,7 +28,10 @@ RDEPENDS:packagegroup-core-sdk = "\
|
||||
less \
|
||||
ldd \
|
||||
file \
|
||||
tcl"
|
||||
tcl \
|
||||
${@bb.utils.contains('TARGET_TOOLCHAIN_LANGS', 'go', 'packagegroup-go-sdk-target', '', d)} \
|
||||
${@bb.utils.contains('TARGET_TOOLCHAIN_LANGS', 'rust', 'packagegroup-rust-sdk-target', '', d)} \
|
||||
"
|
||||
|
||||
SANITIZERS = "libasan-dev libubsan-dev"
|
||||
SANITIZERS:arc = ""
|
||||
|
||||
Reference in New Issue
Block a user