mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 02:02:41 +00:00
Split ARM and ARM64 architectures. Details: - CONFIG_ARM64 is decoupled from CONFIG_ARM (not a subset anymore) - Arch and include AArch64 files are in a dedicated directory (arch/arm64 and include/arch/arm64) - AArch64 boards and SoC are moved to soc/arm64 and boards/arm64 - AArch64-specific DTS files are moved to dts/arm64 - The A72 support for the bcm_vk/viper board is moved in the boards/bcm_vk/viper directory Signed-off-by: Carlo Caione <ccaione@baylibre.com>
31 lines
700 B
CMake
31 lines
700 B
CMake
# Copyright (c) 2019 Carlo Caione <ccaione@baylibre.com>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
set(EMU_PLATFORM qemu)
|
|
set(QEMU_ARCH aarch64)
|
|
|
|
set(QEMU_CPU_TYPE_${ARCH} cortex-a53)
|
|
|
|
if(CONFIG_ARMV8_A_NS)
|
|
set(QEMU_MACH virt,gic-version=3)
|
|
else()
|
|
set(QEMU_MACH virt,secure=on,gic-version=3)
|
|
endif()
|
|
|
|
set(QEMU_FLAGS_${ARCH}
|
|
-cpu ${QEMU_CPU_TYPE_${ARCH}}
|
|
-nographic
|
|
-machine ${QEMU_MACH}
|
|
)
|
|
|
|
if(CONFIG_XIP)
|
|
# This should be equivalent to
|
|
# ... -drive if=pflash,file=build/zephyr/zephyr.bin,format=raw
|
|
# without having to pad the binary file to the FLASH size
|
|
set(QEMU_KERNEL_OPTION
|
|
-bios ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.bin
|
|
)
|
|
endif()
|
|
|
|
board_set_debugger_ifnset(qemu)
|