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