xref: /linux/arch/sh/kernel/Makefile (revision 79790b6818e96c58fe2bffee1b418c16e64e7b80)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
238f9ddf4SPaul Mundt#
338f9ddf4SPaul Mundt# Makefile for the Linux/SuperH kernel.
438f9ddf4SPaul Mundt#
538f9ddf4SPaul Mundt
632164845SMasahiro Yamadaextra-y	:= vmlinux.lds
738f9ddf4SPaul Mundt
838f9ddf4SPaul Mundtifdef CONFIG_FUNCTION_TRACER
938f9ddf4SPaul Mundt# Do not profile debug and lowlevel utilities
1038f9ddf4SPaul MundtCFLAGS_REMOVE_ftrace.o = -pg
1150552355SPaul Mundtendif
1238f9ddf4SPaul Mundt
13c8afde7fSPaul MundtCFLAGS_REMOVE_return_address.o = -pg
14c8afde7fSPaul Mundt
1532164845SMasahiro Yamadaobj-y	:= head_32.o debugtraps.o dumpstack.o				\
1637744feeSArnd Bergmann	   idle.o io.o irq.o irq_32.o kdebugfs.o			\
173f224f4eSPaul Mundt	   machvec.o nmi_debug.o process.o				\
1837744feeSArnd Bergmann	   process_32.o ptrace.o ptrace_32.o				\
19fbb82b03SPaul Mundt	   reboot.o return_address.o					\
2037744feeSArnd Bergmann	   setup.o signal_32.o sys_sh.o 				\
2137744feeSArnd Bergmann	   syscalls_32.o time.o topology.o traps.o			\
2237744feeSArnd Bergmann	   traps_32.o unwinder.o
2338f9ddf4SPaul Mundt
2437b7a978SPaul Mundtifndef CONFIG_GENERIC_IOMAP
2537b7a978SPaul Mundtobj-y				+= iomap.o
26ce816fa8SUwe Kleine-Königobj-$(CONFIG_HAS_IOPORT_MAP)	+= ioport.o
2737b7a978SPaul Mundtendif
2837b7a978SPaul Mundt
2937744feeSArnd Bergmannobj-y				+= sys_sh32.o
3038f9ddf4SPaul Mundtobj-y				+= cpu/
3138f9ddf4SPaul Mundtobj-$(CONFIG_VSYSCALL)		+= vsyscall/
3238f9ddf4SPaul Mundtobj-$(CONFIG_SMP)		+= smp.o
33776258dfSPaul Mundtobj-$(CONFIG_SH_STANDARD_BIOS)	+= sh_bios.o
3438f9ddf4SPaul Mundtobj-$(CONFIG_KGDB)		+= kgdb.o
3537744feeSArnd Bergmannobj-$(CONFIG_MODULES)		+= sh_ksyms_32.o module.o
36d70c27b7SBaoquan Heobj-$(CONFIG_KEXEC_CORE)	+= machine_kexec.o relocate_kernel.o
37*199da871SBaoquan Heobj-$(CONFIG_VMCORE_INFO)	+= vmcore_info.o
3838f9ddf4SPaul Mundtobj-$(CONFIG_CRASH_DUMP)	+= crash_dump.o
3938f9ddf4SPaul Mundtobj-$(CONFIG_STACKTRACE)	+= stacktrace.o
4038f9ddf4SPaul Mundtobj-$(CONFIG_IO_TRAPPED)	+= io_trapped.o
4138f9ddf4SPaul Mundtobj-$(CONFIG_KPROBES)		+= kprobes.o
4238f9ddf4SPaul Mundtobj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o
4338f9ddf4SPaul Mundtobj-$(CONFIG_FTRACE_SYSCALLS)	+= ftrace.o
4438f9ddf4SPaul Mundtobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
4538f9ddf4SPaul Mundtobj-$(CONFIG_DUMP_CODE)		+= disassemble.o
4638f9ddf4SPaul Mundtobj-$(CONFIG_HIBERNATION)	+= swsusp.o
4738f9ddf4SPaul Mundtobj-$(CONFIG_DWARF_UNWINDER)	+= dwarf.o
48830fafecSPaul Mundtobj-$(CONFIG_PERF_EVENTS)	+= perf_event.o perf_callchain.o
496fa1d28eSChristoph Hellwigobj-$(CONFIG_DMA_NONCOHERENT)	+= dma-coherent.o
5009a07294SPaul Mundtobj-$(CONFIG_HAVE_HW_BREAKPOINT)		+= hw_breakpoint.o
51