]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
packagegroups: add nativesdk-packagegroup-sdk-host-rust
authorHarish Sadineni <Harish.Sadineni@windriver.com>
Fri, 17 Jul 2026 13:01:07 +0000 (06:01 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Jul 2026 09:33:29 +0000 (10:33 +0100)
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>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host-rust.bb [new file with mode: 0644]

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 (file)
index 0000000..b10d420
--- /dev/null
@@ -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 \
+"