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-$(CFG_RISCV_SBI_MPXY) += sbi_mpxy.c 9srcs-$(CFG_RISCV_SBI_MPXY_RPMI) += sbi_mpxy_rpmi.c 10srcs-y += boot.c 11srcs-y += entry.S 12srcs-y += abort.c 13srcs-y += thread_rv.S 14srcs-y += thread_arch.c 15srcs-y += arch_scall_rv.S 16srcs-y += arch_scall.c 17srcs-$(CFG_UNWIND) += unwind_rv.c 18srcs-$(CFG_SEMIHOSTING) += semihosting_rv.S 19srcs-y += thread_optee_abi.c 20srcs-y += thread_optee_abi_rv.S 21asm-defines-y += asm-defines.c 22 23ifeq ($(CFG_SYSCALL_FTRACE),y) 24# We would not like to profile thread.c file as it provide common APIs 25# that are needed for ftrace framework to trace syscalls. So profiling 26# this file could create an incorrect cyclic behaviour. 27cflags-remove-thread_arch.c-y += -pg 28# Tracing abort dump files corrupts the stack trace. So exclude them 29# from profiling. 30cflags-remove-abort.c-y += -pg 31ifeq ($(CFG_UNWIND),y) 32cflags-remove-unwind_rv.c-y += -pg 33endif 34endif 35