[Edited Message Follows]

Hello Randy,

I verified rust.sh and cargo.sh in the installed sdk those are generated 
differently based on the multilib tuning.
...poky/build/tmp/deploy/sdk/install > fd rust.sh
sysroots/x86_64-pokysdk-linux/environment-setup.d/rust.sh
sysroots/x86_64-pokysdk-linux/environment-setup.d/lib32-rust.sh

...poky/build/tmp/deploy/sdk/install > fd cargo.sh
sysroots/x86_64-pokysdk-linux/environment-setup.d/cargo.sh
sysroots/x86_64-pokysdk-linux/environment-setup.d/lib32-cargo.sh

I tested a sample program on 32 and 64 bit targets and its working. Below are 
the steps:
I copied the Rust compiler binaries generated for both 
armv7at2hf-neon-pokymllib32-linux-gnueabi and cortexa57-poky-linux into a QEMU 
environment and executed a simple "Hello, World!" program using these binaries.

...poky/build/tmp/work/armv7at2hf-neon-pokymllib32-linux-gnueabi/lib32-rust/1.74.1/image/usr/bin
 > scp -r rustc root@192.168.7.6:/arm32/
rustc                                        100%   13KB   2.2MB/s   00:00

root@qemuarm64:/arm32# cat hello.rs
fn main() {
println!("Hello, World!");
}

root@qemuarm64:/arm32# ./rustc hello.rs
root@qemuarm64:/arm32# ./hello
Hello, World!

------------------------------------------------------------------------------------------------------------------------
...poky/build/tmp/work/cortexa57-poky-linux/rust/1.74.1/rustc-1.74.1-src/build/aarch64-poky-linux-gnu/stage2/bin
 > scp  rustc root@192.168.7.6:/arm64
rustc                                                                           
            100%   74KB   4.6MB/s   00:00

root@qemuarm64:/arm64# ls
rustc
root@qemuarm64:/arm64# vi hello.rs
root@qemuarm64:/arm64# cat hello.rs
fn main() {
println!("Hello, World!");
}
root@qemuarm64:/arm64# ./rustc hello.rs
root@qemuarm64:/arm64# ./hello
Hello, World!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#198733): 
https://lists.openembedded.org/g/openembedded-core/message/198733
Mute This Topic: https://lists.openembedded.org/mt/103206453/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to