2019-05-19 20:07:45 +08:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2017-07-11 09:08:08 +08:00
|
|
|
#
|
|
|
|
# Makefile for the RISC-V Linux kernel
|
|
|
|
#
|
|
|
|
|
2017-12-18 17:52:48 +08:00
|
|
|
ifdef CONFIG_FTRACE
|
|
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
|
|
|
endif
|
|
|
|
|
2017-07-11 09:08:08 +08:00
|
|
|
extra-y += head.o
|
|
|
|
extra-y += vmlinux.lds
|
|
|
|
|
|
|
|
obj-y += cpu.o
|
|
|
|
obj-y += cpufeature.o
|
|
|
|
obj-y += entry.o
|
|
|
|
obj-y += irq.o
|
|
|
|
obj-y += process.o
|
|
|
|
obj-y += ptrace.o
|
|
|
|
obj-y += reset.o
|
|
|
|
obj-y += setup.o
|
|
|
|
obj-y += signal.o
|
|
|
|
obj-y += syscall_table.o
|
|
|
|
obj-y += sys_riscv.o
|
|
|
|
obj-y += time.o
|
|
|
|
obj-y += traps.o
|
|
|
|
obj-y += riscv_ksyms.o
|
|
|
|
obj-y += stacktrace.o
|
|
|
|
obj-y += vdso.o
|
|
|
|
obj-y += cacheinfo.o
|
|
|
|
obj-y += vdso/
|
|
|
|
|
2018-10-09 10:18:33 +08:00
|
|
|
obj-$(CONFIG_FPU) += fpu.o
|
2017-07-11 09:08:08 +08:00
|
|
|
obj-$(CONFIG_SMP) += smpboot.o
|
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
|
|
|
obj-$(CONFIG_MODULES) += module.o
|
2018-03-15 16:50:41 +08:00
|
|
|
obj-$(CONFIG_MODULE_SECTIONS) += module-sections.o
|
2018-02-13 13:13:17 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
|
2017-07-11 09:08:08 +08:00
|
|
|
|
2019-08-29 14:57:00 +08:00
|
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_event.o
|
|
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_callchain.o
|
2019-09-05 11:46:35 +08:00
|
|
|
obj-$(CONFIG_HAVE_PERF_REGS) += perf_regs.o
|
2018-04-20 07:27:49 +08:00
|
|
|
|
2017-07-11 09:08:08 +08:00
|
|
|
clean:
|