Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Harish.Sadineni@windriver.com
To: openembedded-core@lists.openembedded.org
Cc: Sundeep.Kokkonda@windriver.com
Subject: [PATCH v2 3/4] packagegroups: add nativesdk-packagegroup-sdk-host-clang
Date: Fri, 17 Jul 2026 06:01:08 -0700	[thread overview]
Message-ID: <20260717130109.2187282-3-Harish.Sadineni@windriver.com> (raw)
In-Reply-To: <20260717130109.2187282-1-Harish.Sadineni@windriver.com>

From: Harish Sadineni <Harish.Sadineni@windriver.com>

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 <Harish.Sadineni@windriver.com>
---
 .../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



  parent reply	other threads:[~2026-07-17 13:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-17 13:01 [PATCH v2 1/4] packagegroups: Add packagegroup-core-buildessential-rust Harish.Sadineni
2026-07-17 13:01 ` [PATCH v2 2/4] packagegroups: add nativesdk-packagegroup-sdk-host-rust Harish.Sadineni
2026-07-17 13:01 ` Harish.Sadineni [this message]
2026-07-17 13:01 ` [PATCH v2 4/4] populate_sdk_base: add kernel-devsrc via SDK_TOOLCHAIN_LANGS Harish.Sadineni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260717130109.2187282-3-Harish.Sadineni@windriver.com \
    --to=harish.sadineni@windriver.com \
    --cc=Sundeep.Kokkonda@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox