1ifeq ($(CFG_WITH_USER_TA),y) 2srcs-y += ldelf_loader.c 3srcs-$(CFG_SECSTOR_TA) += secstor_ta.c 4endif 5 6srcs-$(CFG_EMBEDDED_TS) += embedded_ts.c 7srcs-y += tee_time.c 8srcs-y += rpc_io_i2c.c 9srcs-y += otp_stubs.c 10srcs-y += delay.c 11 12srcs-$(CFG_SECURE_TIME_SOURCE_CNTPCT) += tee_time_arm_cntpct.c 13srcs-$(CFG_SECURE_TIME_SOURCE_REE) += tee_time_ree.c 14srcs-$(CFG_ARM64_core) += timer_a64.c 15 16srcs-$(CFG_ARM32_core) += spin_lock_a32.S 17srcs-$(CFG_ARM64_core) += spin_lock_a64.S 18srcs-$(CFG_TEE_CORE_DEBUG) += spin_lock_debug.c 19srcs-$(CFG_ARM32_core) += tlb_helpers_a32.S 20srcs-$(CFG_ARM64_core) += tlb_helpers_a64.S 21srcs-$(CFG_ARM64_core) += cache_helpers_a64.S 22srcs-$(CFG_ARM32_core) += cache_helpers_a32.S 23srcs-$(CFG_PL310) += tz_ssvce_pl310_a32.S 24srcs-$(CFG_PL310) += tee_l2cc_mutex.c 25 26srcs-$(CFG_ARM32_core) += thread_a32.S 27srcs-$(CFG_ARM64_core) += thread_a64.S 28srcs-y += thread.c 29ifeq ($(CFG_CORE_FFA),y) 30srcs-y += thread_spmc.c 31cppflags-thread_spmc.c-y += -DTEE_IMPL_GIT_SHA1=$(TEE_IMPL_GIT_SHA1) 32srcs-$(CFG_ARM32_core) += thread_spmc_a32.S 33srcs-$(CFG_ARM64_core) += thread_spmc_a64.S 34else 35srcs-y += thread_optee_smc.c 36srcs-$(CFG_ARM32_core) += thread_optee_smc_a32.S 37srcs-$(CFG_ARM64_core) += thread_optee_smc_a64.S 38endif 39srcs-y += abort.c 40srcs-$(CFG_WITH_VFP) += vfp.c 41ifeq ($(CFG_WITH_VFP),y) 42srcs-$(CFG_ARM32_core) += vfp_a32.S 43srcs-$(CFG_ARM64_core) += vfp_a64.S 44endif 45srcs-y += trace_ext.c 46srcs-$(CFG_ARM32_core) += misc_a32.S 47srcs-$(CFG_ARM64_core) += misc_a64.S 48srcs-$(CFG_WITH_STMM_SP) += stmm_sp.c 49srcs-$(CFG_SECURE_PARTITION) += secure_partition.c 50srcs-$(CFG_SECURE_PARTITION) += spmc_sp_handler.c 51 52srcs-y += boot.c 53srcs-$(CFG_ARM32_core) += entry_a32.S 54srcs-$(CFG_ARM64_core) += entry_a64.S 55 56ifeq ($(CFG_UNWIND),y) 57srcs-$(CFG_ARM32_core) += unwind_arm32.c 58srcs-$(CFG_ARM64_core) += unwind_arm64.c 59endif 60 61srcs-$(CFG_VIRTUALIZATION) += virtualization.c 62 63srcs-y += link_dummies_paged.c 64srcs-y += link_dummies_init.c 65 66asm-defines-y += asm-defines.c 67# Reflect the following dependencies: 68# asm-defines.c includes <kernel/thread.h> 69# <kernel/thread.h> includes <asm.h> 70# <asm.h> includes <generated/arm32_sysreg.h> 71# and <generated/arm32_gicv3_sysreg.h> (optional) 72asm-defines-asm-defines.c-deps += $(out-dir)/core/include/generated/arm32_sysreg.h 73ifeq ($(CFG_ARM_GICV3),y) 74asm-defines-asm-defines.c-deps += $(out-dir)/core/include/generated/arm32_gicv3_sysreg.h 75endif 76 77ifeq ($(CFG_SYSCALL_FTRACE),y) 78# We would not like to profile thread.c file as it provide common APIs 79# that are needed for ftrace framework to trace syscalls. So profiling 80# this file could create an incorrect cyclic behaviour. 81cflags-remove-thread.c-y += -pg 82cflags-remove-spin_lock_debug.c-$(CFG_TEE_CORE_DEBUG) += -pg 83# Tracing abort dump files corrupts the stack trace. So exclude them 84# from profiling. 85cflags-remove-abort.c-y += -pg 86ifeq ($(CFG_UNWIND),y) 87cflags-remove-unwind_arm32.c-y += -pg 88cflags-remove-unwind_arm64.c-$(CFG_ARM64_core) += -pg 89endif 90endif 91