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 10CFG_MMU_V7_TTB ?= y 11endif 12 13ifeq ($(CFG_ARM64_core),y) 14core-tee-bin-arch := 1 15core-platform-cppflags += $(arm64-platform-cppflags) 16core-platform-cflags += $(arm64-platform-cflags) 17core-platform-aflags += $(arm64-platform-aflags) 18else 19core-tee-bin-arch := 0 20core-platform-cppflags += $(arm32-platform-cppflags) 21core-platform-cflags += $(arm32-platform-cflags) 22core-platform-aflags += $(arm32-platform-aflags) 23endif 24 25core-platform-cppflags += -I$(arch-dir)/include 26core-platform-cppflags += -DNUM_THREADS=2 27 28core-platform-subdirs += \ 29 $(addprefix $(arch-dir)/, kernel mm tee sta) $(platform-dir) 30ifeq ($(platform-flavor-armv8),1) 31CFG_WITH_ARM_TRUSTED_FW := y 32else 33core-platform-subdirs += $(arch-dir)/sm 34endif 35 36libutil_with_isoc := y 37libtomcrypt_with_optimize_size := y 38CFG_SECURE_TIME_SOURCE_CNTPCT := y 39CFG_PL011 := y 40CFG_GIC := y 41CFG_HWSUPP_MEM_PERM_PXN := y 42CFG_WITH_STACK_CANARIES := y 43CFG_PM_STUBS := y 44 45ifeq ($(PLATFORM_FLAVOR),juno) 46CFG_CRYPTO_SHA256_ARM32_CE ?= $(CFG_ARM32_core) 47CFG_CRYPTO_SHA1_ARM32_CE ?= $(CFG_ARM32_core) 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