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 34fbe934d6SPalmer Dabbeltobj-$(CONFIG_SMP) += smpboot.o 35fbe934d6SPalmer Dabbeltobj-$(CONFIG_SMP) += smp.o 36fbe934d6SPalmer Dabbeltobj-$(CONFIG_MODULES) += module.o 37ab1ef68eSZong Liobj-$(CONFIG_MODULE_SECTIONS) += module-sections.o 38c15ac4fdSAlan Kao 39c15ac4fdSAlan Kaoobj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o 40c15ac4fdSAlan Kaoobj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o 41fbe934d6SPalmer Dabbelt 42*178e9fc4SAlan Kaoobj-$(CONFIG_PERF_EVENTS) += perf_event.o 43*178e9fc4SAlan Kao 44fbe934d6SPalmer Dabbeltclean: 45