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 951b563fcSSam Ravnborg 1051b563fcSSam Ravnborg# Undefine sparc when processing vmlinux.lds - it is used 1151b563fcSSam Ravnborg# And teach CPP we are doing $(BITS) builds (for this case) 1251b563fcSSam RavnborgCPPFLAGS_vmlinux.lds := -Usparc -m$(BITS) 13d670bd4fSSam Ravnborgextra-y += vmlinux.lds 141da177e4SLinus Torvalds 15f8e8a8e8SDavid S. Millerifdef CONFIG_FUNCTION_TRACER 16f8e8a8e8SDavid S. Miller# Do not profile debug and lowlevel utilities 17f8e8a8e8SDavid S. MillerCFLAGS_REMOVE_ftrace.o := -pg 18f8e8a8e8SDavid S. MillerCFLAGS_REMOVE_time_$(BITS).o := -pg 19f8e8a8e8SDavid S. MillerCFLAGS_REMOVE_perf_event.o := -pg 20f8e8a8e8SDavid S. MillerCFLAGS_REMOVE_pcr.o := -pg 21f8e8a8e8SDavid S. Millerendif 22f8e8a8e8SDavid S. Miller 23d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32) += entry.o wof.o wuf.o 24d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32) += etrap_32.o 25d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32) += rtrap_32.o 26d670bd4fSSam Ravnborgobj-y += traps_$(BITS).o 275ea81769SAl Viro 28d670bd4fSSam Ravnborg# IRQ 29d670bd4fSSam Ravnborgobj-y += irq_$(BITS).o 302c1cfb2dSSam Ravnborgobj-$(CONFIG_SPARC32) += sun4m_irq.o sun4d_irq.o 311da177e4SLinus Torvalds 32d670bd4fSSam Ravnborgobj-y += process_$(BITS).o 33d670bd4fSSam Ravnborgobj-y += signal_$(BITS).o 345598473aSDavid S. Millerobj-y += sigutil_$(BITS).o 35d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32) += ioport.o 36d670bd4fSSam Ravnborgobj-y += setup_$(BITS).o 37680e58f8SSam Ravnborgobj-y += idprom.o 38d670bd4fSSam Ravnborgobj-y += sys_sparc_$(BITS).o 39d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32) += systbls_32.o 40d670bd4fSSam Ravnborgobj-y += time_$(BITS).o 41d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32) += windows.o 42d34dd829SSam Ravnborgobj-y += cpu.o 43d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32) += devices.o 44d670bd4fSSam Ravnborgobj-$(CONFIG_SPARC32) += tadpole.o 45d670bd4fSSam Ravnborgobj-y += ptrace_$(BITS).o 46d670bd4fSSam Ravnborgobj-y += unaligned_$(BITS).o 47d670bd4fSSam Ravnborgobj-y += una_asm_$(BITS).o 48dfa76060SDavid S. Millerobj-y += prom_common.o 49d670bd4fSSam Ravnborgobj-y += prom_$(BITS).o 50c9f5b7e7SRobert Reifobj-y += of_device_common.o 51d670bd4fSSam Ravnborgobj-y += of_device_$(BITS).o 525fce09c6SDavid S. Millerobj-$(CONFIG_SPARC64) += prom_irqtrans.o 53d670bd4fSSam Ravnborg 54*5561cd26SSam Ravnborgobj-$(CONFIG_SPARC32) += leon_kernel.o 557279b82cSDaniel Hellstromobj-$(CONFIG_SPARC_LEON)+= leon_pmc.o 560fd7ef1fSKonrad Eisele 57a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += reboot.o 58a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += sysfs.o 59a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += iommu.o 60a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += central.o 61a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += starfire.o 62a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += power.o 63a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += sbus.o 64a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += ebus.o 65a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += visemul.o 66a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += hvapi.o 67a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += sstate.o 68a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64) += mdesc.o 693eb8057bSDavid S. Millerobj-$(CONFIG_SPARC64) += pcr.o 70e5553a6dSDavid S. Millerobj-$(CONFIG_SPARC64) += nmi.o 71280ff974SHong H. Phamobj-$(CONFIG_SPARC64_SMP) += cpumap.o 72a88b5ba8SSam Ravnborg 73451d7400SFUJITA Tomonoriobj-y += dma.o 74d670bd4fSSam Ravnborg 75cfe3af5dSDaniel Hellstromobj-$(CONFIG_PCIC_PCI) += pcic.o 7626893c13SDaniel Hellstromobj-$(CONFIG_LEON_PCI) += leon_pci.o 775d07b786SDaniel Hellstromobj-$(CONFIG_GRPCI2) += leon_pci_grpci2.o 78d670bd4fSSam Ravnborg 79d670bd4fSSam Ravnborgobj-$(CONFIG_SMP) += trampoline_$(BITS).o smp_$(BITS).o 808401707fSKonrad Eiseleobj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o leon_smp.o 81a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_SMP) += hvtramp.o 82d670bd4fSSam Ravnborg 83d670bd4fSSam Ravnborgobj-y += auxio_$(BITS).o 841da177e4SLinus Torvaldsobj-$(CONFIG_SUN_PM) += apc.o pmc.o 85d670bd4fSSam Ravnborg 86e6b04fe0SSam Ravnborgobj-$(CONFIG_MODULES) += module.o 87d670bd4fSSam Ravnborgobj-$(CONFIG_MODULES) += sparc_ksyms_$(BITS).o 88ee1858d3SLars Kotthoffobj-$(CONFIG_SPARC_LED) += led.o 89d670bd4fSSam Ravnborgobj-$(CONFIG_KGDB) += kgdb_$(BITS).o 90a88b5ba8SSam Ravnborg 91a88b5ba8SSam Ravnborg 92a88b5ba8SSam Ravnborgobj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 939960e9e8SDavid S. Millerobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o 94a88b5ba8SSam Ravnborg 95c57ec52fSDavid S. Millerobj-$(CONFIG_EARLYFB) += btext.o 96a88b5ba8SSam Ravnborgobj-$(CONFIG_STACKTRACE) += stacktrace.o 97a88b5ba8SSam Ravnborg# sparc64 PCI 98a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI) += pci.o pci_common.o psycho_common.o 99a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI) += pci_psycho.o pci_sabre.o pci_schizo.o 100a88b5ba8SSam Ravnborgobj-$(CONFIG_SPARC64_PCI) += pci_sun4v.o pci_sun4v_asm.o pci_fire.o 101a88b5ba8SSam Ravnborgobj-$(CONFIG_PCI_MSI) += pci_msi.o 102a88b5ba8SSam Ravnborg 103a88b5ba8SSam Ravnborgobj-$(CONFIG_COMPAT) += sys32.o sys_sparc32.o signal32.o 104a88b5ba8SSam Ravnborg 105a88b5ba8SSam Ravnborg# sparc64 cpufreq 106a88b5ba8SSam Ravnborgobj-$(CONFIG_US3_FREQ) += us3_cpufreq.o 107a88b5ba8SSam Ravnborgobj-$(CONFIG_US2E_FREQ) += us2e_cpufreq.o 108a88b5ba8SSam Ravnborgobj-$(CONFIG_US3_MC) += chmc.o 109a88b5ba8SSam Ravnborg 110a88b5ba8SSam Ravnborgobj-$(CONFIG_KPROBES) += kprobes.o 111a88b5ba8SSam Ravnborgobj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o 112a88b5ba8SSam Ravnborg 113a88b5ba8SSam Ravnborgobj-$(CONFIG_AUDIT) += audit.o 114a88b5ba8SSam Ravnborgaudit--$(CONFIG_AUDIT) := compat_audit.o 115a88b5ba8SSam Ravnborgobj-$(CONFIG_COMPAT) += $(audit--y) 11659abbd1eSDavid S. Miller 117cdd6c482SIngo Molnarpc--$(CONFIG_PERF_EVENTS) := perf_event.o 11859abbd1eSDavid S. Millerobj-$(CONFIG_SPARC64) += $(pc--y) 119dff9d3c2SDavid S. Miller 120dff9d3c2SDavid S. Millerobj-$(CONFIG_SPARC64) += jump_label.o 121