Skip to content

Commit

Permalink
Merge pull request #20339 from chrysn-pull-requests/native64-rust
Browse files Browse the repository at this point in the history
cpu/native: Enable Rust on 64bit
  • Loading branch information
chrysn authored Feb 23, 2024
2 parents 2600a1e + 7587c77 commit 6714a77
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion boards/native64/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[Family: native](https://github.com/RIOT-OS/RIOT/wiki/Family:-native)

Same board as \ref boards_native "native", but compiled for 64-bit instead of 32-bit.
Currently only Linux x86-64 is supported, and Rust support is missing.
Currently only Linux x86-64 is supported.
Otherwise, everything works the same as for the 32-bit version.
For more information on this board, see the \ref boards_native "native board" documentation.

Expand Down
2 changes: 1 addition & 1 deletion cpu/native/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ config NATIVE_OS_LINUX
select HAS_PERIPH_GPIO
select HAS_PERIPH_GPIO_IRQ
select HAS_PERIPH_SPI
select HAS_RUST_TARGET if "$(OS_ARCH)" = "x86_64" && HAS_ARCH_32BIT
select HAS_RUST_TARGET if "$(OS_ARCH)" = "x86_64"

config NATIVE_OS_FREEBSD
bool
Expand Down
5 changes: 1 addition & 4 deletions cpu/native/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ FEATURES_PROVIDED += periph_pwm
FEATURES_PROVIDED += periph_timer_periodic
FEATURES_PROVIDED += periph_timer_query_freqs
ifeq ($(OS) $(OS_ARCH),Linux x86_64)
# TODO: Add rust support for native 64 bit.
ifneq ($(BOARD),native64)
FEATURES_PROVIDED += rust_target
endif
FEATURES_PROVIDED += rust_target
endif
FEATURES_PROVIDED += ssp

Expand Down
4 changes: 2 additions & 2 deletions examples/rust-gcoap/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/rust-hello-world/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sys/rust_riotmodules_standalone/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/rust_minimal/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6714a77

Please sign in to comment.