xref: /linux/arch/riscv/kernel/Makefile (revision 98a93b0b561c571153b7cd6953e882bc3fd8cfcd)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2fbe934d6SPalmer Dabbelt#
3fbe934d6SPalmer Dabbelt# Makefile for the RISC-V Linux kernel
4fbe934d6SPalmer Dabbelt#
5fbe934d6SPalmer Dabbelt
610626c32SAlan Kaoifdef CONFIG_FTRACE
710626c32SAlan KaoCFLAGS_REMOVE_ftrace.o = -pg
810626c32SAlan Kaoendif
910626c32SAlan Kao
10fbe934d6SPalmer Dabbeltextra-y += head.o
11fbe934d6SPalmer Dabbeltextra-y += vmlinux.lds
12fbe934d6SPalmer Dabbelt
13fbe934d6SPalmer Dabbeltobj-y	+= cpu.o
14fbe934d6SPalmer Dabbeltobj-y	+= cpufeature.o
15fbe934d6SPalmer Dabbeltobj-y	+= entry.o
16fbe934d6SPalmer Dabbeltobj-y	+= irq.o
17fbe934d6SPalmer Dabbeltobj-y	+= process.o
18fbe934d6SPalmer Dabbeltobj-y	+= ptrace.o
19fbe934d6SPalmer Dabbeltobj-y	+= reset.o
20fbe934d6SPalmer Dabbeltobj-y	+= setup.o
21fbe934d6SPalmer Dabbeltobj-y	+= signal.o
22fbe934d6SPalmer Dabbeltobj-y	+= syscall_table.o
23fbe934d6SPalmer Dabbeltobj-y	+= sys_riscv.o
24fbe934d6SPalmer Dabbeltobj-y	+= time.o
25fbe934d6SPalmer Dabbeltobj-y	+= traps.o
26fbe934d6SPalmer Dabbeltobj-y	+= riscv_ksyms.o
27fbe934d6SPalmer Dabbeltobj-y	+= stacktrace.o
28fbe934d6SPalmer Dabbeltobj-y	+= vdso.o
29fbe934d6SPalmer Dabbeltobj-y	+= cacheinfo.o
30fbe934d6SPalmer Dabbeltobj-y	+= vdso/
31fbe934d6SPalmer Dabbelt
329671f706SAlan Kaoobj-$(CONFIG_FPU)		+= fpu.o
33fbe934d6SPalmer Dabbeltobj-$(CONFIG_SMP)		+= smpboot.o
34fbe934d6SPalmer Dabbeltobj-$(CONFIG_SMP)		+= smp.o
35fbe934d6SPalmer Dabbeltobj-$(CONFIG_MODULES)		+= module.o
36ab1ef68eSZong Liobj-$(CONFIG_MODULE_SECTIONS)	+= module-sections.o
37c15ac4fdSAlan Kao
38c15ac4fdSAlan Kaoobj-$(CONFIG_FUNCTION_TRACER)	+= mcount.o ftrace.o
39c15ac4fdSAlan Kaoobj-$(CONFIG_DYNAMIC_FTRACE)	+= mcount-dyn.o
40fbe934d6SPalmer Dabbelt
41178e9fc4SAlan Kaoobj-$(CONFIG_PERF_EVENTS)	+= perf_event.o
42dbeb90b0SMao Hanobj-$(CONFIG_PERF_EVENTS)	+= perf_callchain.o
43*98a93b0bSMao Hanobj-$(CONFIG_HAVE_PERF_REGS)	+= perf_regs.o
44178e9fc4SAlan Kao
45fbe934d6SPalmer Dabbeltclean:
46