Makefile 839 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #
  2. # Makefile for the RISC-V Linux kernel
  3. #
  4. ifdef CONFIG_FTRACE
  5. CFLAGS_REMOVE_ftrace.o = -pg
  6. CFLAGS_REMOVE_setup.o = -pg
  7. endif
  8. extra-y += head.o
  9. extra-y += vmlinux.lds
  10. obj-y += cpu.o
  11. obj-y += cpufeature.o
  12. obj-y += entry.o
  13. obj-y += irq.o
  14. obj-y += process.o
  15. obj-y += ptrace.o
  16. obj-y += reset.o
  17. obj-y += setup.o
  18. obj-y += signal.o
  19. obj-y += syscall_table.o
  20. obj-y += sys_riscv.o
  21. obj-y += time.o
  22. obj-y += traps.o
  23. obj-y += riscv_ksyms.o
  24. obj-y += stacktrace.o
  25. obj-y += vdso.o
  26. obj-y += cacheinfo.o
  27. obj-y += vdso/
  28. CFLAGS_setup.o := -mcmodel=medany
  29. obj-$(CONFIG_SMP) += smpboot.o
  30. obj-$(CONFIG_SMP) += smp.o
  31. obj-$(CONFIG_MODULES) += module.o
  32. obj-$(CONFIG_MODULE_SECTIONS) += module-sections.o
  33. obj-$(CONFIG_FUNCTION_TRACER) += mcount.o ftrace.o
  34. obj-$(CONFIG_DYNAMIC_FTRACE) += mcount-dyn.o
  35. obj-$(CONFIG_PERF_EVENTS) += perf_event.o
  36. clean: