arch: arm64: Support zephyr toolchain

ARM64 is a valid target for the zephyr toolchain. Add support for it.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2019-11-13 18:53:45 +00:00 committed by Anas Nashif
commit 54acb7baf4
3 changed files with 7 additions and 2 deletions

View file

@ -4,6 +4,7 @@ type: qemu
simulation: qemu
arch: arm
toolchain:
- zephyr
- cross-compile
ram: 128
testing:

View file

@ -5,4 +5,4 @@
config TOOLCHAIN_ZEPHYR_0_11
def_bool y
select HAS_NEWLIB_LIBC_NANO if (ARC || ARM || RISCV)
select HAS_NEWLIB_LIBC_NANO if (ARC || (ARM && !ARM64) || RISCV)

View file

@ -1,6 +1,10 @@
# SPDX-License-Identifier: Apache-2.0
set(CROSS_COMPILE_TARGET_arm arm-zephyr-eabi)
if(CONFIG_ARM64)
set(CROSS_COMPILE_TARGET_arm aarch64-zephyr-elf)
else()
set(CROSS_COMPILE_TARGET_arm arm-zephyr-eabi)
endif()
set(CROSS_COMPILE_TARGET_nios2 nios2-zephyr-elf)
set(CROSS_COMPILE_TARGET_riscv riscv64-zephyr-elf)
set(CROSS_COMPILE_TARGET_mips mipsel-zephyr-elf)