#
# Makefile for the linux kernel.
#
asflags-y := -ansi
ccflags-y := -Werror
extra-y := head_$(BITS).o
# Undefine sparc when processing vmlinux.lds - it is used
# And teach CPP we are doing $(BITS) builds (for this case)
CPPFLAGS_vmlinux.lds := -Usparc -m$(BITS)
extra-y += vmlinux.lds
ifdef [31mCONFIG_FUNCTION_TRACER[0m
# Do not profile debug and lowlevel utilities
CFLAGS_REMOVE_ftrace.o := -pg
CFLAGS_REMOVE_time_$(BITS).o := -pg
CFLAGS_REMOVE_perf_event.o := -pg
CFLAGS_REMOVE_pcr.o := -pg
endif
obj-$([31mCONFIG_SPARC64[0m) += urtt_fill.o
obj-$([31mCONFIG_SPARC32[0m) += entry.o wof.o wuf.o
obj-$([31mCONFIG_SPARC32[0m) += etrap_32.o
obj-$([31mCONFIG_SPARC32[0m) += rtrap_32.o
obj-y += traps_$(BITS).o
# IRQ
obj-y += irq_$(BITS).o
obj-$([31mCONFIG_SPARC32[0m) += sun4m_irq.o sun4d_irq.o
obj-y += process_$(BITS).o
obj-y += signal_$(BITS).o
obj-y += sigutil_$(BITS).o
obj-$([31mCONFIG_SPARC32[0m) += ioport.o
obj-y += setup_$(BITS).o
obj-y += idprom.o
obj-y += sys_sparc_$(BITS).o
obj-$([31mCONFIG_SPARC32[0m) += systbls_32.o
obj-y += time_$(BITS).o
obj-$([31mCONFIG_SPARC32[0m) += windows.o
obj-y += cpu.o
obj-$([31mCONFIG_SPARC32[0m) += devices.o
obj-y += ptrace_$(BITS).o
obj-y += unaligned_$(BITS).o
obj-y += una_asm_$(BITS).o
obj-y += prom_common.o
obj-y += prom_$(BITS).o
obj-y += of_device_common.o
obj-y += of_device_$(BITS).o
obj-$([31mCONFIG_SPARC64[0m) += prom_irqtrans.o
obj-$([31mCONFIG_SPARC32[0m) += leon_kernel.o
obj-$([31mCONFIG_SPARC32[0m) += leon_pmc.o
obj-$([31mCONFIG_SPARC64[0m) += reboot.o
obj-$([31mCONFIG_SPARC64[0m) += sysfs.o
obj-$([31mCONFIG_SPARC64[0m) += iommu.o
obj-$([31mCONFIG_SPARC64[0m) += central.o
obj-$([31mCONFIG_SPARC64[0m) += starfire.o
obj-$([31mCONFIG_SPARC64[0m) += power.o
obj-$([31mCONFIG_SPARC64[0m) += sbus.o
obj-$([31mCONFIG_SPARC64[0m) += ebus.o
obj-$([31mCONFIG_SPARC64[0m) += visemul.o
obj-$([31mCONFIG_SPARC64[0m) += hvapi.o
obj-$([31mCONFIG_SPARC64[0m) += sstate.o
obj-$([31mCONFIG_SPARC64[0m) += mdesc.o
obj-$([31mCONFIG_SPARC64[0m) += pcr.o
obj-$([31mCONFIG_SPARC64[0m) += nmi.o
obj-$([31mCONFIG_SPARC64_SMP[0m) += cpumap.o
obj-y += dma.o
obj-$([31mCONFIG_PCIC_PCI[0m) += pcic.o
obj-$([31mCONFIG_LEON_PCI[0m) += leon_pci.o
obj-$([31mCONFIG_SPARC_GRPCI2[0m)+= leon_pci_grpci2.o
obj-$([31mCONFIG_SPARC_GRPCI1[0m)+= leon_pci_grpci1.o
obj-$([31mCONFIG_SMP[0m) += trampoline_$(BITS).o smp_$(BITS).o
obj-$([31mCONFIG_SPARC32_SMP[0m) += sun4m_smp.o sun4d_smp.o leon_smp.o
obj-$([31mCONFIG_SPARC64_SMP[0m) += hvtramp.o
obj-y += auxio_$(BITS).o
obj-$([31mCONFIG_SUN_PM[0m) += apc.o pmc.o
obj-$([31mCONFIG_MODULES[0m) += module.o
obj-$([31mCONFIG_MODULES[0m) += sparc_ksyms.o
obj-$([31mCONFIG_SPARC_LED[0m) += led.o
obj-$([31mCONFIG_KGDB[0m) += kgdb_$(BITS).o
obj-$([31mCONFIG_DYNAMIC_FTRACE[0m) += ftrace.o
obj-$([31mCONFIG_FUNCTION_GRAPH_TRACER[0m) += ftrace.o
obj-$([31mCONFIG_EARLYFB[0m) += btext.o
obj-$([31mCONFIG_STACKTRACE[0m) += stacktrace.o
# sparc64 PCI
obj-$([31mCONFIG_SPARC64_PCI[0m) += pci.o pci_common.o psycho_common.o
obj-$([31mCONFIG_SPARC64_PCI[0m) += pci_psycho.o pci_sabre.o pci_schizo.o
obj-$([31mCONFIG_SPARC64_PCI[0m) += pci_sun4v.o pci_sun4v_asm.o pci_fire.o
obj-$([31mCONFIG_SPARC64_PCI_MSI[0m) += pci_msi.o
obj-$([31mCONFIG_COMPAT[0m) += sys32.o sys_sparc32.o signal32.o
obj-$([31mCONFIG_US3_MC[0m) += chmc.o
obj-$([31mCONFIG_KPROBES[0m) += kprobes.o
obj-$([31mCONFIG_SUN_LDOMS[0m) += ldc.o vio.o viohs.o ds.o
obj-$([31mCONFIG_AUDIT[0m) += audit.o
audit--$([31mCONFIG_AUDIT[0m) := compat_audit.o
obj-$([31mCONFIG_COMPAT[0m) += $(audit--y)
pc--$([31mCONFIG_PERF_EVENTS[0m) := perf_event.o
obj-$([31mCONFIG_SPARC64[0m) += $(pc--y)
obj-$([31mCONFIG_UPROBES[0m) += uprobes.o
obj-$([31mCONFIG_SPARC64[0m) += jump_label.o