2008-03-04 07:01:05 +08:00
|
|
|
#
|
2005-04-17 06:20:36 +08:00
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
|
|
|
|
2008-12-03 19:08:37 +08:00
|
|
|
asflags-y := -ansi
|
|
|
|
ccflags-y := -Werror
|
|
|
|
|
|
|
|
extra-y := head_$(BITS).o
|
2008-12-05 05:28:09 +08:00
|
|
|
extra-y += init_task.o
|
2008-12-03 19:08:37 +08:00
|
|
|
extra-y += vmlinux.lds
|
|
|
|
|
|
|
|
obj-$(CONFIG_SPARC32) += entry.o wof.o wuf.o
|
|
|
|
obj-$(CONFIG_SPARC32) += etrap_32.o
|
|
|
|
obj-$(CONFIG_SPARC32) += rtrap_32.o
|
|
|
|
obj-y += traps_$(BITS).o
|
|
|
|
|
|
|
|
# IRQ
|
|
|
|
obj-y += irq_$(BITS).o
|
|
|
|
obj-$(CONFIG_SPARC32) += sun4m_irq.o sun4c_irq.o sun4d_irq.o
|
|
|
|
|
|
|
|
obj-y += process_$(BITS).o
|
|
|
|
obj-y += signal_$(BITS).o
|
|
|
|
obj-$(CONFIG_SPARC32) += ioport.o
|
|
|
|
obj-y += setup_$(BITS).o
|
2008-12-07 16:50:29 +08:00
|
|
|
obj-y += idprom.o
|
2008-12-03 19:08:37 +08:00
|
|
|
obj-y += sys_sparc_$(BITS).o
|
|
|
|
obj-$(CONFIG_SPARC32) += systbls_32.o
|
|
|
|
obj-y += time_$(BITS).o
|
|
|
|
obj-$(CONFIG_SPARC32) += windows.o
|
2008-12-07 16:04:30 +08:00
|
|
|
obj-y += cpu.o
|
2008-12-03 19:08:37 +08:00
|
|
|
obj-$(CONFIG_SPARC32) += devices.o
|
|
|
|
obj-$(CONFIG_SPARC32) += tadpole.o
|
|
|
|
obj-$(CONFIG_SPARC32) += tick14.o
|
|
|
|
obj-y += ptrace_$(BITS).o
|
|
|
|
obj-y += unaligned_$(BITS).o
|
|
|
|
obj-y += una_asm_$(BITS).o
|
|
|
|
obj-$(CONFIG_SPARC32) += muldiv.o
|
2008-12-05 12:28:22 +08:00
|
|
|
obj-y += prom_common.o
|
2008-12-03 19:08:37 +08:00
|
|
|
obj-y += prom_$(BITS).o
|
|
|
|
obj-y += of_device_$(BITS).o
|
2008-12-05 16:43:03 +08:00
|
|
|
obj-$(CONFIG_SPARC64) += prom_irqtrans.o
|
2008-12-03 19:08:37 +08:00
|
|
|
|
2008-12-03 19:11:52 +08:00
|
|
|
obj-$(CONFIG_SPARC64) += reboot.o
|
|
|
|
obj-$(CONFIG_SPARC64) += sysfs.o
|
|
|
|
obj-$(CONFIG_SPARC64) += iommu.o
|
|
|
|
obj-$(CONFIG_SPARC64) += central.o
|
|
|
|
obj-$(CONFIG_SPARC64) += starfire.o
|
|
|
|
obj-$(CONFIG_SPARC64) += power.o
|
|
|
|
obj-$(CONFIG_SPARC64) += sbus.o
|
|
|
|
obj-$(CONFIG_SPARC64) += ebus.o
|
|
|
|
obj-$(CONFIG_SPARC64) += visemul.o
|
|
|
|
obj-$(CONFIG_SPARC64) += hvapi.o
|
|
|
|
obj-$(CONFIG_SPARC64) += sstate.o
|
|
|
|
obj-$(CONFIG_SPARC64) += mdesc.o
|
2009-01-22 13:30:23 +08:00
|
|
|
obj-$(CONFIG_SPARC64) += pcr.o
|
2009-01-30 13:22:47 +08:00
|
|
|
obj-$(CONFIG_SPARC64) += nmi.o
|
2009-06-04 17:10:11 +08:00
|
|
|
obj-$(CONFIG_SPARC64_SMP) += cpumap.o
|
2008-12-03 19:11:52 +08:00
|
|
|
|
2008-12-03 19:08:37 +08:00
|
|
|
# sparc32 do not use GENERIC_HARDIRQS but uses the generic devres implementation
|
|
|
|
obj-$(CONFIG_SPARC32) += devres.o
|
|
|
|
devres-y := ../../../kernel/irq/devres.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_SPARC32) += dma.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_SPARC32_PCI) += pcic.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_SMP) += trampoline_$(BITS).o smp_$(BITS).o
|
|
|
|
obj-$(CONFIG_SPARC32_SMP) += sun4m_smp.o sun4d_smp.o
|
2008-12-03 19:11:52 +08:00
|
|
|
obj-$(CONFIG_SPARC64_SMP) += hvtramp.o
|
2008-12-03 19:08:37 +08:00
|
|
|
|
|
|
|
obj-y += auxio_$(BITS).o
|
|
|
|
obj-$(CONFIG_SUN_PM) += apc.o pmc.o
|
|
|
|
|
2008-12-27 07:38:17 +08:00
|
|
|
obj-$(CONFIG_MODULES) += module.o
|
2008-12-03 19:08:37 +08:00
|
|
|
obj-$(CONFIG_MODULES) += sparc_ksyms_$(BITS).o
|
|
|
|
obj-$(CONFIG_SPARC_LED) += led.o
|
|
|
|
obj-$(CONFIG_KGDB) += kgdb_$(BITS).o
|
2008-12-03 19:11:52 +08:00
|
|
|
|
|
|
|
|
|
|
|
obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
|
|
|
|
CFLAGS_REMOVE_ftrace.o := -pg
|
|
|
|
|
|
|
|
obj-$(CONFIG_STACKTRACE) += stacktrace.o
|
|
|
|
# sparc64 PCI
|
|
|
|
obj-$(CONFIG_SPARC64_PCI) += pci.o pci_common.o psycho_common.o
|
|
|
|
obj-$(CONFIG_SPARC64_PCI) += pci_psycho.o pci_sabre.o pci_schizo.o
|
|
|
|
obj-$(CONFIG_SPARC64_PCI) += pci_sun4v.o pci_sun4v_asm.o pci_fire.o
|
|
|
|
obj-$(CONFIG_PCI_MSI) += pci_msi.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_COMPAT) += sys32.o sys_sparc32.o signal32.o
|
|
|
|
|
|
|
|
# sparc64 cpufreq
|
|
|
|
obj-$(CONFIG_US3_FREQ) += us3_cpufreq.o
|
|
|
|
obj-$(CONFIG_US2E_FREQ) += us2e_cpufreq.o
|
|
|
|
obj-$(CONFIG_US3_MC) += chmc.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_KPROBES) += kprobes.o
|
|
|
|
obj-$(CONFIG_SUN_LDOMS) += ldc.o vio.o viohs.o ds.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_AUDIT) += audit.o
|
|
|
|
audit--$(CONFIG_AUDIT) := compat_audit.o
|
|
|
|
obj-$(CONFIG_COMPAT) += $(audit--y)
|