1# SPDX-License-Identifier: GPL-2.0-only 2 3CFLAGS_init.o := -mcmodel=medany 4ifdef CONFIG_FTRACE 5CFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE) 6CFLAGS_REMOVE_cacheflush.o = $(CC_FLAGS_FTRACE) 7endif 8 9KCOV_INSTRUMENT_init.o := n 10 11obj-y += init.o 12obj-y += extable.o 13obj-$(CONFIG_MMU) += fault.o pageattr.o 14obj-y += cacheflush.o 15obj-y += context.o 16obj-y += pgtable.o 17obj-y += pmem.o 18 19ifeq ($(CONFIG_MMU),y) 20obj-$(CONFIG_SMP) += tlbflush.o 21endif 22obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o 23obj-$(CONFIG_PTDUMP_CORE) += ptdump.o 24obj-$(CONFIG_KASAN) += kasan_init.o 25 26ifdef CONFIG_KASAN 27KASAN_SANITIZE_kasan_init.o := n 28KASAN_SANITIZE_init.o := n 29ifdef CONFIG_DEBUG_VIRTUAL 30KASAN_SANITIZE_physaddr.o := n 31endif 32endif 33 34obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o 35obj-$(CONFIG_RISCV_DMA_NONCOHERENT) += dma-noncoherent.o 36