diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2022-12-28 15:23:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-28 23:59:56 +0000 |
commit | f045d37015410ca391728cf29b4e306642b26247 (patch) | |
tree | e4802266e052f3f849391e38de0456959974654c /meta | |
parent | cf3b5adaf512ae6692503304dcfaba8de40c313f (diff) | |
download | poky-f045d37015410ca391728cf29b4e306642b26247.tar.gz |
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/packagegroups/packagegroup-core-sdk.bb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb b/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb index d70aff22c7..104f3549d5 100644 --- a/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb +++ b/meta/recipes-core/packagegroups/packagegroup-core-sdk.bb | |||
@@ -11,6 +11,11 @@ inherit packagegroup | |||
11 | 11 | ||
12 | #PACKAGEFUNCS =+ 'generate_sdk_pkgs' | 12 | #PACKAGEFUNCS =+ 'generate_sdk_pkgs' |
13 | 13 | ||
14 | TARGET_TOOLCHAIN_LANGS ??= "${SDK_TOOLCHAIN_LANGS}" | ||
15 | TARGET_TOOLCHAIN_LANGS:remove:sdkmingw32 = "rust" | ||
16 | # libstd-rs doesn't build for mips n32 with compiler constraint errors | ||
17 | TARGET_TOOLCHAIN_LANGS:remove:mipsarchn32 = "rust" | ||
18 | |||
14 | RDEPENDS:packagegroup-core-sdk = "\ | 19 | RDEPENDS:packagegroup-core-sdk = "\ |
15 | packagegroup-core-buildessential \ | 20 | packagegroup-core-buildessential \ |
16 | coreutils \ | 21 | coreutils \ |
@@ -23,7 +28,10 @@ RDEPENDS:packagegroup-core-sdk = "\ | |||
23 | less \ | 28 | less \ |
24 | ldd \ | 29 | ldd \ |
25 | file \ | 30 | file \ |
26 | tcl" | 31 | tcl \ |
32 | ${@bb.utils.contains('TARGET_TOOLCHAIN_LANGS', 'go', 'packagegroup-go-sdk-target', '', d)} \ | ||
33 | ${@bb.utils.contains('TARGET_TOOLCHAIN_LANGS', 'rust', 'packagegroup-rust-sdk-target', '', d)} \ | ||
34 | " | ||
27 | 35 | ||
28 | SANITIZERS = "libasan-dev libubsan-dev" | 36 | SANITIZERS = "libasan-dev libubsan-dev" |
29 | SANITIZERS:arc = "" | 37 | SANITIZERS:arc = "" |