xref: /optee_os/core/arch/arm/mm/sub.mk (revision e92be0c619d3754e0cf4488e8761a8e983a58201)
1abe38974SJens Wiklandersrcs-y += core_mmu.c
2821f46cfSJens Wiklandersrcs-$(CFG_WITH_PAGER) += tee_pager.c
3abe38974SJens Wiklanderifeq ($(CFG_WITH_LPAE),y)
4abe38974SJens Wiklandersrcs-y += core_mmu_lpae.c
5abe38974SJens Wiklanderelse
6abe38974SJens Wiklandersrcs-y += core_mmu_v7.c
7abe38974SJens Wiklanderendif
873e1d3f3SJens Wiklandersrcs-$(CFG_CORE_FFA) += mobj_ffa.c
9*5c1143a8SJelle Selssrcs-$(CFG_SECURE_PARTITION) += sp_mem.c
10099918f6SSumit Garg
11099918f6SSumit Gargifeq ($(CFG_SYSCALL_FTRACE),y)
12099918f6SSumit Garg# We would not like to profile MMU APIs as these are used to switch TA
13099918f6SSumit Garg# context which may cause undesired behaviour as ftrace requires TA context
14099918f6SSumit Garg# to be active. Moreover profiling code uses some of MMU APIs to check
15099918f6SSumit Garg# if TA context is active or not.
16099918f6SSumit Gargifeq ($(CFG_WITH_LPAE),y)
17099918f6SSumit Gargcflags-remove-core_mmu_lpae.c-y += -pg
18099918f6SSumit Gargelse
19099918f6SSumit Gargcflags-remove-core_mmu_v7.c-y += -pg
20099918f6SSumit Gargendif
21099918f6SSumit Gargendif
22