1WARNS ?= 1 2NOWERROR ?= 1 3CFG_TA_DEBUG ?= 1 4CFG_TEE_TA_LOG_LEVEL ?= 1 5 6cflags-y += -DTHIRTY_TWO_BIT -DCFG_TEE_TA_LOG_LEVEL=$(CFG_TEE_TA_LOG_LEVEL) -D_ARM_ -w -Wno-strict-prototypes -mcpu=$(TA_CPU) -fstack-protector -Wstack-protector 7 8ifeq ($(CFG_ARM64_ta_arm64),y) 9cflags-y += -mstrict-align 10else 11cflags-y += -mno-unaligned-access 12endif 13 14ifeq ($(CFG_TA_DEBUG),y) 15cflags-y += -DfTPMDebug=1 16cflags-y += -DDBG=1 17cflags-y += -O0 18cflags-y += -DDEBUG 19else 20cflags-y += -Os 21cflags-y += -DNDEBUG 22endif 23 24# 25# Link the required external code into the libraries folder. OP-TEE build 26# does not work well when accessing anything below the root directory. Use 27# symlinks to trick it. 28# 29all: create_lib_symlinks 30clean: clean_lib_symlinks 31 32subdirs-y += lib 33 34global-incdirs-y += include 35global-incdirs-y += reference/include 36global-incdirs-y += platform/include 37 38srcs-y += platform/AdminPPI.c 39srcs-y += platform/Cancel.c 40srcs-y += platform/Clock.c 41srcs-y += platform/Entropy.c 42srcs-y += platform/LocalityPlat.c 43srcs-y += platform/NvAdmin.c 44srcs-y += platform/NVMem.c 45srcs-y += platform/PowerPlat.c 46srcs-y += platform/PlatformData.c 47srcs-y += platform/PPPlat.c 48srcs-y += platform/RunCommand.c 49srcs-y += platform/Unique.c 50srcs-y += platform/EPS.c 51srcs-y += reference/RuntimeSupport.c 52 53srcs-y += fTPM.c 54