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