diff mbox series

[meta-lts-mixins,scarthgap/rust] Update README.md with SDK configuration instructions

Message ID 20251109175336.257896-1-aalto.johannes@gmail.com
State New
Headers show
Series [meta-lts-mixins,scarthgap/rust] Update README.md with SDK configuration instructions | expand

Commit Message

Johannes Aalto Nov. 9, 2025, 5:53 p.m. UTC
Add the required configuration for creating the SDK.
Motivation for the change is that the steps seem to be slightly different
than the config for plain poky version of rust (and I guesskirkstone/rust
branch too).

Especially, line like:
 SDK_TOOLCHAIN_LANGS += 'rust'
and/or
 TOOLCHAIN_TARGET_TASK:append = " libstd-rs"

seems to create a broken set of libraries due to having duplicate libraries causing build
errors like:
 error[E0464]: multiple candidates for `rlib` dependency `std` found
   |
   = note: candidate #1: /opt/poky/5.0.10/sysroots/cortexa72-poky-linux/usr/lib/rustlib/aarch64-poky-linux-gnu/lib/libstd-370fbb2cfd29928b.rlib
   = note: candidate #2: /opt/poky/5.0.10/sysroots/cortexa72-poky-linux/usr/lib/rustlib/aarch64-poky-linux-gnu/lib/libstd.so

(although, I'm not quite sure if this difference in config is intended behavior)

Signed-off-by: Johannes Aalto <aalto.johannes@gmail.com>
---
 README.md | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/README.md b/README.md
index a00a00e..0f5c30d 100644
--- a/README.md
+++ b/README.md
@@ -29,6 +29,10 @@  Notes
   support are included, and the backported Rust test is included as the
   "rust_mixin", it is not guaranteed that it will always be in a passing
   state.
+- To include Rust support in a SDK, do the following in e.g. local.conf:
+  ```
+  TOOLCHAIN_HOST_TASK:append = " packagegroup-rust-cross-canadian-${MACHINE}"
+  ```
 - The intent is to track any further upgrades that occur in the master
   branch of oe-core, with an expected end of support in April 2028, the
   same as Yocto Project's planned EOL for Scarthgap (per