xref: /linux/arch/sparc/kernel/Makefile (revision d670bd4f803c8b646acd20f3ba21e65458293faf)
1f0e98c38SDavid S. Miller#
21da177e4SLinus Torvalds# Makefile for the linux kernel.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
5*d670bd4fSSam Ravnborgasflags-y := -ansi
6*d670bd4fSSam Ravnborgccflags-y := -Werror
71da177e4SLinus Torvalds
8*d670bd4fSSam Ravnborgextra-y     := head_$(BITS).o
9*d670bd4fSSam Ravnborgextra-y     += init_task_$(BITS).o
10*d670bd4fSSam Ravnborgextra-y     += vmlinux.lds
111da177e4SLinus Torvalds
12*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += entry.o wof.o wuf.o
13*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += etrap_32.o
14*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += rtrap_32.o
15*d670bd4fSSam Ravnborgobj-y                   += traps_$(BITS).o
165ea81769SAl Viro
17*d670bd4fSSam Ravnborg# IRQ
18*d670bd4fSSam Ravnborgobj-y                   += irq_$(BITS).o
19*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += sun4m_irq.o sun4c_irq.o sun4d_irq.o
201da177e4SLinus Torvalds
21*d670bd4fSSam Ravnborgobj-y                   += process_$(BITS).o
22*d670bd4fSSam Ravnborgobj-y                   += signal_$(BITS).o
23*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += ioport.o
24*d670bd4fSSam Ravnborgobj-y                   += setup_$(BITS).o
25*d670bd4fSSam Ravnborgobj-y                   += idprom_$(BITS).o
26*d670bd4fSSam Ravnborgobj-y                   += sys_sparc_$(BITS).o
27*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += systbls_32.o
28*d670bd4fSSam Ravnborgobj-y                   += time_$(BITS).o
29*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += windows.o
30*d670bd4fSSam Ravnborgobj-y                   += cpu_$(BITS).o
31*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += devices.o
32*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += tadpole.o
33*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += tick14.o
34*d670bd4fSSam Ravnborgobj-y                   += ptrace_$(BITS).o
35*d670bd4fSSam Ravnborgobj-y                   += unaligned_$(BITS).o
36*d670bd4fSSam Ravnborgobj-y                   += una_asm_$(BITS).o
37*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)   += muldiv.o
38*d670bd4fSSam Ravnborgobj-y                   += prom_$(BITS).o
39*d670bd4fSSam Ravnborgobj-y                   += of_device_$(BITS).o
40*d670bd4fSSam Ravnborg
41*d670bd4fSSam Ravnborg# sparc32 do not use GENERIC_HARDIRQS but uses the generic devres implementation
42*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)     += devres.o
43*d670bd4fSSam Ravnborgdevres-y                  := ../../../kernel/irq/devres.o
44*d670bd4fSSam Ravnborg
45*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32)     += dma.o
46*d670bd4fSSam Ravnborg
47*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32_PCI) += pcic.o
48*d670bd4fSSam Ravnborg
49*d670bd4fSSam Ravnborgobj-$(CONFIG_SMP)         += trampoline_$(BITS).o smp_$(BITS).o
50*d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o
51*d670bd4fSSam Ravnborg
52*d670bd4fSSam Ravnborgobj-y                     += auxio_$(BITS).o
531da177e4SLinus Torvaldsobj-$(CONFIG_SUN_PM)      += apc.o pmc.o
54*d670bd4fSSam Ravnborg
55*d670bd4fSSam Ravnborgobj-$(CONFIG_MODULES)     += module_$(BITS).o
56*d670bd4fSSam Ravnborgobj-$(CONFIG_MODULES)     += sparc_ksyms_$(BITS).o
57ee1858d3SLars Kotthoffobj-$(CONFIG_SPARC_LED)   += led.o
58*d670bd4fSSam Ravnborgobj-$(CONFIG_KGDB)        += kgdb_$(BITS).o
59