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