mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-13 05:41:57 +00:00
Use -march=armv8.4-a to compile zephyr on cortex-R82. Because Cortex-R82 has not been enabled in GCC 10.x currently. Signed-off-by: Jaxson Han <jaxson.han@arm.com>
14 lines
409 B
CMake
14 lines
409 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
if(DEFINED GCC_M_CPU)
|
|
list(APPEND TOOLCHAIN_C_FLAGS -mcpu=${GCC_M_CPU})
|
|
list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=${GCC_M_CPU})
|
|
endif()
|
|
|
|
if(DEFINED GCC_M_ARCH)
|
|
list(APPEND TOOLCHAIN_C_FLAGS -march=${GCC_M_ARCH})
|
|
list(APPEND TOOLCHAIN_LD_FLAGS -march=${GCC_M_ARCH})
|
|
endif()
|
|
|
|
list(APPEND TOOLCHAIN_C_FLAGS -mabi=lp64)
|
|
list(APPEND TOOLCHAIN_LD_FLAGS -mabi=lp64)
|