1fbe934d6SPalmer Dabbelt# 2fbe934d6SPalmer Dabbelt# Makefile for the RISC-V Linux kernel 3fbe934d6SPalmer Dabbelt# 4fbe934d6SPalmer Dabbelt 510626c32SAlan Kaoifdef CONFIG_FTRACE 610626c32SAlan KaoCFLAGS_REMOVE_ftrace.o = -pg 710626c32SAlan KaoCFLAGS_REMOVE_setup.o = -pg 810626c32SAlan Kaoendif 910626c32SAlan Kao 10fbe934d6SPalmer Dabbeltextra-y += head.o 11fbe934d6SPalmer Dabbeltextra-y += vmlinux.lds 12fbe934d6SPalmer Dabbelt 13fbe934d6SPalmer Dabbeltobj-y += cpu.o 14fbe934d6SPalmer Dabbeltobj-y += cpufeature.o 15fbe934d6SPalmer Dabbeltobj-y += entry.o 16fbe934d6SPalmer Dabbeltobj-y += irq.o 17fbe934d6SPalmer Dabbeltobj-y += process.o 18fbe934d6SPalmer Dabbeltobj-y += ptrace.o 19fbe934d6SPalmer Dabbeltobj-y += reset.o 20fbe934d6SPalmer Dabbeltobj-y += setup.o 21fbe934d6SPalmer Dabbeltobj-y += signal.o 22fbe934d6SPalmer Dabbeltobj-y += syscall_table.o 23fbe934d6SPalmer Dabbeltobj-y += sys_riscv.o 24fbe934d6SPalmer Dabbeltobj-y += time.o 25fbe934d6SPalmer Dabbeltobj-y += traps.o 26fbe934d6SPalmer Dabbeltobj-y += riscv_ksyms.o 27fbe934d6SPalmer Dabbeltobj-y += stacktrace.o 28fbe934d6SPalmer Dabbeltobj-y += vdso.o 29fbe934d6SPalmer Dabbeltobj-y += cacheinfo.o 30fbe934d6SPalmer Dabbeltobj-y += vdso/ 31fbe934d6SPalmer Dabbelt 32fbe934d6SPalmer DabbeltCFLAGS_setup.o := -mcmodel=medany 33fbe934d6SPalmer Dabbelt 34*9671f706SAlan Kaoobj-$(CONFIG_FPU) += fpu.o 35fbe934d6SPalmer Dabbeltobj-$(CONFIG_SMP) += smpboot.o 36fbe934d6SPalmer Dabbeltobj-$(CONFIG_SMP) += smp.o 37fbe934d6SPalmer Dabbeltobj-$(CONFIG_MODULES) += module.o 38ab1ef68eSZong Liobj-$(CONFIG_MODULE_SECTIONS) += module-sections.o 39c15ac4fdSAlan Kao 40c15ac4fdSAlan Kaoobj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 41c15ac4fdSAlan Kaoobj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o 42fbe934d6SPalmer Dabbelt 43178e9fc4SAlan Kaoobj-$(CONFIG_PERF_EVENTS) += perf_event.o 44178e9fc4SAlan Kao 45fbe934d6SPalmer Dabbeltclean: 46