2019-05-19 19:07:45 +07:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2017-07-11 08:08:08 +07:00
|
|
|
#
|
|
|
|
# Makefile for the RISC-V Linux kernel
|
|
|
|
#
|
|
|
|
|
2017-12-18 16:52:48 +07:00
|
|
|
ifdef CONFIG_FTRACE
|
2020-03-09 23:55:43 +07:00
|
|
|
CFLAGS_REMOVE_ftrace.o = -pg
|
|
|
|
CFLAGS_REMOVE_patch.o = -pg
|
2017-12-18 16:52:48 +07:00
|
|
|
endif
|
|
|
|
|
2017-07-11 08:08:08 +07:00
|
|
|
extra-y += head.o
|
|
|
|
extra-y += vmlinux.lds
|
|
|
|
|
2020-03-16 07:47:38 +07:00
|
|
|
obj-y += soc.o
|
2017-07-11 08:08:08 +07:00
|
|
|
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 += cacheinfo.o
|
2020-03-09 23:55:43 +07:00
|
|
|
obj-y += patch.o
|
2019-10-28 19:10:41 +07:00
|
|
|
obj-$(CONFIG_MMU) += vdso.o vdso/
|
2017-07-11 08:08:08 +07:00
|
|
|
|
2020-08-17 19:42:50 +07:00
|
|
|
obj-$(CONFIG_RISCV_M_MODE) += traps_misaligned.o
|
2018-10-09 09:18:33 +07:00
|
|
|
obj-$(CONFIG_FPU) += fpu.o
|
2017-07-11 08:08:08 +07:00
|
|
|
obj-$(CONFIG_SMP) += smpboot.o
|
|
|
|
obj-$(CONFIG_SMP) += smp.o
|
2020-03-18 08:11:40 +07:00
|
|
|
obj-$(CONFIG_SMP) += cpu_ops.o
|
|
|
|
obj-$(CONFIG_SMP) += cpu_ops_spinwait.o
|
2017-07-11 08:08:08 +07:00
|
|
|
obj-$(CONFIG_MODULES) += module.o
|
2018-03-15 15:50:41 +07:00
|
|
|
obj-$(CONFIG_MODULE_SECTIONS) += module-sections.o
|
2018-02-13 12:13:17 +07:00
|
|
|
|
|
|
|
obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
|
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
|
2017-07-11 08:08:08 +07:00
|
|
|
|
2020-05-07 22:04:45 +07:00
|
|
|
obj-$(CONFIG_RISCV_BASE_PMU) += perf_event.o
|
2019-08-29 13:57:00 +07:00
|
|
|
obj-$(CONFIG_PERF_EVENTS) += perf_callchain.o
|
2019-09-05 10:46:35 +07:00
|
|
|
obj-$(CONFIG_HAVE_PERF_REGS) += perf_regs.o
|
2019-10-28 19:10:35 +07:00
|
|
|
obj-$(CONFIG_RISCV_SBI) += sbi.o
|
2020-03-18 08:11:43 +07:00
|
|
|
ifeq ($(CONFIG_RISCV_SBI), y)
|
|
|
|
obj-$(CONFIG_SMP) += cpu_ops_sbi.o
|
|
|
|
endif
|
2020-03-18 08:11:44 +07:00
|
|
|
obj-$(CONFIG_HOTPLUG_CPU) += cpu-hotplug.o
|
2020-04-16 09:38:05 +07:00
|
|
|
obj-$(CONFIG_KGDB) += kgdb.o
|
2018-04-20 06:27:49 +07:00
|
|
|
|
2020-07-14 14:40:44 +07:00
|
|
|
obj-$(CONFIG_JUMP_LABEL) += jump_label.o
|
|
|
|
|
2020-09-18 05:37:15 +07:00
|
|
|
obj-$(CONFIG_EFI) += efi.o
|
|
|
|
|
2017-07-11 08:08:08 +07:00
|
|
|
clean:
|