Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Thomas Petazzoni | a988fb8 | 2013-09-11 12:32:05 +0200 | [diff] [blame] | 2 | |
David S. Miller | f0e98c3 | 2008-03-03 15:01:05 -0800 | [diff] [blame] | 3 | # |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | # Makefile for the linux kernel. |
| 5 | # |
| 6 | |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 7 | asflags-y := -ansi |
| 8 | ccflags-y := -Werror |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 10 | extra-y := head_$(BITS).o |
Sam Ravnborg | 51b563f | 2009-09-20 12:28:22 +0200 | [diff] [blame] | 11 | |
| 12 | # Undefine sparc when processing vmlinux.lds - it is used |
| 13 | # And teach CPP we are doing $(BITS) builds (for this case) |
| 14 | CPPFLAGS_vmlinux.lds := -Usparc -m$(BITS) |
| 15 | extra-y += vmlinux.lds |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
David S. Miller | f8e8a8e | 2010-04-06 17:34:15 -0700 | [diff] [blame] | 17 | ifdef CONFIG_FUNCTION_TRACER |
| 18 | # Do not profile debug and lowlevel utilities |
| 19 | CFLAGS_REMOVE_ftrace.o := -pg |
| 20 | CFLAGS_REMOVE_time_$(BITS).o := -pg |
| 21 | CFLAGS_REMOVE_perf_event.o := -pg |
| 22 | CFLAGS_REMOVE_pcr.o := -pg |
| 23 | endif |
| 24 | |
David S. Miller | 7cafc0b | 2016-05-28 20:41:12 -0700 | [diff] [blame] | 25 | obj-$(CONFIG_SPARC64) += urtt_fill.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 26 | obj-$(CONFIG_SPARC32) += entry.o wof.o wuf.o |
| 27 | obj-$(CONFIG_SPARC32) += etrap_32.o |
| 28 | obj-$(CONFIG_SPARC32) += rtrap_32.o |
| 29 | obj-y += traps_$(BITS).o |
Al Viro | 5ea8176 | 2007-02-11 15:41:31 +0000 | [diff] [blame] | 30 | |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 31 | # IRQ |
| 32 | obj-y += irq_$(BITS).o |
Sam Ravnborg | 2c1cfb2 | 2012-05-11 11:35:04 +0000 | [diff] [blame] | 33 | obj-$(CONFIG_SPARC32) += sun4m_irq.o sun4d_irq.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 34 | |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 35 | obj-y += process_$(BITS).o |
Christian Brauner | a4261d4 | 2020-05-12 19:15:26 +0200 | [diff] [blame] | 36 | obj-y += process.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 37 | obj-y += signal_$(BITS).o |
David S. Miller | 5598473 | 2011-08-20 17:14:54 -0700 | [diff] [blame] | 38 | obj-y += sigutil_$(BITS).o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 39 | obj-$(CONFIG_SPARC32) += ioport.o |
| 40 | obj-y += setup_$(BITS).o |
Sam Ravnborg | 680e58f | 2008-12-07 00:50:29 -0800 | [diff] [blame] | 41 | obj-y += idprom.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 42 | obj-y += sys_sparc_$(BITS).o |
| 43 | obj-$(CONFIG_SPARC32) += systbls_32.o |
| 44 | obj-y += time_$(BITS).o |
| 45 | obj-$(CONFIG_SPARC32) += windows.o |
Sam Ravnborg | d34dd82 | 2008-12-07 00:04:30 -0800 | [diff] [blame] | 46 | obj-y += cpu.o |
Nagarathnam Muthusamy | 9a08862 | 2017-09-21 11:05:31 -0400 | [diff] [blame] | 47 | obj-$(CONFIG_SPARC64) += vdso.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 48 | obj-$(CONFIG_SPARC32) += devices.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 49 | obj-y += ptrace_$(BITS).o |
| 50 | obj-y += unaligned_$(BITS).o |
| 51 | obj-y += una_asm_$(BITS).o |
David S. Miller | dfa7606 | 2008-12-04 20:28:22 -0800 | [diff] [blame] | 52 | obj-y += prom_common.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 53 | obj-y += prom_$(BITS).o |
Robert Reif | c9f5b7e | 2009-06-04 02:00:02 -0700 | [diff] [blame] | 54 | obj-y += of_device_common.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 55 | obj-y += of_device_$(BITS).o |
David S. Miller | 5fce09c | 2008-12-05 00:43:03 -0800 | [diff] [blame] | 56 | obj-$(CONFIG_SPARC64) += prom_irqtrans.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 57 | |
Sam Ravnborg | 5561cd2 | 2012-05-25 21:20:13 +0000 | [diff] [blame] | 58 | obj-$(CONFIG_SPARC32) += leon_kernel.o |
Sam Ravnborg | 556626a | 2012-05-26 04:43:27 +0000 | [diff] [blame] | 59 | obj-$(CONFIG_SPARC32) += leon_pmc.o |
Konrad Eisele | 0fd7ef1 | 2009-08-17 00:13:31 +0000 | [diff] [blame] | 60 | |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 61 | obj-$(CONFIG_SPARC64) += reboot.o |
| 62 | obj-$(CONFIG_SPARC64) += sysfs.o |
Christoph Hellwig | 0d3fdb1 | 2018-04-03 15:34:58 +0200 | [diff] [blame] | 63 | obj-$(CONFIG_SPARC64) += iommu.o iommu-common.o |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 64 | obj-$(CONFIG_SPARC64) += central.o |
| 65 | obj-$(CONFIG_SPARC64) += starfire.o |
| 66 | obj-$(CONFIG_SPARC64) += power.o |
| 67 | obj-$(CONFIG_SPARC64) += sbus.o |
| 68 | obj-$(CONFIG_SPARC64) += ebus.o |
| 69 | obj-$(CONFIG_SPARC64) += visemul.o |
| 70 | obj-$(CONFIG_SPARC64) += hvapi.o |
| 71 | obj-$(CONFIG_SPARC64) += sstate.o |
| 72 | obj-$(CONFIG_SPARC64) += mdesc.o |
Khalid Aziz | c6202ca | 2018-02-21 10:15:48 -0700 | [diff] [blame] | 73 | obj-$(CONFIG_SPARC64) += adi_64.o |
David S. Miller | 3eb8057 | 2009-01-21 21:30:23 -0800 | [diff] [blame] | 74 | obj-$(CONFIG_SPARC64) += pcr.o |
David S. Miller | e5553a6 | 2009-01-29 21:22:47 -0800 | [diff] [blame] | 75 | obj-$(CONFIG_SPARC64) += nmi.o |
Hong H. Pham | 280ff97 | 2009-06-04 02:10:11 -0700 | [diff] [blame] | 76 | obj-$(CONFIG_SPARC64_SMP) += cpumap.o |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 77 | |
Daniel Hellstrom | cfe3af5 | 2011-05-23 21:04:46 +0000 | [diff] [blame] | 78 | obj-$(CONFIG_PCIC_PCI) += pcic.o |
Daniel Hellstrom | 26893c1 | 2011-05-23 21:04:47 +0000 | [diff] [blame] | 79 | obj-$(CONFIG_LEON_PCI) += leon_pci.o |
Daniel Hellstrom | 1ab0a67 | 2013-03-05 07:04:21 +0000 | [diff] [blame] | 80 | obj-$(CONFIG_SPARC_GRPCI2)+= leon_pci_grpci2.o |
Daniel Hellstrom | d865010 | 2013-03-05 07:03:30 +0000 | [diff] [blame] | 81 | obj-$(CONFIG_SPARC_GRPCI1)+= leon_pci_grpci1.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 82 | |
| 83 | obj-$(CONFIG_SMP) += trampoline_$(BITS).o smp_$(BITS).o |
Konrad Eisele | 8401707 | 2009-08-31 22:08:13 +0000 | [diff] [blame] | 84 | obj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o leon_smp.o |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 85 | obj-$(CONFIG_SPARC64_SMP) += hvtramp.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 86 | |
| 87 | obj-y += auxio_$(BITS).o |
| 88 | obj-$(CONFIG_SUN_PM) += apc.o pmc.o |
| 89 | |
Sam Ravnborg | e6b04fe | 2008-12-26 15:38:17 -0800 | [diff] [blame] | 90 | obj-$(CONFIG_MODULES) += module.o |
Al Viro | d3867f04 | 2016-01-16 21:39:30 -0500 | [diff] [blame] | 91 | obj-$(CONFIG_MODULES) += sparc_ksyms.o |
Sam Ravnborg | d670bd4 | 2008-12-03 03:08:37 -0800 | [diff] [blame] | 92 | obj-$(CONFIG_SPARC_LED) += led.o |
| 93 | obj-$(CONFIG_KGDB) += kgdb_$(BITS).o |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 94 | |
| 95 | |
| 96 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o |
David S. Miller | 9960e9e | 2010-04-07 04:41:33 -0700 | [diff] [blame] | 97 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 98 | |
David S. Miller | c57ec52 | 2009-11-27 17:33:43 -0800 | [diff] [blame] | 99 | obj-$(CONFIG_EARLYFB) += btext.o |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 100 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
| 101 | # sparc64 PCI |
| 102 | obj-$(CONFIG_SPARC64_PCI) += pci.o pci_common.o psycho_common.o |
| 103 | obj-$(CONFIG_SPARC64_PCI) += pci_psycho.o pci_sabre.o pci_schizo.o |
| 104 | obj-$(CONFIG_SPARC64_PCI) += pci_sun4v.o pci_sun4v_asm.o pci_fire.o |
Thomas Petazzoni | a988fb8 | 2013-09-11 12:32:05 +0200 | [diff] [blame] | 105 | obj-$(CONFIG_SPARC64_PCI_MSI) += pci_msi.o |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 106 | |
| 107 | obj-$(CONFIG_COMPAT) += sys32.o sys_sparc32.o signal32.o |
| 108 | |
Sam Ravnborg | a88b5ba | 2008-12-03 03:11:52 -0800 | [diff] [blame] | 109 | obj-$(CONFIG_US3_MC) += chmc.o |
| 110 | |
| 111 | obj-$(CONFIG_KPROBES) += kprobes.o |
| 112 | obj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o |
| 113 | |
| 114 | obj-$(CONFIG_AUDIT) += audit.o |
| 115 | audit--$(CONFIG_AUDIT) := compat_audit.o |
| 116 | obj-$(CONFIG_COMPAT) += $(audit--y) |
David S. Miller | 59abbd1 | 2009-09-10 06:28:20 -0700 | [diff] [blame] | 117 | |
Ingo Molnar | cdd6c48 | 2009-09-21 12:02:48 +0200 | [diff] [blame] | 118 | pc--$(CONFIG_PERF_EVENTS) := perf_event.o |
David S. Miller | 59abbd1 | 2009-09-10 06:28:20 -0700 | [diff] [blame] | 119 | obj-$(CONFIG_SPARC64) += $(pc--y) |
David S. Miller | dff9d3c | 2010-09-17 11:09:25 -0400 | [diff] [blame] | 120 | |
Allen Pais | e8f4aa6 | 2016-10-13 10:06:13 +0530 | [diff] [blame] | 121 | obj-$(CONFIG_UPROBES) += uprobes.o |
Masahiro Yamada | e9666d1 | 2018-12-31 00:14:15 +0900 | [diff] [blame] | 122 | obj-$(CONFIG_JUMP_LABEL) += jump_label.o |