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