blob: 74b3891afb9b04cfe501446a7d1519a538478e9e [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
Thomas Gleixner45046892012-05-03 09:03:01 +00005extra-y := head_$(BITS).o head$(BITS).o head.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 Rostedt606576c2008-10-06 19:06:12 -04009ifdef CONFIG_FUNCTION_TRACER
Ingo Molnar34646bc2008-07-09 15:42:09 +020010# Do not profile debug and lowlevel utilities
Steven Rostedt89e1be52011-05-27 23:11:24 -040011CFLAGS_REMOVE_tsc.o = -pg
Jeremy Fitzhardinged5de8842008-07-23 13:28:58 -070012CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
Jeremy Fitzhardinge9ecd4e12010-09-22 17:07:27 -070013CFLAGS_REMOVE_pvclock.o = -pg
Steven Rostedt258af472010-09-22 22:22:25 -040014CFLAGS_REMOVE_kvmclock.o = -pg
Steven Rostedt15adc042008-10-23 09:33:08 -040015CFLAGS_REMOVE_ftrace.o = -pg
Ingo Molnar6cf87ef2008-11-04 10:42:23 +010016CFLAGS_REMOVE_early_printk.o = -pg
Steven Rostedt7fa09f22008-05-14 21:30:32 -040017endif
18
Hiroshi Shimamoto5ceb40d2008-11-24 18:24:11 -080019obj-y := process_$(BITS).o signal.o entry_$(BITS).o
Thomas Gleixner6b39ba72008-10-16 11:32:24 +020020obj-y += traps.o irq.o irq_$(BITS).o dumpstack_$(BITS).o
Don Zickus1d489222011-09-30 15:06:19 -040021obj-y += time.o ioport.o ldt.o dumpstack.o nmi.o
Jason Barond9f5ab72010-09-17 11:09:22 -040022obj-y += setup.o x86_init.o i8259.o irqinit.o jump_label.o
Peter Zijlstrae360adb2010-10-14 14:01:34 +080023obj-$(CONFIG_IRQ_WORK) += irq_work.o
Dan Williams5d94e812011-03-08 10:36:19 -080024obj-y += probe_roms.o
Al Viro6783eaa22012-08-02 23:05:11 +040025obj-$(CONFIG_X86_32) += i386_ksyms_32.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010026obj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o
H. Peter Anvin303395a2011-11-11 16:07:41 -080027obj-y += syscall_$(BITS).o
28obj-$(CONFIG_X86_64) += vsyscall_64.o
Andy Lutomirski5cec93c2011-06-05 13:50:24 -040029obj-$(CONFIG_X86_64) += vsyscall_emu_64.o
Yinghai Lu064d25f2008-06-16 19:58:28 -070030obj-y += bootflag.o e820.o
David Rientjes4061d682011-03-22 16:34:57 -070031obj-y += pci-dma.o quirks.o topology.o kdebugfs.o
K.Prasad0067f122009-06-01 23:43:57 +053032obj-y += alternative.o i8253.o pci-nommu.o hw_breakpoint.o
Alok Kataria8fbbc4b2008-07-01 11:43:34 -070033obj-y += tsc.o io_delay.o rtc.o
Konrad Rzeszutek Wilk5bef80a2010-08-26 13:57:58 -040034obj-y += pci-iommu_table.o
Bjorn Helgaas30919b02010-12-16 10:38:51 -070035obj-y += resource.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010036
Suresh Siddha61c46282008-03-10 15:28:04 -070037obj-y += process.o
Suresh Siddhadc1e35c2008-07-29 10:29:19 -070038obj-y += i387.o xsave.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010039obj-y += ptrace.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010040obj-$(CONFIG_X86_32) += tls.o
41obj-$(CONFIG_IA32_EMULATION) += tls.o
42obj-y += step.o
Joseph Cihula31625342009-06-30 19:30:59 -070043obj-$(CONFIG_INTEL_TXT) += tboot.o
David Rientjes4061d682011-03-22 16:34:57 -070044obj-$(CONFIG_ISA_DMA_API) += i8237.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010045obj-$(CONFIG_STACKTRACE) += stacktrace.o
46obj-y += cpu/
47obj-y += acpi/
Ingo Molnarf095df02009-01-27 17:17:55 +010048obj-y += reboot.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010049obj-$(CONFIG_X86_MSR) += msr.o
50obj-$(CONFIG_X86_CPUID) += cpuid.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010051obj-$(CONFIG_PCI) += early-quirks.o
Sam Ravnborg3a900d82008-02-04 16:47:55 +010052apm-y := apm_32.o
53obj-$(CONFIG_APM) += apm.o
Ingo Molnar3e5095d2009-01-27 17:07:08 +010054obj-$(CONFIG_SMP) += smp.o
Henrik Kretzschmarec8df882011-03-11 08:02:35 +010055obj-$(CONFIG_SMP) += smpboot.o
56obj-$(CONFIG_SMP) += tsc_sync.o
Brian Gerst996db812009-01-27 12:56:47 +090057obj-$(CONFIG_SMP) += setup_percpu.o
Alexey Starikovskiy85bddde2008-04-04 23:43:18 +040058obj-$(CONFIG_X86_MPPARSE) += mpparse.o
Ingo Molnar9be1b562009-02-17 23:12:48 +010059obj-y += apic/
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010060obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o
Steven Rostedt3d083392008-05-12 21:20:42 +020061obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
Ingo Molnarccd50df2009-03-13 17:02:17 +010062obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o
63obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o
David Sharp8cbd9cc2012-11-13 12:18:21 -080064obj-$(CONFIG_X86_TSC) += trace_clock.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010065obj-$(CONFIG_KEXEC) += machine_kexec_$(BITS).o
66obj-$(CONFIG_KEXEC) += relocate_kernel_$(BITS).o crash.o
67obj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o
Masami Hiramatsuf6841992012-09-28 17:15:22 +090068obj-y += kprobes/
Amerigo Wang0fdc83b2009-06-03 21:46:19 -040069obj-$(CONFIG_MODULES) += module.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010070obj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o
Ingo Molnar82da3ff2008-04-17 20:05:37 +020071obj-$(CONFIG_KGDB) += kgdb.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010072obj-$(CONFIG_VM86) += vm86_32.o
73obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
74
75obj-$(CONFIG_HPET_TIMER) += hpet.o
Jacob Panbb24c472009-09-02 07:37:17 -070076obj-$(CONFIG_APB_TIMER) += apb_timer.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010077
Andreas Herrmann23ac4ae2010-09-17 18:03:43 +020078obj-$(CONFIG_AMD_NB) += amd_nb.o
Ingo Molnaraba83912008-01-30 13:34:09 +010079obj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o
80obj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o
Don Zickus99e8b9c2011-10-13 15:14:26 -040081obj-$(CONFIG_DEBUG_NMI_SELFTEST) += nmi_selftest.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010082
Marcelo Tosatti90993cd2012-08-16 17:00:19 -030083obj-$(CONFIG_KVM_GUEST) += kvm.o kvmclock.o
Jeremy Fitzhardingeb4ecc122009-05-13 17:16:55 -070084obj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o
85obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= paravirt-spinlocks.o
Gerd Hoffmann7af192c2008-06-03 16:17:29 +020086obj-$(CONFIG_PARAVIRT_CLOCK) += pvclock.o
Michael Opdenacker67926892008-01-30 13:33:18 +010087
Stas Sergeeve5e1d3c2008-05-07 12:39:56 +020088obj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +010089
Fenghua Yu9cd4d782012-12-20 23:44:22 -080090obj-$(CONFIG_MICROCODE_EARLY) += microcode_core_early.o
91obj-$(CONFIG_MICROCODE_INTEL_EARLY) += microcode_intel_early.o
92obj-$(CONFIG_MICROCODE_INTEL_LIB) += microcode_intel_lib.o
Dmitry Adamushko18dbc912008-09-23 12:08:44 +020093microcode-y := microcode_core.o
94microcode-$(CONFIG_MICROCODE_INTEL) += microcode_intel.o
95microcode-$(CONFIG_MICROCODE_AMD) += microcode_amd.o
96obj-$(CONFIG_MICROCODE) += microcode.o
97
Arjan van de Venb43d1962008-10-05 12:21:32 -070098obj-$(CONFIG_X86_CHECK_BIOS_CORRUPTION) += check.o
99
Ian Campbellb041cf22009-01-23 10:56:16 +0000100obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +0100101obj-$(CONFIG_OF) += devicetree.o
Srikar Dronamraju2b144492012-02-09 14:56:42 +0530102obj-$(CONFIG_UPROBES) += uprobes.o
Jeremy Fitzhardingecfb80c92008-12-16 12:17:36 -0800103
Jiri Olsac5e63192012-08-07 15:20:36 +0200104obj-$(CONFIG_PERF_EVENTS) += perf_regs.o
Seiji Aguchicf910e82013-06-20 11:46:53 -0400105obj-$(CONFIG_TRACING) += tracepoint.o
Jiri Olsac5e63192012-08-07 15:20:36 +0200106
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100107###
108# 64 bit specific files
109ifeq ($(CONFIG_X86_64),y)
Ingo Molnarf62bae52009-02-17 18:09:24 +0100110 obj-$(CONFIG_AUDIT) += audit_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100111
Joerg Roedelfffcda12011-05-10 17:22:06 +0200112 obj-$(CONFIG_GART_IOMMU) += amd_gart_64.o aperture_64.o
Ingo Molnarf62bae52009-02-17 18:09:24 +0100113 obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o
Yinghai Lud39398a2008-02-26 11:04:17 -0800114
Ingo Molnarf62bae52009-02-17 18:09:24 +0100115 obj-$(CONFIG_PCI_MMCONFIG) += mmconf-fam10h_64.o
Ravikiran G Thirumalai70511132009-03-23 23:14:29 -0700116 obj-y += vsmp_64.o
Sam Ravnborg6b0c3d42008-01-30 13:32:27 +0100117endif