Merge git://git.kernel.org:/pub/scm/linux/kernel/git/davem/sparc
[platform/kernel/linux-starfive.git] / arch / riscv / mm / Makefile
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 CFLAGS_init.o := -mcmodel=medany
4 ifdef CONFIG_FTRACE
5 CFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE)
6 CFLAGS_REMOVE_cacheflush.o = $(CC_FLAGS_FTRACE)
7 endif
8
9 KCOV_INSTRUMENT_init.o := n
10
11 obj-y += init.o
12 obj-y += extable.o
13 obj-$(CONFIG_MMU) += fault.o pageattr.o
14 obj-y += cacheflush.o
15 obj-y += context.o
16
17 ifeq ($(CONFIG_MMU),y)
18 obj-$(CONFIG_SMP) += tlbflush.o
19 endif
20 obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
21 obj-$(CONFIG_PTDUMP_CORE) += ptdump.o
22 obj-$(CONFIG_KASAN)   += kasan_init.o
23
24 ifdef CONFIG_KASAN
25 KASAN_SANITIZE_kasan_init.o := n
26 KASAN_SANITIZE_init.o := n
27 endif
28
29 obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o