Commit 24a71d59 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

cmake: rust: Add Cortex M7 support

The Cortex-M7 is build the same as M4.  Catch it in the same rules.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 6c8b63ce
Loading
Loading
Loading
Loading
+1 −1
Changes for cmake/modules/rust.cmake: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ function(_rust_map_target)
      set(RUST_TARGET "thumbv6m-none-eabi" PARENT_SCOPE)
    elseif(CONFIG_CPU_CORTEX_M3)
      set(RUST_TARGET "thumbv7m-none-eabi" PARENT_SCOPE)
    elseif(CONFIG_CPU_CORTEX_M4)
    elseif(CONFIG_CPU_CORTEX_M4 OR CONFIG_CPU_CORTEX_M7)
      if(CONFIG_FP_HARDABI OR FORCE_FP_HARDABI)
        set(RUST_TARGET "thumbv7em-none-eabihf" PARENT_SCOPE)
      else()