From: Harish Sadineni <[email protected]>

Add a new nativesdk packagegroup providing the clang, lld, and
llvm-bin dependencies needed to build external/out-of-tree
modules in the SDK using the LLVM/Clang toolchain.

Rust support in the kernel on riscv64 requires the LLVM/Clang
toolchain rather than gcc, so this packagegroup is intended to
be added alongside nativesdk-packagegroup-sdk-rust when the SDK
targets riscv64.

Add this to TOOLCHAIN_HOST_TASK to include it in the SDK.

Signed-off-by: Harish Sadineni <[email protected]>
---
 .../nativesdk-packagegroup-sdk-host-clang.bb       | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-clang.bb

diff --git 
a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-clang.bb 
b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-clang.bb
new file mode 100644
index 0000000000..d6ee2120cf
--- /dev/null
+++ b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-clang.bb
@@ -0,0 +1,14 @@
+#
+# SPDX-License-Identifier: MIT
+#
+
+SUMMARY = "Dependent packages for building external kernel modules using clang"
+
+inherit packagegroup
+inherit_defer nativesdk
+
+RDEPENDS:${PN} = "\
+    nativesdk-clang \
+    nativesdk-lld \
+    nativesdk-llvm-bin \
+"
-- 
2.51.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#241166): 
https://lists.openembedded.org/g/openembedded-core/message/241166
Mute This Topic: https://lists.openembedded.org/mt/120313589/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to