Skip to content

Commit 46c5d08

Browse files
carlocaionegalak
authored andcommitted
cmake: Add arm64 cross-compile target
There is an ongoing effort in Zephyr to separate the ARM architecture from ARM64 (AArch64). As part of this work, a new architecture will be introduced called 'arm64'. To be able to keep using the same SDK to compile old and new Zephyr releases, we need to add a new cross-compile target specifically for 'arm64' together with the legacy 'arm' target. Signed-off-by: Carlo Caione <[email protected]>
1 parent e7aedb3 commit 46c5d08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/zephyr/target.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# SPDX-License-Identifier: Apache-2.0
22

33
if(CONFIG_ARM64)
4+
# Legacy target to support Zephyr versions before the ARM/ARM64 split
45
set(CROSS_COMPILE_TARGET_arm aarch64-zephyr-elf)
56
else()
67
set(CROSS_COMPILE_TARGET_arm arm-zephyr-eabi)
78
endif()
9+
set(CROSS_COMPILE_TARGET_arm64 aarch64-zephyr-elf)
810
set(CROSS_COMPILE_TARGET_nios2 nios2-zephyr-elf)
911
set(CROSS_COMPILE_TARGET_riscv riscv64-zephyr-elf)
1012
set(CROSS_COMPILE_TARGET_mips mips-zephyr-elf)

0 commit comments

Comments
 (0)