xref: /linux/arch/sparc/kernel/Makefile (revision a88b5ba8bd8ac18aad65ee6c6a254e2e74876db3)
1f0e98c38SDavid S. Miller#
21da177e4SLinus Torvalds# Makefile for the linux kernel.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
5d670bd4fSSam Ravnborgasflags-y := -ansi
6d670bd4fSSam Ravnborgccflags-y := -Werror
71da177e4SLinus Torvalds
8d670bd4fSSam Ravnborgextra-y     := head_$(BITS).o
9d670bd4fSSam Ravnborgextra-y     += init_task_$(BITS).o
10d670bd4fSSam Ravnborgextra-y     += vmlinux.lds
111da177e4SLinus Torvalds
12d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += entry.o wof.o wuf.o
13d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += etrap_32.o
14d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += rtrap_32.o
15d670bd4fSSam Ravnborgobj-y                   += traps_$(BITS).o
165ea81769SAl Viro
17d670bd4fSSam Ravnborg# IRQ
18d670bd4fSSam Ravnborgobj-y                   += irq_$(BITS).o
19d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += sun4m_irq.o sun4c_irq.o sun4d_irq.o
201da177e4SLinus Torvalds
21d670bd4fSSam Ravnborgobj-y                   += process_$(BITS).o
22d670bd4fSSam Ravnborgobj-y                   += signal_$(BITS).o
23d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += ioport.o
24d670bd4fSSam Ravnborgobj-y                   += setup_$(BITS).o
25d670bd4fSSam Ravnborgobj-y                   += idprom_$(BITS).o
26d670bd4fSSam Ravnborgobj-y                   += sys_sparc_$(BITS).o
27d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += systbls_32.o
28d670bd4fSSam Ravnborgobj-y                   += time_$(BITS).o
29d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += windows.o
30d670bd4fSSam Ravnborgobj-y                   += cpu_$(BITS).o
31d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += devices.o
32d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += tadpole.o
33d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += tick14.o
34d670bd4fSSam Ravnborgobj-y                   += ptrace_$(BITS).o
35d670bd4fSSam Ravnborgobj-y                   += unaligned_$(BITS).o
36d670bd4fSSam Ravnborgobj-y                   += una_asm_$(BITS).o
37d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += muldiv.o
38d670bd4fSSam Ravnborgobj-y                   += prom_$(BITS).o
39d670bd4fSSam Ravnborgobj-y                   += of_device_$(BITS).o
40d670bd4fSSam Ravnborg
41*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += reboot.o
42*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += sysfs.o
43*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += iommu.o
44*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += central.o
45*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += starfire.o
46*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += power.o
47*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += sbus.o
48*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += ebus.o
49*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += visemul.o
50*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += hvapi.o
51*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += sstate.o
52*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64)   += mdesc.o
53*a88b5ba8SSam Ravnborg
54d670bd4fSSam Ravnborg# sparc32 do not use GENERIC_HARDIRQS but uses the generic devres implementation
55d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)     += devres.o
56d670bd4fSSam Ravnborgdevres-y                  := ../../../kernel/irq/devres.o
57d670bd4fSSam Ravnborg
58d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)     += dma.o
59d670bd4fSSam Ravnborg
60d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32_PCI) += pcic.o
61d670bd4fSSam Ravnborg
62d670bd4fSSam Ravnborgobj-$(CONFIG_SMP)         += trampoline_$(BITS).o smp_$(BITS).o
63d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o
64*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_SMP) += hvtramp.o
65d670bd4fSSam Ravnborg
66d670bd4fSSam Ravnborgobj-y                     += auxio_$(BITS).o
671da177e4SLinus Torvaldsobj-$(CONFIG_SUN_PM)      += apc.o pmc.o
68d670bd4fSSam Ravnborg
69d670bd4fSSam Ravnborgobj-$(CONFIG_MODULES)     += module_$(BITS).o
70d670bd4fSSam Ravnborgobj-$(CONFIG_MODULES)     += sparc_ksyms_$(BITS).o
71ee1858d3SLars Kotthoffobj-$(CONFIG_SPARC_LED)   += led.o
72d670bd4fSSam Ravnborgobj-$(CONFIG_KGDB)        += kgdb_$(BITS).o
73*a88b5ba8SSam Ravnborg
74*a88b5ba8SSam Ravnborg
75*a88b5ba8SSam Ravnborgobj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
76*a88b5ba8SSam RavnborgCFLAGS_REMOVE_ftrace.o := -pg
77*a88b5ba8SSam Ravnborg
78*a88b5ba8SSam Ravnborgobj-$(CONFIG_STACKTRACE)     += stacktrace.o
79*a88b5ba8SSam Ravnborg# sparc64 PCI
80*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI)    += pci.o pci_common.o psycho_common.o
81*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI)    += pci_psycho.o pci_sabre.o pci_schizo.o
82*a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI)    += pci_sun4v.o pci_sun4v_asm.o pci_fire.o
83*a88b5ba8SSam Ravnborgobj-$(CONFIG_PCI_MSI)        += pci_msi.o
84*a88b5ba8SSam Ravnborg
85*a88b5ba8SSam Ravnborgobj-$(CONFIG_COMPAT)         += sys32.o sys_sparc32.o signal32.o
86*a88b5ba8SSam Ravnborg
87*a88b5ba8SSam Ravnborg# sparc64 cpufreq
88*a88b5ba8SSam Ravnborgobj-$(CONFIG_US3_FREQ)  += us3_cpufreq.o
89*a88b5ba8SSam Ravnborgobj-$(CONFIG_US2E_FREQ) += us2e_cpufreq.o
90*a88b5ba8SSam Ravnborgobj-$(CONFIG_US3_MC)    += chmc.o
91*a88b5ba8SSam Ravnborg
92*a88b5ba8SSam Ravnborgobj-$(CONFIG_KPROBES)   += kprobes.o
93*a88b5ba8SSam Ravnborgobj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o
94*a88b5ba8SSam Ravnborg
95*a88b5ba8SSam Ravnborgobj-$(CONFIG_AUDIT)     += audit.o
96*a88b5ba8SSam Ravnborgaudit--$(CONFIG_AUDIT)  := compat_audit.o
97*a88b5ba8SSam Ravnborgobj-$(CONFIG_COMPAT)    += $(audit--y)
98