blob: bcc2b123dabf1733825509f7cb754ab806e15ab3 [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
Huang, Ying0c51a962008-06-02 14:26:23 +08005extra-y := head_$(BITS).o head$(BITS).o head.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
9#
10# vsyscalls (which work on the user stack) should have
11# no stack-protector checks:
12#
13nostackp := $(call cc-option, -fno-stack-protector)
14CFLAGS_vsyscall_64.o := $(PROFILING) -g0 $(nostackp)
15CFLAGS_hpet.o := $(nostackp)
16CFLAGS_tsc_64.o := $(nostackp)
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010017
18obj-y := process_$(BITS).o signal_$(BITS).o entry_$(BITS).o
19obj-y += traps_$(BITS).o irq_$(BITS).o
mboton@gmail.comccafa592008-01-30 13:33:10 +010020obj-y += time_$(BITS).o ioport.o ldt.o
Glauber de Oliveira Costa4fe29a82008-03-19 14:25:23 -030021obj-y += setup_$(BITS).o i8259_$(BITS).o setup.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010022obj-$(CONFIG_X86_32) += sys_i386_32.o i386_ksyms_32.o
23obj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o
24obj-$(CONFIG_X86_64) += syscall_64.o vsyscall_64.o setup64.o
Yinghai Lu064d25f2008-06-16 19:58:28 -070025obj-y += bootflag.o e820.o
Glauber Costa459121c92008-04-08 13:20:43 -030026obj-y += pci-dma.o quirks.o i8237.o topology.o kdebugfs.o
Glauber Costaf9c258d2008-04-08 13:20:52 -030027obj-y += alternative.o i8253.o pci-nommu.o
28obj-$(CONFIG_X86_64) += bugs_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010029obj-y += tsc_$(BITS).o io_delay.o rtc.o
30
Ingo Molnar77ad3862008-03-21 15:23:19 +010031obj-$(CONFIG_X86_TRAMPOLINE) += trampoline.o
Suresh Siddha61c46282008-03-10 15:28:04 -070032obj-y += process.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010033obj-y += i387.o
34obj-y += ptrace.o
35obj-y += ds.o
36obj-$(CONFIG_X86_32) += tls.o
37obj-$(CONFIG_IA32_EMULATION) += tls.o
38obj-y += step.o
39obj-$(CONFIG_STACKTRACE) += stacktrace.o
40obj-y += cpu/
41obj-y += acpi/
Miguel Boton4d022e32008-01-30 13:32:51 +010042obj-$(CONFIG_X86_BIOS_REBOOT) += reboot.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010043obj-$(CONFIG_MCA) += mca_32.o
44obj-$(CONFIG_X86_MSR) += msr.o
45obj-$(CONFIG_X86_CPUID) += cpuid.o
46obj-$(CONFIG_MICROCODE) += microcode.o
47obj-$(CONFIG_PCI) += early-quirks.o
Sam Ravnborg3a900d82008-02-04 16:47:55 +010048apm-y := apm_32.o
49obj-$(CONFIG_APM) += apm.o
Glauber de Oliveira Costa4cedb332008-03-19 14:26:14 -030050obj-$(CONFIG_X86_SMP) += smp.o
Glauber Costac048fdf2008-03-03 14:12:54 -030051obj-$(CONFIG_X86_SMP) += smpboot.o tsc_sync.o ipi.o tlb_$(BITS).o
Glauber Costae32640a2008-03-03 14:12:45 -030052obj-$(CONFIG_X86_32_SMP) += smpcommon.o
Glauber de Oliveira Costa4cedb332008-03-19 14:26:14 -030053obj-$(CONFIG_X86_64_SMP) += tsc_sync.o smpcommon.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010054obj-$(CONFIG_X86_TRAMPOLINE) += trampoline_$(BITS).o
Alexey Starikovskiy85bddde2008-04-04 23:43:18 +040055obj-$(CONFIG_X86_MPPARSE) += mpparse.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010056obj-$(CONFIG_X86_LOCAL_APIC) += apic_$(BITS).o nmi_$(BITS).o
57obj-$(CONFIG_X86_IO_APIC) += io_apic_$(BITS).o
58obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o
59obj-$(CONFIG_KEXEC) += machine_kexec_$(BITS).o
60obj-$(CONFIG_KEXEC) += relocate_kernel_$(BITS).o crash.o
61obj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o
62obj-$(CONFIG_X86_NUMAQ) += numaq_32.o
63obj-$(CONFIG_X86_SUMMIT_NUMA) += summit_32.o
Ravikiran G Thirumalaiaa7d8e25e2008-03-20 00:41:16 -070064obj-y += vsmp_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010065obj-$(CONFIG_KPROBES) += kprobes.o
66obj-$(CONFIG_MODULES) += module_$(BITS).o
67obj-$(CONFIG_ACPI_SRAT) += srat_32.o
68obj-$(CONFIG_EFI) += efi.o efi_$(BITS).o efi_stub_$(BITS).o
69obj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o
Ingo Molnar82da3ff2008-04-17 20:05:37 +020070obj-$(CONFIG_KGDB) += kgdb.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010071obj-$(CONFIG_VM86) += vm86_32.o
72obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
73
74obj-$(CONFIG_HPET_TIMER) += hpet.o
75
76obj-$(CONFIG_K8_NB) += k8.o
77obj-$(CONFIG_MGEODE_LX) += geode_32.o mfgpt_32.o
Ingo Molnaraba83912008-01-30 13:34:09 +010078obj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o
79obj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010080
81obj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o
Marcelo Tosatti0cf1bfd2008-02-22 12:21:36 -050082obj-$(CONFIG_KVM_GUEST) += kvm.o
Glauber de Oliveira Costa790c73f2008-02-15 17:52:48 -020083obj-$(CONFIG_KVM_CLOCK) += kvmclock.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010084obj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o
Gerd Hoffmann7af192c2008-06-03 16:17:29 +020085obj-$(CONFIG_PARAVIRT_CLOCK) += pvclock.o
Michael Opdenacker67926892008-01-30 13:33:18 +010086
Stas Sergeeve5e1d3c2008-05-07 12:39:56 +020087obj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010088
Sam Ravnborg3bc9a772008-02-04 16:47:55 +010089obj-$(CONFIG_SCx200) += scx200.o
90scx200-y += scx200_32.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010091
Andres Salomon3ef0e1f2008-04-29 00:59:53 -070092obj-$(CONFIG_OLPC) += olpc.o
93
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010094###
95# 64 bit specific files
96ifeq ($(CONFIG_X86_64),y)
Jack Steinerac23d4e2008-03-28 14:12:16 -050097 obj-y += genapic_64.o genapic_flat_64.o genx2apic_uv_x.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010098 obj-$(CONFIG_X86_PM_TIMER) += pmtimer_64.o
99 obj-$(CONFIG_AUDIT) += audit_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100100
101 obj-$(CONFIG_GART_IOMMU) += pci-gart_64.o aperture_64.o
102 obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o
103 obj-$(CONFIG_SWIOTLB) += pci-swiotlb_64.o
Yinghai Lud39398a2008-02-26 11:04:17 -0800104
105 obj-$(CONFIG_PCI_MMCONFIG) += mmconf-fam10h_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100106endif