1# SPDX-License-Identifier: GPL-2.0-only 2# 3# Makefile for the RISC-V Linux kernel 4# 5 6ifdef CONFIG_FTRACE 7CFLAGS_REMOVE_ftrace.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 += cacheinfo.o 29obj-$(CONFIG_MMU) += vdso.o vdso/ 30 31obj-$(CONFIG_RISCV_M_MODE) += clint.o 32obj-$(CONFIG_FPU) += fpu.o 33obj-$(CONFIG_SMP) += smpboot.o 34obj-$(CONFIG_SMP) += smp.o 35obj-$(CONFIG_MODULES) += module.o 36obj-$(CONFIG_MODULE_SECTIONS) += module-sections.o 37 38obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 39obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o 40 41obj-$(CONFIG_PERF_EVENTS) += perf_event.o 42obj-$(CONFIG_PERF_EVENTS) += perf_callchain.o 43obj-$(CONFIG_HAVE_PERF_REGS) += perf_regs.o 44obj-$(CONFIG_RISCV_SBI) += sbi.o 45 46clean: 47