cmake: arm64: Add Cortex-R82 in toolchain option
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>
This commit is contained in:
parent
8af11d40d0
commit
72287491df
2 changed files with 11 additions and 2 deletions
|
@ -1,6 +1,13 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
list(APPEND TOOLCHAIN_C_FLAGS -mcpu=${GCC_M_CPU})
|
||||
list(APPEND TOOLCHAIN_LD_FLAGS -mcpu=${GCC_M_CPU})
|
||||
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)
|
||||
|
|
|
@ -44,6 +44,8 @@ elseif("${ARCH}" STREQUAL "arm64")
|
|||
set(GCC_M_CPU cortex-a53)
|
||||
elseif(CONFIG_CPU_CORTEX_A72)
|
||||
set(GCC_M_CPU cortex-a72)
|
||||
elseif(CONFIG_CPU_CORTEX_R82)
|
||||
set(GCC_M_ARCH armv8.4-a)
|
||||
endif()
|
||||
elseif("${ARCH}" STREQUAL "arc")
|
||||
if(CONFIG_CPU_EM4_FPUS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue