1PLATFORM_FLAVOR ?= qemu_virt 2 3ifeq ($(PLATFORM_FLAVOR),qemu_virt) 4include core/arch/arm/cpu/cortex-a15.mk 5endif 6ifeq ($(PLATFORM_FLAVOR),fvp) 7include core/arch/arm/cpu/cortex-armv8-0.mk 8platform-debugger-arm := 1 9endif 10ifeq ($(PLATFORM_FLAVOR),juno) 11include core/arch/arm/cpu/cortex-armv8-0.mk 12platform-debugger-arm := 1 13endif 14ifeq ($(PLATFORM_FLAVOR),qemu_armv8a) 15include core/arch/arm/cpu/cortex-armv8-0.mk 16$(call force,CFG_DT,y) 17endif 18 19 20ifeq ($(platform-debugger-arm),1) 21# ARM debugger needs this 22platform-cflags-debug-info = -gdwarf-2 23platform-aflags-debug-info = -gdwarf-2 24endif 25 26ifeq ($(platform-flavor-armv8),1) 27$(call force,CFG_WITH_ARM_TRUSTED_FW,y) 28endif 29 30$(call force,CFG_GENERIC_BOOT,y) 31$(call force,CFG_GIC,y) 32$(call force,CFG_PL011,y) 33$(call force,CFG_PM_STUBS,y) 34$(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y) 35 36ta-targets = ta_arm32 37 38ifeq ($(CFG_ARM64_core),y) 39$(call force,CFG_WITH_LPAE,y) 40ta-targets += ta_arm64 41else 42$(call force,CFG_ARM32_core,y) 43endif 44 45CFG_WITH_STACK_CANARIES ?= y 46CFG_WITH_STATS ?= y 47 48ifeq ($(PLATFORM_FLAVOR),juno) 49CFG_CRYPTO_WITH_CE ?= y 50endif 51 52ifeq ($(PLATFORM_FLAVOR),qemu_virt) 53ifeq ($(CFG_CORE_SANITIZE_KADDRESS),y) 54# CFG_ASAN_SHADOW_OFFSET is calculated as: 55# (&__asan_shadow_start - (TEE_RAM_VA_START / 8) 56# This is unfortunately currently not possible to do in make so we have to 57# calculate it offline, there's some asserts in 58# core/arch/arm/kernel/generic_boot.c to check that we got it right 59CFG_ASAN_SHADOW_OFFSET = 0xc6a71c0 60endif 61$(call force,CFG_BOOT_SECONDARY_REQUEST,y) 62$(call force,CFG_PSCI_ARM32,y) 63$(call force,CFG_DT,y) 64# SE API is only supported by QEMU Virt platform 65CFG_SE_API ?= y 66CFG_SE_API_SELF_TEST ?= y 67CFG_PCSC_PASSTHRU_READER_DRV ?= y 68endif 69 70ifeq ($(PLATFORM_FLAVOR),fvp) 71# DRAM1 is defined above 4G 72$(call force,CFG_CORE_LARGE_PHYS_ADDR,y) 73endif 74 75ifeq ($(PLATFORM_FLAVOR),juno) 76# DRAM1 is defined above 4G 77$(call force,CFG_CORE_LARGE_PHYS_ADDR,y) 78endif 79