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