diff options
| author | hathach <[email protected]> | 2024-04-17 13:00:07 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-04-19 23:16:57 +0700 |
| commit | 96f7ca02bff64021b14ed84544df873a0d694a79 (patch) | |
| tree | 997cf16c2cc38a14034eab207d0db70d2e8950e6 /examples/build_system/cmake/cpu | |
| parent | 9f0e4c28898996bf60ad34865fa5e7cf1d3bd04d (diff) | |
clang build board test with h743
Diffstat (limited to 'examples/build_system/cmake/cpu')
| -rw-r--r-- | examples/build_system/cmake/cpu/cortex-m7.cmake | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/examples/build_system/cmake/cpu/cortex-m7.cmake b/examples/build_system/cmake/cpu/cortex-m7.cmake index 3e5f7f44b..f7684af84 100644 --- a/examples/build_system/cmake/cpu/cortex-m7.cmake +++ b/examples/build_system/cmake/cpu/cortex-m7.cmake @@ -5,7 +5,6 @@ if (TOOLCHAIN STREQUAL "gcc") -mfloat-abi=hard -mfpu=fpv5-d16 ) - set(FREERTOS_PORT GCC_ARM_CM7 CACHE INTERNAL "") elseif (TOOLCHAIN STREQUAL "iar") @@ -13,7 +12,15 @@ elseif (TOOLCHAIN STREQUAL "iar") --cpu cortex-m7 --fpu VFPv5_D16 ) - set(FREERTOS_PORT IAR_ARM_CM7 CACHE INTERNAL "") +elseif (TOOLCHAIN STREQUAL "clang") + set(TOOLCHAIN_COMMON_FLAGS + --target=arm-none-eabi + -mcpu=cortex-m7 + -mfloat-abi=hard + -mfpu=fpv5-d16 + ) + set(FREERTOS_PORT GCC_ARM_CM7 CACHE INTERNAL "") + endif () |
