xref: /optee_os/core/arch/riscv/kernel/sub.mk (revision 3f6ed0a62ed0264f05743f692202e7fc1b98d6c7)
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
15asm-defines-y += asm-defines.c
16
17ifeq ($(CFG_SYSCALL_FTRACE),y)
18# We would not like to profile thread.c file as it provide common APIs
19# that are needed for ftrace framework to trace syscalls. So profiling
20# this file could create an incorrect cyclic behaviour.
21cflags-remove-thread_arch.c-y += -pg
22# Tracing abort dump files corrupts the stack trace. So exclude them
23# from profiling.
24cflags-remove-abort.c-y += -pg
25ifeq ($(CFG_UNWIND),y)
26cflags-remove-unwind_rv.c-y += -pg
27endif
28endif
29