1srcs-$(CFG_CORE_SANITIZE_KADDRESS) += asan.c
2cflags-remove-asan.c-y += $(cflags_kasan)
3srcs-$(CFG_TEE_CORE_DEBUG) += spin_lock_debug.c
4srcs-y += assert.c
5srcs-y += console.c
6srcs-$(CFG_DT) += dt.c
7srcs-$(CFG_DT) += dt_driver.c
8srcs-$(CFG_DT_DRIVER_EMBEDDED_TEST) += dt_driver_test.c
9srcs-y += pm.c
10srcs-y += handle.c
11srcs-y += interrupt.c
12srcs-$(CFG_WITH_USER_TA) += ldelf_syscalls.c
13srcs-$(CFG_LOCKDEP) += lockdep.c
14ifneq ($(CFG_CORE_FFA),y)
15srcs-$(CFG_CORE_DYN_SHM) += msg_param.c
16endif
17srcs-y += panic.c
18srcs-y += trace_ext.c
19srcs-y += refcount.c
20srcs-y += delay.c
21srcs-y += tee_time.c
22srcs-$(CFG_SECURE_TIME_SOURCE_REE) += tee_time_ree.c
23srcs-y += otp_stubs.c
24srcs-y += tee_misc.c
25srcs-y += tee_ta_manager.c
26srcs-y += ts_manager.c
27srcs-$(CFG_CORE_SANITIZE_UNDEFINED) += ubsan.c
28srcs-y += scattered_array.c
29srcs-y += huk_subkey.c
30srcs-$(CFG_SHOW_CONF_ON_BOOT) += show_conf.c
31srcs-y += user_mode_ctx.c
32srcs-$(CFG_CORE_TPM_EVENT_LOG) += tpm.c
33srcs-y += initcall.c
34srcs-$(CFG_WITH_USER_TA) += user_access.c
35srcs-y += mutex.c
36srcs-$(CFG_LOCKDEP) += mutex_lockdep.c
37srcs-y += wait_queue.c
38srcs-y += notif.c
39srcs-y += thread.c
40
41ifeq ($(CFG_CORE_TPM_EVENT_LOG),y)
42srcs-$(CFG_CORE_TCG_PROVIDER) += tcg.c
43endif
44
45ifeq ($(CFG_WITH_USER_TA),y)
46srcs-y += user_ta.c
47srcs-$(CFG_REE_FS_TA) += ree_fs_ta.c
48srcs-$(CFG_EARLY_TA) += early_ta.c
49srcs-$(CFG_SECSTOR_TA) += secstor_ta.c
50endif
51
52srcs-$(CFG_EMBEDDED_TS) += embedded_ts.c
53srcs-y += pseudo_ta.c
54
55ifeq ($(CFG_SYSCALL_FTRACE),y)
56# We would not like to profile spin_lock_debug.c file as it provides
57# common APIs that are needed for ftrace framework to trace syscalls.
58# So profiling this file could create an incorrect cyclic behaviour.
59cflags-remove-spin_lock_debug.c-$(CFG_TEE_CORE_DEBUG) += -pg
60endif
61