Skip to content

rust: Add support for board native_sim/native/64 #84884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

ryukoposting
Copy link
Contributor

This PR allows Zephyr's Rust integration to work with the native_sim/native/64 board on x86-64 and aarch64 hosts.

Note that I did not add support for 32-bit targets, like native_sim. This is because rustup doesn't ship with an i686-unknown-none toolchain. I also don't have the hardware I'd need to verify that we're selecting the right 32-bit ARM toolchains.

Add new conditionals that will set RUST_TARGET to the
appropriate triplet when a 64-bit posix target is
selected.

Signed-off-by: Evan Perry Grove <[email protected]>
Change the RUST_SUPPORTED flag so it defaults to 'y' when
ARCH_POSIX and 64BIT are selected. This allows Rust
projects to use the native_sim/native/64 board.

Note that 32-bit native_sim isn't being implemented
because Cargo doesn't ship with support for
i686-unknown-none.

Signed-off-by: Evan Perry Grove <[email protected]>
@zephyrbot zephyrbot added area: Rust Issues affecting Rust support in Zephyr area: Build System labels Jan 29, 2025
Copy link

This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Mar 31, 2025
@57300 57300 removed their request for review April 1, 2025 18:59
@github-actions github-actions bot removed the Stale label Apr 2, 2025
@d3zd3z
Copy link
Contributor

d3zd3z commented Apr 4, 2025

This looks like it could be quite useful. Do you have time to migrate this onto the https://github.com/zephyrproject-rtos/zephyr-lang-rust repo (this collab branch is inactive)? Otherwise, I can look into bringing it over myself.

@d3zd3z
Copy link
Contributor

d3zd3z commented Apr 8, 2025

This has merged into zephyrproject-rtos/zephyr-lang-rust#80. This PR can be closed.

@d3zd3z d3zd3z closed this Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Build System area: Rust Issues affecting Rust support in Zephyr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants