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