1#
2# Makefile for the RISC-V Linux kernel
3#
4
5ifdef CONFIG_FTRACE
6CFLAGS_REMOVE_ftrace.o = -pg
7CFLAGS_REMOVE_setup.o = -pg
8endif
9
10extra-y += head.o
11extra-y += vmlinux.lds
12
13obj-y	+= cpu.o
14obj-y	+= cpufeature.o
15obj-y	+= entry.o
16obj-y	+= irq.o
17obj-y	+= process.o
18obj-y	+= ptrace.o
19obj-y	+= reset.o
20obj-y	+= setup.o
21obj-y	+= signal.o
22obj-y	+= syscall_table.o
23obj-y	+= sys_riscv.o
24obj-y	+= time.o
25obj-y	+= traps.o
26obj-y	+= riscv_ksyms.o
27obj-y	+= stacktrace.o
28obj-y	+= vdso.o
29obj-y	+= cacheinfo.o
30obj-y	+= vdso/
31
32CFLAGS_setup.o := -mcmodel=medany
33
34obj-$(CONFIG_SMP)		+= smpboot.o
35obj-$(CONFIG_SMP)		+= smp.o
36obj-$(CONFIG_MODULES)		+= module.o
37obj-$(CONFIG_MODULE_SECTIONS)	+= module-sections.o
38
39obj-$(CONFIG_FUNCTION_TRACER)	+= mcount.o ftrace.o
40obj-$(CONFIG_DYNAMIC_FTRACE)	+= mcount-dyn.o
41
42obj-$(CONFIG_PERF_EVENTS)      += perf_event.o
43
44clean:
45