1 # SPDX-License-Identifier: GPL-2.0-only
3 CFLAGS_init.o
:= -mcmodel
=medany
4 ifdef CONFIG_RELOCATABLE
5 CFLAGS_init.o
+= -fno-pie
9 CFLAGS_REMOVE_init.o
= $(CC_FLAGS_FTRACE
)
10 CFLAGS_REMOVE_cacheflush.o
= $(CC_FLAGS_FTRACE
)
13 KCOV_INSTRUMENT_init.o
:= n
16 obj-
$(CONFIG_MMU
) += extable.o fault.o pageattr.o pgtable.o tlbflush.o
21 obj-
$(CONFIG_HUGETLB_PAGE
) += hugetlbpage.o
22 obj-
$(CONFIG_PTDUMP_CORE
) += ptdump.o
23 obj-
$(CONFIG_KASAN
) += kasan_init.o
26 KASAN_SANITIZE_kasan_init.o
:= n
27 KASAN_SANITIZE_init.o
:= n
28 ifdef CONFIG_DEBUG_VIRTUAL
29 KASAN_SANITIZE_physaddr.o
:= n
33 obj-
$(CONFIG_DEBUG_VIRTUAL
) += physaddr.o
34 obj-
$(CONFIG_RISCV_DMA_NONCOHERENT
) += dma-noncoherent.o
35 obj-
$(CONFIG_RISCV_NONSTANDARD_CACHE_OPS
) += cache-ops.o