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