File tree Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Expand file tree Collapse file tree 4 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 54
54
rustup target add thumbv7em-none-eabi
55
55
rustup target add thumbv7m-none-eabi
56
56
rustup target add thumbv8m.main-none-eabi
57
+ rustup target add x86_64-unknown-none
58
+ rustup target add aarch64-unknown-none
57
59
58
60
# Note that Renode is only provided for x86_64 targets. This matches the github runners.
59
61
- name : Install Renode
Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ function(_rust_map_target)
49
49
else ()
50
50
message (FATAL_ERROR "Rust: Unsupported riscv ISA" )
51
51
endif ()
52
+ elseif (CONFIG_ARCH_POSIX AND CONFIG_64BIT AND (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "x86_64" ))
53
+ set (RUST_TARGET "x86_64-unknown-none" PARENT_SCOPE )
54
+ elseif (CONFIG_ARCH_POSIX AND CONFIG_64BIT AND (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "aarch64" ))
55
+ set (RUST_TARGET "aarch64-unknown-none" PARENT_SCOPE )
52
56
else ()
53
57
message (FATAL_ERROR "Rust: Add support for other target" )
54
58
endif ()
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ menu "Rust Language Support"
8
8
config RUST_SUPPORTED
9
9
bool
10
10
default y if ((CPU_CORTEX_M || \
11
- (RISCV && !RISCV_ISA_RV32E && !RISCV_ISA_RV128I)) && \
11
+ (RISCV && !RISCV_ISA_RV32E && !RISCV_ISA_RV128I) || \
12
+ (ARCH_POSIX && 64BIT)) && \
12
13
!TIMER_READS_ITS_FREQUENCY_AT_RUNTIME)
13
14
help
14
15
Selected for platforms that have support for Rust.
Original file line number Diff line number Diff line change 45
45
- " nordic,nrf52-flash-controller"
46
46
- " nordic,nrf51-flash-controller"
47
47
- " raspberrypi,pico-flash-controller"
48
+ - " zephyr,sim-flash"
48
49
level : 0
49
50
actions :
50
51
- type : instance
You can’t perform that action at this time.
0 commit comments