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_FPU) += fpu.o 35obj-$(CONFIG_SMP) += smpboot.o 36obj-$(CONFIG_SMP) += smp.o 37obj-$(CONFIG_MODULES) += module.o 38obj-$(CONFIG_MODULE_SECTIONS) += module-sections.o 39 40obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 41obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o 42 43obj-$(CONFIG_PERF_EVENTS) += perf_event.o 44 45clean: 46