1srcs-y += spinlock.S 2srcs-y += cache_helpers_rv.S 3srcs-y += idle.c 4srcs-$(CFG_RISCV_TIME_SOURCE_RDTIME) += tee_time_rdtime.c 5srcs-$(CFG_RISCV_SBI) += sbi.c 6srcs-$(CFG_RISCV_SBI_CONSOLE) += sbi_console.c 7srcs-y += boot.c 8srcs-y += entry.S 9srcs-y += abort.c 10srcs-y += thread_rv.S 11srcs-y += thread_arch.c 12srcs-y += arch_scall_rv.S 13srcs-y += arch_scall.c 14srcs-$(CFG_UNWIND) += unwind_rv.c 15srcs-y += thread_optee_abi.c 16srcs-y += thread_optee_abi_rv.S 17asm-defines-y += asm-defines.c 18 19ifeq ($(CFG_SYSCALL_FTRACE),y) 20# We would not like to profile thread.c file as it provide common APIs 21# that are needed for ftrace framework to trace syscalls. So profiling 22# this file could create an incorrect cyclic behaviour. 23cflags-remove-thread_arch.c-y += -pg 24# Tracing abort dump files corrupts the stack trace. So exclude them 25# from profiling. 26cflags-remove-abort.c-y += -pg 27ifeq ($(CFG_UNWIND),y) 28cflags-remove-unwind_rv.c-y += -pg 29endif 30endif 31