Update from upstream to 2.4.0 version
[platform/core/security/tef-optee_os.git] / core / arch / arm / plat-vexpress / conf.mk
1 PLATFORM_FLAVOR ?= qemu_virt
2
3 # 32-bit flags
4 arm32-platform-cpuarch          := cortex-a15
5 arm32-platform-cflags           += -mcpu=$(arm32-platform-cpuarch)
6 arm32-platform-aflags           += -mcpu=$(arm32-platform-cpuarch)
7 core_arm32-platform-aflags      += -mfpu=neon
8
9 ifeq ($(PLATFORM_FLAVOR),fvp)
10 platform-flavor-armv8 := 1
11 platform-debugger-arm := 1
12 endif
13 ifeq ($(PLATFORM_FLAVOR),juno)
14 platform-flavor-armv8 := 1
15 platform-debugger-arm := 1
16 endif
17 ifeq ($(PLATFORM_FLAVOR),qemu_armv8a)
18 platform-flavor-armv8 := 1
19 $(call force,CFG_DT,y)
20 endif
21
22
23 ifeq ($(platform-debugger-arm),1)
24 # ARM debugger needs this
25 platform-cflags-debug-info = -gdwarf-2
26 platform-aflags-debug-info = -gdwarf-2
27 endif
28
29 ifeq ($(platform-flavor-armv8),1)
30 $(call force,CFG_WITH_ARM_TRUSTED_FW,y)
31 endif
32
33 $(call force,CFG_GENERIC_BOOT,y)
34 $(call force,CFG_GIC,y)
35 $(call force,CFG_HWSUPP_MEM_PERM_PXN,y)
36 $(call force,CFG_PL011,y)
37 $(call force,CFG_PM_STUBS,y)
38 $(call force,CFG_SECURE_TIME_SOURCE_CNTPCT,y)
39
40 ta-targets = ta_arm32
41
42 ifeq ($(CFG_ARM64_core),y)
43 $(call force,CFG_WITH_LPAE,y)
44 ta-targets += ta_arm64
45 else
46 $(call force,CFG_ARM32_core,y)
47 endif
48
49 CFG_WITH_STACK_CANARIES ?= y
50 CFG_WITH_STATS ?= y
51
52 ifeq ($(PLATFORM_FLAVOR),juno)
53 CFG_CRYPTO_WITH_CE ?= y
54 endif
55
56 ifeq ($(PLATFORM_FLAVOR),qemu_virt)
57 ifeq ($(CFG_CORE_SANITIZE_KADDRESS),y)
58 # CFG_ASAN_SHADOW_OFFSET is calculated as:
59 # (&__asan_shadow_start - (CFG_TEE_RAM_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
63 CFG_ASAN_SHADOW_OFFSET=0xc4e38e0
64 endif
65 $(call force,CFG_DT,y)
66 # SE API is only supported by QEMU Virt platform
67 CFG_SE_API ?= y
68 CFG_SE_API_SELF_TEST ?= y
69 CFG_PCSC_PASSTHRU_READER_DRV ?= y
70 endif