On 24-07-2026 07:43 pm, Paul Barker wrote:
On Fri, 2026-07-17 at 06:01 -0700, [email protected] wrote:
From: Harish Sadineni <[email protected]>
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 <[email protected]>
---
.../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 --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 \
+"
Hi Harish,
We've merged this patch but did have a follow-up question: should this
packagegroup include dependencies on nativesdk-rustc and
nativesdk-rust-tools-rustfmt? If so, please send a new patch to add
them.
Hi Paul,
nativesdk-rust and nativesdk-rust-tools-rustfmt will be added into SDK
with 'packagegroup-rust-cross-canadian'.
And, this packagegroup-rust-cross-canadian is not added here in this
package group since it will be pulled by SDK_TOOLCHAIN_LANGS = "rust"
Thanks,
Harish
Best regards,
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#242865):
https://lists.openembedded.org/g/openembedded-core/message/242865
Mute This Topic: https://lists.openembedded.org/mt/120314373/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-