xref: /optee_os/core/arch/arm/plat-vexpress/conf.mk (revision a38d95ce4287aa71af5aac98e9a5951434fc63ba)
1include core/arch/$(ARCH)/plat-$(PLATFORM)/platform_flags.mk
2
3CROSS_COMPILE	?= arm-linux-gnueabihf-
4COMPILER	?= gcc
5
6ifeq ($(CFG_ARM64_core),y)
7CFG_WITH_LPAE := y
8else
9CFG_ARM32_core ?= y
10endif
11
12ifeq ($(CFG_ARM64_core),y)
13core-tee-bin-arch := 1
14core-platform-cppflags += $(arm64-platform-cppflags)
15core-platform-cflags += $(arm64-platform-cflags)
16core-platform-aflags += $(arm64-platform-aflags)
17else
18core-tee-bin-arch := 0
19core-platform-cppflags += $(arm32-platform-cppflags)
20core-platform-cflags += $(arm32-platform-cflags)
21core-platform-aflags += $(arm32-platform-aflags)
22endif
23
24core-platform-cppflags	+= -I$(arch-dir)/include
25core-platform-cppflags	+= -DNUM_THREADS=2
26
27core-platform-subdirs += \
28	$(addprefix $(arch-dir)/, kernel mm tee sta) $(platform-dir)
29ifeq ($(platform-flavor-armv8),1)
30CFG_WITH_ARM_TRUSTED_FW := y
31else
32core-platform-subdirs += $(arch-dir)/sm
33endif
34
35CFG_PM_DEBUG ?= n
36
37libutil_with_isoc := y
38libtomcrypt_with_optimize_size := y
39CFG_SECURE_TIME_SOURCE_CNTPCT := y
40CFG_PL011 := y
41CFG_GIC := y
42CFG_HWSUPP_MEM_PERM_PXN := y
43CFG_WITH_STACK_CANARIES := y
44
45ifeq ($(PLATFORM_FLAVOR),juno)
46CFG_CRYPTO_SHA256_ARM32_CE ?= y
47CFG_CRYPTO_SHA1_ARM32_CE ?= y
48endif
49
50# SE API is only suppoorted by QEMU Virt platform
51ifeq ($(PLATFORM_FLAVOR),qemu_virt)
52CFG_SE_API := y
53CFG_SE_API_SELF_TEST := y
54CFG_PCSC_PASSTHRU_READER_DRV := y
55endif
56
57ifeq ($(CFG_CRYPTO_SHA256_ARM32_CE),y)
58CFG_WITH_VFP := y
59endif
60ifeq ($(CFG_CRYPTO_SHA1_ARM32_CE),y)
61CFG_WITH_VFP := y
62endif
63
64include mk/config.mk
65
66CFG_TEE_CORE_EMBED_INTERNAL_TESTS ?= 1
67
68core-platform-cppflags += -D_USE_SLAPORT_LIB
69
70CFG_NO_TA_HASH_SIGN ?= y
71