diff options
| author | hathach <[email protected]> | 2024-05-02 16:57:50 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-05-02 16:57:50 +0700 |
| commit | 980f5992c8bc9b66e13cd409ae782a588053ec3e (patch) | |
| tree | e273310aaabddccc0820d19ae129517eb3dfdf9f /examples/build_system/cmake/cpu | |
| parent | ea3f1d39e8bfc82facc7b3e503d7c71f9119de2b (diff) | |
add cmake for broadcom 64-bit, like 32-bit it compiles but text is only 8 bytes (incorrect)
Diffstat (limited to 'examples/build_system/cmake/cpu')
| -rw-r--r-- | examples/build_system/cmake/cpu/cortex-a53.cmake | 17 | ||||
| -rw-r--r-- | examples/build_system/cmake/cpu/cortex-a72.cmake | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/examples/build_system/cmake/cpu/cortex-a53.cmake b/examples/build_system/cmake/cpu/cortex-a53.cmake new file mode 100644 index 000000000..dde8c0a0c --- /dev/null +++ b/examples/build_system/cmake/cpu/cortex-a53.cmake @@ -0,0 +1,17 @@ +if (TOOLCHAIN STREQUAL "gcc") + set(TOOLCHAIN_COMMON_FLAGS + -mcpu=cortex-a53 + ) + # set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "") + +elseif (TOOLCHAIN STREQUAL "clang") + set(TOOLCHAIN_COMMON_FLAGS + --target=arm-none-eabi + -mcpu=cortex-a53 + ) + #set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "") + +elseif (TOOLCHAIN STREQUAL "iar") + message(FATAL_ERROR "IAR not supported") + +endif () diff --git a/examples/build_system/cmake/cpu/cortex-a72.cmake b/examples/build_system/cmake/cpu/cortex-a72.cmake new file mode 100644 index 000000000..a44324234 --- /dev/null +++ b/examples/build_system/cmake/cpu/cortex-a72.cmake @@ -0,0 +1,17 @@ +if (TOOLCHAIN STREQUAL "gcc") + set(TOOLCHAIN_COMMON_FLAGS + -mcpu=cortex-a72 + ) + # set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "") + +elseif (TOOLCHAIN STREQUAL "clang") + set(TOOLCHAIN_COMMON_FLAGS + --target=arm-none-eabi + -mcpu=cortex-a72 + ) + #set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "") + +elseif (TOOLCHAIN STREQUAL "iar") + message(FATAL_ERROR "IAR not supported") + +endif () |
