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 33CFG_WITH_SEC_MON := y 34endif 35 36CFG_PM_DEBUG ?= n 37 38libutil_with_isoc := y 39libtomcrypt_with_optimize_size := y 40CFG_SECURE_TIME_SOURCE_CNTPCT := y 41CFG_PL011 := y 42CFG_GIC := y 43CFG_HWSUPP_MEM_PERM_PXN := y 44CFG_WITH_STACK_CANARIES := y 45 46ifeq ($(PLATFORM_FLAVOR),juno) 47CFG_CRYPTO_SHA256_ARM32_CE ?= y 48CFG_CRYPTO_SHA1_ARM32_CE ?= y 49endif 50 51# SE API is only suppoorted by QEMU Virt platform 52ifeq ($(PLATFORM_FLAVOR),qemu_virt) 53CFG_SE_API := y 54CFG_SE_API_SELF_TEST := y 55CFG_PCSC_PASSTHRU_READER_DRV := y 56endif 57 58ifeq ($(CFG_CRYPTO_SHA256_ARM32_CE),y) 59CFG_WITH_VFP := y 60endif 61ifeq ($(CFG_CRYPTO_SHA1_ARM32_CE),y) 62CFG_WITH_VFP := y 63endif 64 65include mk/config.mk 66 67CFG_TEE_CORE_EMBED_INTERNAL_TESTS ?= 1 68 69core-platform-cppflags += -D_USE_SLAPORT_LIB 70 71CFG_NO_TA_HASH_SIGN ?= y 72