2 # Makefile for the RISC-V Linux kernel
6 CFLAGS_REMOVE_ftrace.o
= -pg
7 CFLAGS_REMOVE_setup.o
= -pg
11 extra-y
+= vmlinux.lds
22 obj-y
+= syscall_table.o
26 obj-y
+= riscv_ksyms.o
32 CFLAGS_setup.o
:= -mcmodel
=medany
34 obj-
$(CONFIG_FPU
) += fpu.o
35 obj-
$(CONFIG_SMP
) += smpboot.o
36 obj-
$(CONFIG_SMP
) += smp.o
37 obj-
$(CONFIG_MODULES
) += module.o
38 obj-
$(CONFIG_MODULE_SECTIONS
) += module-sections.o
40 obj-
$(CONFIG_FUNCTION_TRACER
) += mcount.o ftrace.o
41 obj-
$(CONFIG_DYNAMIC_FTRACE
) += mcount-dyn.o
43 obj-
$(CONFIG_PERF_EVENTS
) += perf_event.o