diff mbox series

[v2,2/4] packagegroups: add nativesdk-packagegroup-sdk-host-rust

Message ID 20260717130109.2187282-2-Harish.Sadineni@windriver.com
State New
Headers show
Series [v2,1/4] packagegroups: Add packagegroup-core-buildessential-rust | expand

Commit Message

Harish Sadineni July 17, 2026, 1:01 p.m. UTC
From: Harish Sadineni <Harish.Sadineni@windriver.com>

Add a new nativesdk packagegroup providing the dependencies needed to
build external/out-of-tree rust modules in sdk.

Set PACKAGE_ARCH to TUNE_PKGARCH instead of the packagegroup
default of "all", since nativesdk-libclang is dynamically
renamed per build (e.g. nativesdk-libclang22.1), which is
incompatible with an allarch packagegroup.

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-rust.bb      | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-rust.bb
diff mbox series

Patch

diff --git a/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-rust.bb b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-rust.bb
new file mode 100644
index 0000000000..b10d420acd
--- /dev/null
+++ b/meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-rust.bb
@@ -0,0 +1,16 @@ 
+#
+# SPDX-License-Identifier: MIT
+#
+
+SUMMARY = "Dependent packages for building external rust modules"
+
+PACKAGE_ARCH = "${TUNE_PKGARCH}"
+
+inherit packagegroup
+inherit_defer nativesdk
+
+RDEPENDS:${PN} = "\
+    nativesdk-rust-src-lib \
+    nativesdk-bindgen-cli \
+    nativesdk-libclang \
+"