xref: /linux/arch/sparc/kernel/Makefile (revision 1d5d66825610bb7be23e2229731261c8e99eaa28)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2a988fb80SThomas Petazzoni
3f0e98c38SDavid S. Miller#
41da177e4SLinus Torvalds# Makefile for the linux kernel.
51da177e4SLinus Torvalds#
61da177e4SLinus Torvalds
7d670bd4fSSam Ravnborgasflags-y := -ansi
8d670bd4fSSam Ravnborgccflags-y := -Werror
91da177e4SLinus Torvalds
10d670bd4fSSam Ravnborgextra-y     := head_$(BITS).o
1151b563fcSSam Ravnborg
1251b563fcSSam Ravnborg# Undefine sparc when processing vmlinux.lds - it is used
1351b563fcSSam Ravnborg# And teach CPP we are doing $(BITS) builds (for this case)
1451b563fcSSam RavnborgCPPFLAGS_vmlinux.lds := -Usparc -m$(BITS)
15d670bd4fSSam Ravnborgextra-y              += vmlinux.lds
161da177e4SLinus Torvalds
17f8e8a8e8SDavid S. Millerifdef CONFIG_FUNCTION_TRACER
18f8e8a8e8SDavid S. Miller# Do not profile debug and lowlevel utilities
19f8e8a8e8SDavid S. MillerCFLAGS_REMOVE_ftrace.o := -pg
20f8e8a8e8SDavid S. MillerCFLAGS_REMOVE_time_$(BITS).o := -pg
21f8e8a8e8SDavid S. MillerCFLAGS_REMOVE_perf_event.o := -pg
22f8e8a8e8SDavid S. MillerCFLAGS_REMOVE_pcr.o := -pg
23f8e8a8e8SDavid S. Millerendif
24f8e8a8e8SDavid S. Miller
257cafc0b8SDavid S. Millerobj-$(CONFIG_SPARC64)   += urtt_fill.o
26d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += entry.o wof.o wuf.o
27d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += etrap_32.o
28d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += rtrap_32.o
29d670bd4fSSam Ravnborgobj-y                   += traps_$(BITS).o
305ea81769SAl Viro
31d670bd4fSSam Ravnborg# IRQ
32d670bd4fSSam Ravnborgobj-y                   += irq_$(BITS).o
332c1cfb2dSSam Ravnborgobj-$(CONFIG_SPARC32)   += sun4m_irq.o sun4d_irq.o
341da177e4SLinus Torvalds
35d670bd4fSSam Ravnborgobj-y                   += process_$(BITS).o
36a4261d4bSChristian Braunerobj-y                   += process.o
37d670bd4fSSam Ravnborgobj-y                   += signal_$(BITS).o
385598473aSDavid S. Millerobj-y                   += sigutil_$(BITS).o
39d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += ioport.o
40d670bd4fSSam Ravnborgobj-y                   += setup_$(BITS).o
41680e58f8SSam Ravnborgobj-y                   += idprom.o
42d670bd4fSSam Ravnborgobj-y                   += sys_sparc_$(BITS).o
43d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += systbls_32.o
44d670bd4fSSam Ravnborgobj-y                   += time_$(BITS).o
45d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += windows.o
46d34dd829SSam Ravnborgobj-y                   += cpu.o
479a08862aSNagarathnam Muthusamyobj-$(CONFIG_SPARC64)	+= vdso.o
48d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += devices.o
49d670bd4fSSam Ravnborgobj-y                   += ptrace_$(BITS).o
50d670bd4fSSam Ravnborgobj-y                   += unaligned_$(BITS).o
51d670bd4fSSam Ravnborgobj-y                   += una_asm_$(BITS).o
52dfa76060SDavid S. Millerobj-y                   += prom_common.o
53d670bd4fSSam Ravnborgobj-y                   += prom_$(BITS).o
54c9f5b7e7SRobert Reifobj-y                   += of_device_common.o
55d670bd4fSSam Ravnborgobj-y                   += of_device_$(BITS).o
565fce09c6SDavid S. Millerobj-$(CONFIG_SPARC64)   += prom_irqtrans.o
57d670bd4fSSam Ravnborg
585561cd26SSam Ravnborgobj-$(CONFIG_SPARC32)   += leon_kernel.o
59556626adSSam Ravnborgobj-$(CONFIG_SPARC32)   += leon_pmc.o
600fd7ef1fSKonrad Eisele
61a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += reboot.o
62a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += sysfs.o
630d3fdb15SChristoph Hellwigobj-$(CONFIG_SPARC64)   += iommu.o iommu-common.o
64a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += central.o
65a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += starfire.o
66a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += power.o
67a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += sbus.o
68a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += ebus.o
69a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += visemul.o
70a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += hvapi.o
71a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += sstate.o
72a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += mdesc.o
73c6202ca7SKhalid Azizobj-$(CONFIG_SPARC64)   += adi_64.o
743eb8057bSDavid S. Millerobj-$(CONFIG_SPARC64)	+= pcr.o
75e5553a6dSDavid S. Millerobj-$(CONFIG_SPARC64)	+= nmi.o
76280ff974SHong H. Phamobj-$(CONFIG_SPARC64_SMP) += cpumap.o
77a88b5ba8SSam Ravnborg
78cfe3af5dSDaniel Hellstromobj-$(CONFIG_PCIC_PCI)    += pcic.o
7926893c13SDaniel Hellstromobj-$(CONFIG_LEON_PCI)    += leon_pci.o
801ab0a676SDaniel Hellstromobj-$(CONFIG_SPARC_GRPCI2)+= leon_pci_grpci2.o
81d8650106SDaniel Hellstromobj-$(CONFIG_SPARC_GRPCI1)+= leon_pci_grpci1.o
82d670bd4fSSam Ravnborg
83d670bd4fSSam Ravnborgobj-$(CONFIG_SMP)         += trampoline_$(BITS).o smp_$(BITS).o
848401707fSKonrad Eiseleobj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o leon_smp.o
85a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_SMP) += hvtramp.o
86d670bd4fSSam Ravnborg
87d670bd4fSSam Ravnborgobj-y                     += auxio_$(BITS).o
881da177e4SLinus Torvaldsobj-$(CONFIG_SUN_PM)      += apc.o pmc.o
89d670bd4fSSam Ravnborg
90*1d5d6682SAl Viroobj-y                     += termios.o
91*1d5d6682SAl Viro
92e6b04fe0SSam Ravnborgobj-$(CONFIG_MODULES)     += module.o
93d3867f04SAl Viroobj-$(CONFIG_MODULES)     += sparc_ksyms.o
94ee1858d3SLars Kotthoffobj-$(CONFIG_SPARC_LED)   += led.o
95d670bd4fSSam Ravnborgobj-$(CONFIG_KGDB)        += kgdb_$(BITS).o
96a88b5ba8SSam Ravnborg
97a88b5ba8SSam Ravnborgobj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
989960e9e8SDavid S. Millerobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
99a88b5ba8SSam Ravnborg
100c57ec52fSDavid S. Millerobj-$(CONFIG_EARLYFB) += btext.o
101a88b5ba8SSam Ravnborgobj-$(CONFIG_STACKTRACE)     += stacktrace.o
102a88b5ba8SSam Ravnborg# sparc64 PCI
103a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI)    += pci.o pci_common.o psycho_common.o
104a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI)    += pci_psycho.o pci_sabre.o pci_schizo.o
105a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI)    += pci_sun4v.o pci_sun4v_asm.o pci_fire.o
106a988fb80SThomas Petazzoniobj-$(CONFIG_SPARC64_PCI_MSI) += pci_msi.o
107a88b5ba8SSam Ravnborg
108*1d5d6682SAl Viro
109a88b5ba8SSam Ravnborgobj-$(CONFIG_COMPAT)         += sys32.o sys_sparc32.o signal32.o
110a88b5ba8SSam Ravnborg
111a88b5ba8SSam Ravnborgobj-$(CONFIG_US3_MC)    += chmc.o
112a88b5ba8SSam Ravnborg
113a88b5ba8SSam Ravnborgobj-$(CONFIG_KPROBES)   += kprobes.o
114a88b5ba8SSam Ravnborgobj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o
115a88b5ba8SSam Ravnborg
116a88b5ba8SSam Ravnborgobj-$(CONFIG_AUDIT)     += audit.o
117a88b5ba8SSam Ravnborgaudit--$(CONFIG_AUDIT)  := compat_audit.o
118a88b5ba8SSam Ravnborgobj-$(CONFIG_COMPAT)    += $(audit--y)
11959abbd1eSDavid S. Miller
120cdd6c482SIngo Molnarpc--$(CONFIG_PERF_EVENTS) := perf_event.o
12159abbd1eSDavid S. Millerobj-$(CONFIG_SPARC64)	+= $(pc--y)
122dff9d3c2SDavid S. Miller
123e8f4aa60SAllen Paisobj-$(CONFIG_UPROBES)	+= uprobes.o
124e9666d10SMasahiro Yamadaobj-$(CONFIG_JUMP_LABEL) += jump_label.o
125