Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #
  2. # Makefile for the linux kernel.
  3. #
  4. ifdef CONFIG_FUNCTION_TRACER
  5. # Don't trace early setup code and tracing code
  6. CFLAGS_REMOVE_early.o = -pg
  7. CFLAGS_REMOVE_ftrace.o = -pg
  8. endif
  9. #
  10. # Passing null pointers is ok for smp code, since we access the lowcore here.
  11. #
  12. CFLAGS_smp.o := -Wno-nonnull
  13. #
  14. # Pass UTS_MACHINE for user_regset definition
  15. #
  16. CFLAGS_ptrace.o += -DUTS_MACHINE='"$(UTS_MACHINE)"'
  17. CFLAGS_sysinfo.o += -Iinclude/math-emu -Iarch/s390/math-emu -w
  18. obj-y := bitmap.o traps.o time.o process.o base.o early.o setup.o vtime.o \
  19. processor.o sys_s390.o ptrace.o signal.o cpcmd.o ebcdic.o nmi.o \
  20. debug.o irq.o ipl.o dis.o diag.o mem_detect.o sclp.o vdso.o \
  21. sysinfo.o jump_label.o
  22. obj-y += $(if $(CONFIG_64BIT),entry64.o,entry.o)
  23. obj-y += $(if $(CONFIG_64BIT),reipl64.o,reipl.o)
  24. extra-y += head.o init_task.o vmlinux.lds
  25. extra-y += $(if $(CONFIG_64BIT),head64.o,head31.o)
  26. obj-$(CONFIG_MODULES) += s390_ksyms.o module.o
  27. obj-$(CONFIG_SMP) += smp.o topology.o
  28. obj-$(CONFIG_SMP) += $(if $(CONFIG_64BIT),switch_cpu64.o, \
  29. switch_cpu.o)
  30. obj-$(CONFIG_HIBERNATION) += suspend.o swsusp_asm64.o
  31. obj-$(CONFIG_AUDIT) += audit.o
  32. compat-obj-$(CONFIG_AUDIT) += compat_audit.o
  33. obj-$(CONFIG_COMPAT) += compat_linux.o compat_signal.o \
  34. compat_wrapper.o compat_exec_domain.o \
  35. $(compat-obj-y)
  36. obj-$(CONFIG_STACKTRACE) += stacktrace.o
  37. obj-$(CONFIG_KPROBES) += kprobes.o
  38. obj-$(CONFIG_FUNCTION_TRACER) += $(if $(CONFIG_64BIT),mcount64.o,mcount.o)
  39. obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
  40. obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
  41. obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
  42. # Kexec part
  43. S390_KEXEC_OBJS := machine_kexec.o crash.o
  44. S390_KEXEC_OBJS += $(if $(CONFIG_64BIT),relocate_kernel64.o,relocate_kernel.o)
  45. obj-$(CONFIG_KEXEC) += $(S390_KEXEC_OBJS)
  46. # vdso
  47. obj-$(CONFIG_64BIT) += vdso64/
  48. obj-$(CONFIG_32BIT) += vdso32/
  49. obj-$(CONFIG_COMPAT) += vdso32/