xref: /optee_os/core/arch/arm/mm/sub.mk (revision d29cd2efcd4681766ec3e3ffe4f5056fd4fc14ea)
1srcs-y += core_mmu.c
2srcs-$(CFG_WITH_PAGER) += tee_pager.c
3ifeq ($(CFG_WITH_LPAE),y)
4srcs-y += core_mmu_lpae.c
5else
6srcs-y += core_mmu_v7.c
7endif
8srcs-y += tee_mm.c
9srcs-y += pgt_cache.c
10srcs-y += mobj.c
11srcs-$(CFG_CORE_FFA) += mobj_ffa.c
12ifneq ($(CFG_CORE_FFA),y)
13srcs-$(CFG_CORE_DYN_SHM) += mobj_dyn_shm.c
14endif
15
16ifeq ($(CFG_SYSCALL_FTRACE),y)
17# We would not like to profile MMU APIs as these are used to switch TA
18# context which may cause undesired behaviour as ftrace requires TA context
19# to be active. Moreover profiling code uses some of MMU APIs to check
20# if TA context is active or not.
21ifeq ($(CFG_WITH_LPAE),y)
22cflags-remove-core_mmu_lpae.c-y += -pg
23else
24cflags-remove-core_mmu_v7.c-y += -pg
25endif
26endif
27