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 17obj-y += cacheflush.o 18obj-y += context.o 19obj-y += pgtable.o 20obj-y += pmem.o 21 22ifeq ($(CONFIG_MMU),y) 23obj-$(CONFIG_SMP) += tlbflush.o 24endif 25obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o 26obj-$(CONFIG_PTDUMP_CORE) += ptdump.o 27obj-$(CONFIG_KASAN) += kasan_init.o 28 29ifdef CONFIG_KASAN 30KASAN_SANITIZE_kasan_init.o := n 31KASAN_SANITIZE_init.o := n 32ifdef CONFIG_DEBUG_VIRTUAL 33KASAN_SANITIZE_physaddr.o := n 34endif 35endif 36 37obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o 38obj-$(CONFIG_RISCV_DMA_NONCOHERENT) += dma-noncoherent.o 39obj-$(CONFIG_RISCV_NONSTANDARD_CACHE_OPS) += cache-ops.o 40