blob: 739d49acd2f10b795f3dc8723b34b344f4275360 [file] [log] [blame]
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +01001#
2# Makefile for the linux kernel.
3#
Sam Ravnborg88e4d252007-10-17 22:06:30 +02004
Eric W. Biederman700efc12008-02-23 09:58:20 +01005extra-y := head_$(BITS).o head$(BITS).o init_task.o vmlinux.lds
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +01006
7CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
Ingo Molnare43eb7b2008-02-14 08:38:49 +01008
Steven Rostedt7fa09f22008-05-14 21:30:32 -04009ifdef CONFIG_FTRACE
10# Do not profile debug utilities
11CFLAGS_REMOVE_tsc_64.o = -pg
12CFLAGS_REMOVE_tsc_32.o = -pg
13CFLAGS_REMOVE_rtc.o = -pg
14endif
15
Ingo Molnare43eb7b2008-02-14 08:38:49 +010016#
17# vsyscalls (which work on the user stack) should have
18# no stack-protector checks:
19#
20nostackp := $(call cc-option, -fno-stack-protector)
21CFLAGS_vsyscall_64.o := $(PROFILING) -g0 $(nostackp)
22CFLAGS_hpet.o := $(nostackp)
23CFLAGS_tsc_64.o := $(nostackp)
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010024
25obj-y := process_$(BITS).o signal_$(BITS).o entry_$(BITS).o
26obj-y += traps_$(BITS).o irq_$(BITS).o
mboton@gmail.comccafa592008-01-30 13:33:10 +010027obj-y += time_$(BITS).o ioport.o ldt.o
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -030028obj-y += setup_$(BITS).o i8259_$(BITS).o setup.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010029obj-$(CONFIG_X86_32) += sys_i386_32.o i386_ksyms_32.o
30obj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o
31obj-$(CONFIG_X86_64) += syscall_64.o vsyscall_64.o setup64.o
Glauber Costa098cb7f2008-04-09 13:18:10 -030032obj-y += bootflag.o e820_$(BITS).o
Glauber Costa459121c92008-04-08 13:20:43 -030033obj-y += pci-dma.o quirks.o i8237.o topology.o kdebugfs.o
Glauber Costaf9c258d2008-04-08 13:20:52 -030034obj-y += alternative.o i8253.o pci-nommu.o
35obj-$(CONFIG_X86_64) += bugs_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010036obj-y += tsc_$(BITS).o io_delay.o rtc.o
37
Ingo Molnar77ad3862008-03-21 15:23:19 +010038obj-$(CONFIG_X86_TRAMPOLINE) += trampoline.o
Suresh Siddha61c46282008-03-10 15:28:04 -070039obj-y += process.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010040obj-y += i387.o
41obj-y += ptrace.o
42obj-y += ds.o
43obj-$(CONFIG_X86_32) += tls.o
44obj-$(CONFIG_IA32_EMULATION) += tls.o
45obj-y += step.o
46obj-$(CONFIG_STACKTRACE) += stacktrace.o
47obj-y += cpu/
48obj-y += acpi/
Miguel Boton4d022e32008-01-30 13:32:51 +010049obj-$(CONFIG_X86_BIOS_REBOOT) += reboot.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010050obj-$(CONFIG_MCA) += mca_32.o
51obj-$(CONFIG_X86_MSR) += msr.o
52obj-$(CONFIG_X86_CPUID) += cpuid.o
53obj-$(CONFIG_MICROCODE) += microcode.o
54obj-$(CONFIG_PCI) += early-quirks.o
Sam Ravnborg3a900d82008-02-04 16:47:55 +010055apm-y := apm_32.o
56obj-$(CONFIG_APM) += apm.o
Glauber de Oliveira Costa4cedb332008-03-19 14:26:14 -030057obj-$(CONFIG_X86_SMP) += smp.o
Glauber Costac048fdf2008-03-03 14:12:54 -030058obj-$(CONFIG_X86_SMP) += smpboot.o tsc_sync.o ipi.o tlb_$(BITS).o
Glauber Costae32640a2008-03-03 14:12:45 -030059obj-$(CONFIG_X86_32_SMP) += smpcommon.o
Glauber de Oliveira Costa4cedb332008-03-19 14:26:14 -030060obj-$(CONFIG_X86_64_SMP) += tsc_sync.o smpcommon.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010061obj-$(CONFIG_X86_TRAMPOLINE) += trampoline_$(BITS).o
Alexey Starikovskiy85bddde2008-04-04 23:43:18 +040062obj-$(CONFIG_X86_MPPARSE) += mpparse.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010063obj-$(CONFIG_X86_LOCAL_APIC) += apic_$(BITS).o nmi_$(BITS).o
64obj-$(CONFIG_X86_IO_APIC) += io_apic_$(BITS).o
65obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o
Steven Rostedt3d083392008-05-12 21:20:42 +020066obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010067obj-$(CONFIG_KEXEC) += machine_kexec_$(BITS).o
68obj-$(CONFIG_KEXEC) += relocate_kernel_$(BITS).o crash.o
69obj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o
70obj-$(CONFIG_X86_NUMAQ) += numaq_32.o
71obj-$(CONFIG_X86_SUMMIT_NUMA) += summit_32.o
Ravikiran G Thirumalaiaa7d8e25e2008-03-20 00:41:16 -070072obj-y += vsmp_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010073obj-$(CONFIG_KPROBES) += kprobes.o
74obj-$(CONFIG_MODULES) += module_$(BITS).o
75obj-$(CONFIG_ACPI_SRAT) += srat_32.o
76obj-$(CONFIG_EFI) += efi.o efi_$(BITS).o efi_stub_$(BITS).o
77obj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o
Ingo Molnar82da3ff2008-04-17 20:05:37 +020078obj-$(CONFIG_KGDB) += kgdb.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010079obj-$(CONFIG_VM86) += vm86_32.o
80obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
81
82obj-$(CONFIG_HPET_TIMER) += hpet.o
83
84obj-$(CONFIG_K8_NB) += k8.o
85obj-$(CONFIG_MGEODE_LX) += geode_32.o mfgpt_32.o
Ingo Molnaraba83912008-01-30 13:34:09 +010086obj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o
87obj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010088
89obj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o
Marcelo Tosatti0cf1bfd2008-02-22 12:21:36 -050090obj-$(CONFIG_KVM_GUEST) += kvm.o
Glauber de Oliveira Costa790c73f2008-02-15 17:52:48 -020091obj-$(CONFIG_KVM_CLOCK) += kvmclock.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010092obj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o
Michael Opdenacker67926892008-01-30 13:33:18 +010093
Stas Sergeeve5e1d3c2008-05-07 12:39:56 +020094obj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010095
Sam Ravnborg3bc9a772008-02-04 16:47:55 +010096obj-$(CONFIG_SCx200) += scx200.o
97scx200-y += scx200_32.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010098
Andres Salomon3ef0e1f2008-04-29 00:59:53 -070099obj-$(CONFIG_OLPC) += olpc.o
100
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100101###
102# 64 bit specific files
103ifeq ($(CONFIG_X86_64),y)
Jack Steinerac23d4e2008-03-28 14:12:16 -0500104 obj-y += genapic_64.o genapic_flat_64.o genx2apic_uv_x.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100105 obj-$(CONFIG_X86_PM_TIMER) += pmtimer_64.o
106 obj-$(CONFIG_AUDIT) += audit_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100107
108 obj-$(CONFIG_GART_IOMMU) += pci-gart_64.o aperture_64.o
109 obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o
110 obj-$(CONFIG_SWIOTLB) += pci-swiotlb_64.o
Yinghai Lud39398a2008-02-26 11:04:17 -0800111
112 obj-$(CONFIG_PCI_MMCONFIG) += mmconf-fam10h_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100113endif