Makefile 768 字节
Newer Older
1
# SPDX-License-Identifier: GPL-2.0-only
2 3 4

CFLAGS_init.o := -mcmodel=medany
ifdef CONFIG_FTRACE
G
Guo Ren 已提交
5
CFLAGS_REMOVE_init.o = $(CC_FLAGS_FTRACE)
6
CFLAGS_REMOVE_cacheflush.o = $(CC_FLAGS_FTRACE)
7 8
endif

9 10
KCOV_INSTRUMENT_init.o := n

P
Palmer Dabbelt 已提交
11 12
obj-y += init.o
obj-y += extable.o
Z
Zong Li 已提交
13
obj-$(CONFIG_MMU) += fault.o pageattr.o
14
obj-y += cacheflush.o
G
Gary Guo 已提交
15
obj-y += context.o
16

17 18 19
ifeq ($(CONFIG_MMU),y)
obj-$(CONFIG_SMP) += tlbflush.o
endif
20
obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
21
obj-$(CONFIG_PTDUMP_CORE) += ptdump.o
N
Nick Hu 已提交
22 23 24 25 26
obj-$(CONFIG_KASAN)   += kasan_init.o

ifdef CONFIG_KASAN
KASAN_SANITIZE_kasan_init.o := n
KASAN_SANITIZE_init.o := n
27 28 29
ifdef CONFIG_DEBUG_VIRTUAL
KASAN_SANITIZE_physaddr.o := n
endif
N
Nick Hu 已提交
30
endif
31 32

obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o
33
obj-$(CONFIG_RISCV_DMA_NONCOHERENT) += dma-noncoherent.o