xref: /linux/arch/sh/kernel/Makefile (revision 776258df925acd0563f471ee4b3f19bbffb3c04f)
138f9ddf4SPaul Mundt#
238f9ddf4SPaul Mundt# Makefile for the Linux/SuperH kernel.
338f9ddf4SPaul Mundt#
438f9ddf4SPaul Mundt
538f9ddf4SPaul Mundtextra-y	:= head_$(BITS).o init_task.o vmlinux.lds
638f9ddf4SPaul Mundt
738f9ddf4SPaul Mundtifdef CONFIG_FUNCTION_TRACER
838f9ddf4SPaul Mundt# Do not profile debug and lowlevel utilities
938f9ddf4SPaul MundtCFLAGS_REMOVE_ftrace.o = -pg
1050552355SPaul Mundtendif
1138f9ddf4SPaul Mundt
12c8afde7fSPaul MundtCFLAGS_REMOVE_return_address.o = -pg
13c8afde7fSPaul Mundt
1473c926beSPaul Mundtobj-y	:= debugtraps.o dma-nommu.o dumpstack.o 			\
1573c926beSPaul Mundt	   idle.o io.o io_generic.o irq.o				\
1603fdb708SPaul Mundt	   irq_$(BITS).o machvec.o nmi_debug.o process_$(BITS).o 	\
1703fdb708SPaul Mundt	   ptrace_$(BITS).o return_address.o				\
181e1030dcSPaul Mundt	   setup.o signal_$(BITS).o sys_sh.o sys_sh$(BITS).o		\
191e1030dcSPaul Mundt	   syscalls_$(BITS).o time.o topology.o traps.o			\
201e1030dcSPaul Mundt	   traps_$(BITS).o unwinder.o
2138f9ddf4SPaul Mundt
2238f9ddf4SPaul Mundtobj-y				+= cpu/
2338f9ddf4SPaul Mundtobj-$(CONFIG_VSYSCALL)		+= vsyscall/
2438f9ddf4SPaul Mundtobj-$(CONFIG_SMP)		+= smp.o
25*776258dfSPaul Mundtobj-$(CONFIG_SH_STANDARD_BIOS)	+= sh_bios.o
2638f9ddf4SPaul Mundtobj-$(CONFIG_KGDB)		+= kgdb.o
2738f9ddf4SPaul Mundtobj-$(CONFIG_SH_CPU_FREQ)	+= cpufreq.o
2838f9ddf4SPaul Mundtobj-$(CONFIG_MODULES)		+= sh_ksyms_$(BITS).o module.o
2938f9ddf4SPaul Mundtobj-$(CONFIG_KEXEC)		+= machine_kexec.o relocate_kernel.o
3038f9ddf4SPaul Mundtobj-$(CONFIG_CRASH_DUMP)	+= crash_dump.o
3138f9ddf4SPaul Mundtobj-$(CONFIG_STACKTRACE)	+= stacktrace.o
3238f9ddf4SPaul Mundtobj-$(CONFIG_IO_TRAPPED)	+= io_trapped.o
3338f9ddf4SPaul Mundtobj-$(CONFIG_KPROBES)		+= kprobes.o
3438f9ddf4SPaul Mundtobj-$(CONFIG_DYNAMIC_FTRACE)	+= ftrace.o
3538f9ddf4SPaul Mundtobj-$(CONFIG_FTRACE_SYSCALLS)	+= ftrace.o
3638f9ddf4SPaul Mundtobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
3738f9ddf4SPaul Mundtobj-$(CONFIG_DUMP_CODE)		+= disassemble.o
3838f9ddf4SPaul Mundtobj-$(CONFIG_HIBERNATION)	+= swsusp.o
3938f9ddf4SPaul Mundtobj-$(CONFIG_DWARF_UNWINDER)	+= dwarf.o
40830fafecSPaul Mundtobj-$(CONFIG_PERF_EVENTS)	+= perf_event.o perf_callchain.o
4138f9ddf4SPaul Mundt
4238f9ddf4SPaul Mundtobj-$(CONFIG_GENERIC_CLOCKEVENTS_BROADCAST)	+= localtimer.o
4338f9ddf4SPaul Mundt
4438f9ddf4SPaul MundtEXTRA_CFLAGS += -Werror
45