xref: /openbmc/linux/arch/riscv/mm/Makefile (revision 6435f773d81f02193228685a7e3fe65c983c5de0)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2387181dcSAnup Patel
3387181dcSAnup PatelCFLAGS_init.o := -mcmodel=medany
4387181dcSAnup Patelifdef CONFIG_FTRACE
5387181dcSAnup PatelCFLAGS_REMOVE_init.o = -pg
6387181dcSAnup Patelendif
7387181dcSAnup Patel
8fbe934d6SPalmer Dabbeltobj-y += init.o
9fbe934d6SPalmer Dabbeltobj-y += extable.o
10a308a710SLinus Torvaldsobj-$(CONFIG_MMU) += fault.o
1108f051edSAndrew Watermanobj-y += cacheflush.o
12f6635f87SGary Guoobj-y += context.o
139e953cdaSAlexandre Ghiti
1495594cb4SChristoph Hellwigifeq ($(CONFIG_MMU),y)
1595594cb4SChristoph Hellwigobj-$(CONFIG_SMP) += tlbflush.o
1695594cb4SChristoph Hellwigendif
179e953cdaSAlexandre Ghitiobj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
188ad8b727SNick Huobj-$(CONFIG_KASAN)   += kasan_init.o
198ad8b727SNick Hu
208ad8b727SNick Huifdef CONFIG_KASAN
218ad8b727SNick HuKASAN_SANITIZE_kasan_init.o := n
228ad8b727SNick HuKASAN_SANITIZE_init.o := n
238ad8b727SNick Huendif
24*6435f773SZong Li
25*6435f773SZong Liobj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o
26