xref: /optee_os/core/arch/arm/plat-vexpress/conf.mk (revision 71cd3ee470bd9d794692f7440ae76dbd5877d8b7)
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
53CFG_HWSUPP_PMULL ?= y
54endif
55
56ifeq ($(PLATFORM_FLAVOR),qemu_virt)
57ifeq ($(CFG_CORE_SANITIZE_KADDRESS),y)
58# CFG_ASAN_SHADOW_OFFSET is calculated as:
59# (&__asan_shadow_start - (TEE_RAM_VA_START / 8)
60# This is unfortunately currently not possible to do in make so we have to
61# calculate it offline, there's some asserts in
62# core/arch/arm/kernel/generic_boot.c to check that we got it right
63CFG_ASAN_SHADOW_OFFSET = 0xc5c7fc0
64endif
65$(call force,CFG_BOOT_SECONDARY_REQUEST,y)
66$(call force,CFG_PSCI_ARM32,y)
67$(call force,CFG_DT,y)
68# SE API is only supported by QEMU Virt platform
69CFG_SE_API ?= y
70CFG_SE_API_SELF_TEST ?= y
71CFG_PCSC_PASSTHRU_READER_DRV ?= y
72endif
73
74ifeq ($(PLATFORM_FLAVOR),fvp)
75# DRAM1 is defined above 4G
76$(call force,CFG_CORE_LARGE_PHYS_ADDR,y)
77endif
78
79ifeq ($(PLATFORM_FLAVOR),juno)
80# DRAM1 is defined above 4G
81$(call force,CFG_CORE_LARGE_PHYS_ADDR,y)
82endif
83