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