Skip to content

Commit 24a71d5

Browse files
committed
cmake: rust: Add Cortex M7 support
The Cortex-M7 is build the same as M4. Catch it in the same rules. Signed-off-by: David Brown <[email protected]>
1 parent 6c8b63c commit 24a71d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/modules/rust.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function(_rust_map_target)
1313
set(RUST_TARGET "thumbv6m-none-eabi" PARENT_SCOPE)
1414
elseif(CONFIG_CPU_CORTEX_M3)
1515
set(RUST_TARGET "thumbv7m-none-eabi" PARENT_SCOPE)
16-
elseif(CONFIG_CPU_CORTEX_M4)
16+
elseif(CONFIG_CPU_CORTEX_M4 OR CONFIG_CPU_CORTEX_M7)
1717
if(CONFIG_FP_HARDABI OR FORCE_FP_HARDABI)
1818
set(RUST_TARGET "thumbv7em-none-eabihf" PARENT_SCOPE)
1919
else()

0 commit comments

Comments
 (0)