Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the Linux/SuperH kernel. |
| 4 | # |
| 5 | |
Thomas Gleixner | 41fe22f | 2012-05-03 09:02:59 +0000 | [diff] [blame] | 6 | extra-y := head_$(BITS).o vmlinux.lds |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 7 | |
| 8 | ifdef CONFIG_FUNCTION_TRACER |
| 9 | # Do not profile debug and lowlevel utilities |
| 10 | CFLAGS_REMOVE_ftrace.o = -pg |
Paul Mundt | 5055235 | 2007-11-09 16:40:43 +0900 | [diff] [blame] | 11 | endif |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 12 | |
Paul Mundt | c8afde7 | 2009-10-13 16:31:08 +0900 | [diff] [blame] | 13 | CFLAGS_REMOVE_return_address.o = -pg |
| 14 | |
Jean-Christop PLAGNIOL-VILLARD | 6d803ba | 2010-11-17 10:04:33 +0100 | [diff] [blame] | 15 | obj-y := debugtraps.o dma-nommu.o dumpstack.o \ |
Paul Mundt | 3f224f4 | 2010-09-24 04:04:26 +0900 | [diff] [blame] | 16 | idle.o io.o irq.o irq_$(BITS).o kdebugfs.o \ |
| 17 | machvec.o nmi_debug.o process.o \ |
Paul Mundt | eaaaeef3 | 2010-06-14 15:16:53 +0900 | [diff] [blame] | 18 | process_$(BITS).o ptrace.o ptrace_$(BITS).o \ |
Paul Mundt | fbb82b0 | 2010-01-20 16:42:52 +0900 | [diff] [blame] | 19 | reboot.o return_address.o \ |
Al Viro | 7147e21 | 2012-10-14 01:41:42 -0400 | [diff] [blame] | 20 | setup.o signal_$(BITS).o sys_sh.o \ |
Paul Mundt | 1e1030d | 2009-09-01 17:38:32 +0900 | [diff] [blame] | 21 | syscalls_$(BITS).o time.o topology.o traps.o \ |
| 22 | traps_$(BITS).o unwinder.o |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 23 | |
Paul Mundt | 37b7a97 | 2010-11-01 09:49:04 -0400 | [diff] [blame] | 24 | ifndef CONFIG_GENERIC_IOMAP |
| 25 | obj-y += iomap.o |
Uwe Kleine-König | ce816fa | 2014-04-07 15:39:19 -0700 | [diff] [blame] | 26 | obj-$(CONFIG_HAS_IOPORT_MAP) += ioport.o |
Paul Mundt | 37b7a97 | 2010-11-01 09:49:04 -0400 | [diff] [blame] | 27 | endif |
| 28 | |
Al Viro | 7147e21 | 2012-10-14 01:41:42 -0400 | [diff] [blame] | 29 | obj-$(CONFIG_SUPERH32) += sys_sh32.o |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 30 | obj-y += cpu/ |
| 31 | obj-$(CONFIG_VSYSCALL) += vsyscall/ |
| 32 | obj-$(CONFIG_SMP) += smp.o |
Paul Mundt | 776258d | 2010-01-12 15:31:20 +0900 | [diff] [blame] | 33 | obj-$(CONFIG_SH_STANDARD_BIOS) += sh_bios.o |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 34 | obj-$(CONFIG_KGDB) += kgdb.o |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 35 | obj-$(CONFIG_MODULES) += sh_ksyms_$(BITS).o module.o |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 36 | obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o |
| 37 | obj-$(CONFIG_CRASH_DUMP) += crash_dump.o |
| 38 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
| 39 | obj-$(CONFIG_IO_TRAPPED) += io_trapped.o |
| 40 | obj-$(CONFIG_KPROBES) += kprobes.o |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 41 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o |
| 42 | obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o |
| 43 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o |
| 44 | obj-$(CONFIG_DUMP_CODE) += disassemble.o |
| 45 | obj-$(CONFIG_HIBERNATION) += swsusp.o |
| 46 | obj-$(CONFIG_DWARF_UNWINDER) += dwarf.o |
Paul Mundt | 830fafe | 2009-11-05 16:20:09 +0900 | [diff] [blame] | 47 | obj-$(CONFIG_PERF_EVENTS) += perf_event.o perf_callchain.o |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 48 | |
Paul Mundt | 09a0729 | 2009-11-09 16:27:40 +0900 | [diff] [blame] | 49 | obj-$(CONFIG_HAVE_HW_BREAKPOINT) += hw_breakpoint.o |
Paul Mundt | 38f9ddf | 2009-08-16 03:35:26 +0900 | [diff] [blame] | 50 | |
matt mooney | a234ca0 | 2010-09-23 06:51:21 +0000 | [diff] [blame] | 51 | ccflags-y := -Werror |