blob: d15cc1794b0ec4890d3f6f717680b3673e76a0a9 [file] [log] [blame]
Thomas Petazzonia988fb82013-09-11 12:32:05 +02001
David S. Millerf0e98c32008-03-03 15:01:05 -08002#
Linus Torvalds1da177e2005-04-16 15:20:36 -07003# Makefile for the linux kernel.
4#
5
Sam Ravnborgd670bd42008-12-03 03:08:37 -08006asflags-y := -ansi
7ccflags-y := -Werror
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
Sam Ravnborgd670bd42008-12-03 03:08:37 -08009extra-y := head_$(BITS).o
Sam Ravnborg51b563f2009-09-20 12:28:22 +020010
11# Undefine sparc when processing vmlinux.lds - it is used
12# And teach CPP we are doing $(BITS) builds (for this case)
13CPPFLAGS_vmlinux.lds := -Usparc -m$(BITS)
14extra-y += vmlinux.lds
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
David S. Millerf8e8a8e2010-04-06 17:34:15 -070016ifdef CONFIG_FUNCTION_TRACER
17# Do not profile debug and lowlevel utilities
18CFLAGS_REMOVE_ftrace.o := -pg
19CFLAGS_REMOVE_time_$(BITS).o := -pg
20CFLAGS_REMOVE_perf_event.o := -pg
21CFLAGS_REMOVE_pcr.o := -pg
22endif
23
Sam Ravnborgd670bd42008-12-03 03:08:37 -080024obj-$(CONFIG_SPARC32) += entry.o wof.o wuf.o
25obj-$(CONFIG_SPARC32) += etrap_32.o
26obj-$(CONFIG_SPARC32) += rtrap_32.o
27obj-y += traps_$(BITS).o
Al Viro5ea81762007-02-11 15:41:31 +000028
Sam Ravnborgd670bd42008-12-03 03:08:37 -080029# IRQ
30obj-y += irq_$(BITS).o
Sam Ravnborg2c1cfb22012-05-11 11:35:04 +000031obj-$(CONFIG_SPARC32) += sun4m_irq.o sun4d_irq.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
Sam Ravnborgd670bd42008-12-03 03:08:37 -080033obj-y += process_$(BITS).o
34obj-y += signal_$(BITS).o
David S. Miller55984732011-08-20 17:14:54 -070035obj-y += sigutil_$(BITS).o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080036obj-$(CONFIG_SPARC32) += ioport.o
37obj-y += setup_$(BITS).o
Sam Ravnborg680e58f2008-12-07 00:50:29 -080038obj-y += idprom.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080039obj-y += sys_sparc_$(BITS).o
40obj-$(CONFIG_SPARC32) += systbls_32.o
41obj-y += time_$(BITS).o
42obj-$(CONFIG_SPARC32) += windows.o
Sam Ravnborgd34dd822008-12-07 00:04:30 -080043obj-y += cpu.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080044obj-$(CONFIG_SPARC32) += devices.o
45obj-$(CONFIG_SPARC32) += tadpole.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080046obj-y += ptrace_$(BITS).o
47obj-y += unaligned_$(BITS).o
48obj-y += una_asm_$(BITS).o
David S. Millerdfa76062008-12-04 20:28:22 -080049obj-y += prom_common.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080050obj-y += prom_$(BITS).o
Robert Reifc9f5b7e2009-06-04 02:00:02 -070051obj-y += of_device_common.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080052obj-y += of_device_$(BITS).o
David S. Miller5fce09c2008-12-05 00:43:03 -080053obj-$(CONFIG_SPARC64) += prom_irqtrans.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080054
Sam Ravnborg5561cd22012-05-25 21:20:13 +000055obj-$(CONFIG_SPARC32) += leon_kernel.o
Sam Ravnborg556626a2012-05-26 04:43:27 +000056obj-$(CONFIG_SPARC32) += leon_pmc.o
Konrad Eisele0fd7ef12009-08-17 00:13:31 +000057
Sam Ravnborga88b5ba2008-12-03 03:11:52 -080058obj-$(CONFIG_SPARC64) += reboot.o
59obj-$(CONFIG_SPARC64) += sysfs.o
60obj-$(CONFIG_SPARC64) += iommu.o
61obj-$(CONFIG_SPARC64) += central.o
62obj-$(CONFIG_SPARC64) += starfire.o
63obj-$(CONFIG_SPARC64) += power.o
64obj-$(CONFIG_SPARC64) += sbus.o
65obj-$(CONFIG_SPARC64) += ebus.o
66obj-$(CONFIG_SPARC64) += visemul.o
67obj-$(CONFIG_SPARC64) += hvapi.o
68obj-$(CONFIG_SPARC64) += sstate.o
69obj-$(CONFIG_SPARC64) += mdesc.o
David S. Miller3eb80572009-01-21 21:30:23 -080070obj-$(CONFIG_SPARC64) += pcr.o
David S. Millere5553a62009-01-29 21:22:47 -080071obj-$(CONFIG_SPARC64) += nmi.o
Hong H. Pham280ff972009-06-04 02:10:11 -070072obj-$(CONFIG_SPARC64_SMP) += cpumap.o
Sam Ravnborga88b5ba2008-12-03 03:11:52 -080073
FUJITA Tomonori451d7402009-08-10 11:53:17 +090074obj-y += dma.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080075
Daniel Hellstromcfe3af52011-05-23 21:04:46 +000076obj-$(CONFIG_PCIC_PCI) += pcic.o
Daniel Hellstrom26893c12011-05-23 21:04:47 +000077obj-$(CONFIG_LEON_PCI) += leon_pci.o
Daniel Hellstrom1ab0a672013-03-05 07:04:21 +000078obj-$(CONFIG_SPARC_GRPCI2)+= leon_pci_grpci2.o
Daniel Hellstromd8650102013-03-05 07:03:30 +000079obj-$(CONFIG_SPARC_GRPCI1)+= leon_pci_grpci1.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080080
81obj-$(CONFIG_SMP) += trampoline_$(BITS).o smp_$(BITS).o
Konrad Eisele84017072009-08-31 22:08:13 +000082obj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o leon_smp.o
Sam Ravnborga88b5ba2008-12-03 03:11:52 -080083obj-$(CONFIG_SPARC64_SMP) += hvtramp.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080084
85obj-y += auxio_$(BITS).o
86obj-$(CONFIG_SUN_PM) += apc.o pmc.o
87
Sam Ravnborge6b04fe2008-12-26 15:38:17 -080088obj-$(CONFIG_MODULES) += module.o
Sam Ravnborgd670bd42008-12-03 03:08:37 -080089obj-$(CONFIG_MODULES) += sparc_ksyms_$(BITS).o
90obj-$(CONFIG_SPARC_LED) += led.o
91obj-$(CONFIG_KGDB) += kgdb_$(BITS).o
Sam Ravnborga88b5ba2008-12-03 03:11:52 -080092
93
94obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
David S. Miller9960e9e2010-04-07 04:41:33 -070095obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
Sam Ravnborga88b5ba2008-12-03 03:11:52 -080096
David S. Millerc57ec522009-11-27 17:33:43 -080097obj-$(CONFIG_EARLYFB) += btext.o
Sam Ravnborga88b5ba2008-12-03 03:11:52 -080098obj-$(CONFIG_STACKTRACE) += stacktrace.o
99# sparc64 PCI
100obj-$(CONFIG_SPARC64_PCI) += pci.o pci_common.o psycho_common.o
101obj-$(CONFIG_SPARC64_PCI) += pci_psycho.o pci_sabre.o pci_schizo.o
102obj-$(CONFIG_SPARC64_PCI) += pci_sun4v.o pci_sun4v_asm.o pci_fire.o
Thomas Petazzonia988fb82013-09-11 12:32:05 +0200103obj-$(CONFIG_SPARC64_PCI_MSI) += pci_msi.o
Sam Ravnborga88b5ba2008-12-03 03:11:52 -0800104
105obj-$(CONFIG_COMPAT) += sys32.o sys_sparc32.o signal32.o
106
Sam Ravnborga88b5ba2008-12-03 03:11:52 -0800107obj-$(CONFIG_US3_MC) += chmc.o
108
109obj-$(CONFIG_KPROBES) += kprobes.o
110obj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o
111
112obj-$(CONFIG_AUDIT) += audit.o
113audit--$(CONFIG_AUDIT) := compat_audit.o
114obj-$(CONFIG_COMPAT) += $(audit--y)
David S. Miller59abbd12009-09-10 06:28:20 -0700115
Ingo Molnarcdd6c482009-09-21 12:02:48 +0200116pc--$(CONFIG_PERF_EVENTS) := perf_event.o
David S. Miller59abbd12009-09-10 06:28:20 -0700117obj-$(CONFIG_SPARC64) += $(pc--y)
David S. Millerdff9d3c2010-09-17 11:09:25 -0400118
119obj-$(CONFIG_SPARC64) += jump_label.o