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