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