xref: /optee_os/core/arch/riscv/mm/sub.mk (revision 5d5d7d0b1c038a6836be9f0b38585f5aa6a4dd01)
1srcs-y += core_mmu_arch.c
2srcs-y += tlb_helpers_rv.S
3
4ifeq ($(CFG_SYSCALL_FTRACE),y)
5# We would not like to profile MMU APIs as these are used to switch TA
6# context which may cause undesired behaviour as ftrace requires TA context
7# to be active. Moreover profiling code uses some of MMU APIs to check
8# if TA context is active or not.
9cflags-remove-core_mmu_arch.c-y += -pg
10endif
11