blob: dc80041f73635219cbc0c30338cd30ae1d51a803 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Paul Mundt38f9ddf2009-08-16 03:35:26 +09002#
3# Makefile for the Linux/SuperH kernel.
4#
5
Thomas Gleixner41fe22f2012-05-03 09:02:59 +00006extra-y := head_$(BITS).o vmlinux.lds
Paul Mundt38f9ddf2009-08-16 03:35:26 +09007
8ifdef CONFIG_FUNCTION_TRACER
9# Do not profile debug and lowlevel utilities
10CFLAGS_REMOVE_ftrace.o = -pg
Paul Mundt50552352007-11-09 16:40:43 +090011endif
Paul Mundt38f9ddf2009-08-16 03:35:26 +090012
Paul Mundtc8afde72009-10-13 16:31:08 +090013CFLAGS_REMOVE_return_address.o = -pg
14
Jean-Christop PLAGNIOL-VILLARD6d803ba2010-11-17 10:04:33 +010015obj-y := debugtraps.o dma-nommu.o dumpstack.o \
Paul Mundt3f224f42010-09-24 04:04:26 +090016 idle.o io.o irq.o irq_$(BITS).o kdebugfs.o \
17 machvec.o nmi_debug.o process.o \
Paul Mundteaaaeef32010-06-14 15:16:53 +090018 process_$(BITS).o ptrace.o ptrace_$(BITS).o \
Paul Mundtfbb82b02010-01-20 16:42:52 +090019 reboot.o return_address.o \
Al Viro7147e212012-10-14 01:41:42 -040020 setup.o signal_$(BITS).o sys_sh.o \
Paul Mundt1e1030d2009-09-01 17:38:32 +090021 syscalls_$(BITS).o time.o topology.o traps.o \
22 traps_$(BITS).o unwinder.o
Paul Mundt38f9ddf2009-08-16 03:35:26 +090023
Paul Mundt37b7a972010-11-01 09:49:04 -040024ifndef CONFIG_GENERIC_IOMAP
25obj-y += iomap.o
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070026obj-$(CONFIG_HAS_IOPORT_MAP) += ioport.o
Paul Mundt37b7a972010-11-01 09:49:04 -040027endif
28
Al Viro7147e212012-10-14 01:41:42 -040029obj-$(CONFIG_SUPERH32) += sys_sh32.o
Paul Mundt38f9ddf2009-08-16 03:35:26 +090030obj-y += cpu/
31obj-$(CONFIG_VSYSCALL) += vsyscall/
32obj-$(CONFIG_SMP) += smp.o
Paul Mundt776258d2010-01-12 15:31:20 +090033obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o
Paul Mundt38f9ddf2009-08-16 03:35:26 +090034obj-$(CONFIG_KGDB) += kgdb.o
Paul Mundt38f9ddf2009-08-16 03:35:26 +090035obj-$(CONFIG_MODULES) += sh_ksyms_$(BITS).o module.o
Paul Mundt38f9ddf2009-08-16 03:35:26 +090036obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
37obj-$(CONFIG_CRASH_DUMP) += crash_dump.o
38obj-$(CONFIG_STACKTRACE) += stacktrace.o
39obj-$(CONFIG_IO_TRAPPED) += io_trapped.o
40obj-$(CONFIG_KPROBES) += kprobes.o
Paul Mundt38f9ddf2009-08-16 03:35:26 +090041obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
42obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
43obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
44obj-$(CONFIG_DUMP_CODE) += disassemble.o
45obj-$(CONFIG_HIBERNATION) += swsusp.o
46obj-$(CONFIG_DWARF_UNWINDER) += dwarf.o
Paul Mundt830fafe2009-11-05 16:20:09 +090047obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_callchain.o
Paul Mundt38f9ddf2009-08-16 03:35:26 +090048
Paul Mundt09a07292009-11-09 16:27:40 +090049obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o
Paul Mundt38f9ddf2009-08-16 03:35:26 +090050
matt mooneya234ca02010-09-23 06:51:21 +000051ccflags-y := -Werror