Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the linux kernel. |
| 3 | # |
Sam Ravnborg | 88e4d25 | 2007-10-17 22:06:30 +0200 | [diff] [blame] | 4 | |
Huang, Ying | 0c51a96 | 2008-06-02 14:26:23 +0800 | [diff] [blame] | 5 | extra-y := head_$(BITS).o head$(BITS).o head.o init_task.o vmlinux.lds |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 6 | |
| 7 | CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) |
Ingo Molnar | e43eb7b | 2008-02-14 08:38:49 +0100 | [diff] [blame] | 8 | |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 9 | ifdef CONFIG_FUNCTION_TRACER |
Ingo Molnar | 34646bc | 2008-07-09 15:42:09 +0200 | [diff] [blame] | 10 | # Do not profile debug and lowlevel utilities |
Ingo Molnar | 8e9509c | 2008-07-17 13:26:50 +0200 | [diff] [blame] | 11 | CFLAGS_REMOVE_tsc.o = -pg |
Steven Rostedt | 7fa09f2 | 2008-05-14 21:30:32 -0400 | [diff] [blame] | 12 | CFLAGS_REMOVE_rtc.o = -pg |
Jeremy Fitzhardinge | d5de884 | 2008-07-23 13:28:58 -0700 | [diff] [blame] | 13 | CFLAGS_REMOVE_paravirt-spinlocks.o = -pg |
Steven Rostedt | 15adc04 | 2008-10-23 09:33:08 -0400 | [diff] [blame] | 14 | CFLAGS_REMOVE_ftrace.o = -pg |
Ingo Molnar | 6cf87ef | 2008-11-04 10:42:23 +0100 | [diff] [blame] | 15 | CFLAGS_REMOVE_early_printk.o = -pg |
Steven Rostedt | 7fa09f2 | 2008-05-14 21:30:32 -0400 | [diff] [blame] | 16 | endif |
| 17 | |
Ingo Molnar | e43eb7b | 2008-02-14 08:38:49 +0100 | [diff] [blame] | 18 | # |
| 19 | # vsyscalls (which work on the user stack) should have |
| 20 | # no stack-protector checks: |
| 21 | # |
| 22 | nostackp := $(call cc-option, -fno-stack-protector) |
| 23 | CFLAGS_vsyscall_64.o := $(PROFILING) -g0 $(nostackp) |
| 24 | CFLAGS_hpet.o := $(nostackp) |
Ingo Molnar | 3d0decc | 2008-07-11 15:09:15 +0200 | [diff] [blame] | 25 | CFLAGS_tsc.o := $(nostackp) |
Ingo Molnar | 4c7f890 | 2008-02-23 07:06:55 +0100 | [diff] [blame] | 26 | CFLAGS_paravirt.o := $(nostackp) |
Peter Oberparleiter | 7bf99fb | 2009-06-17 16:28:09 -0700 | [diff] [blame] | 27 | GCOV_PROFILE_vsyscall_64.o := n |
| 28 | GCOV_PROFILE_hpet.o := n |
Peter Oberparleiter | f386c61 | 2009-07-05 12:08:06 -0700 | [diff] [blame] | 29 | GCOV_PROFILE_tsc.o := n |
| 30 | GCOV_PROFILE_paravirt.o := n |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 31 | |
Hiroshi Shimamoto | 5ceb40d | 2008-11-24 18:24:11 -0800 | [diff] [blame] | 32 | obj-y := process_$(BITS).o signal.o entry_$(BITS).o |
Thomas Gleixner | 6b39ba7 | 2008-10-16 11:32:24 +0200 | [diff] [blame] | 33 | obj-y += traps.o irq.o irq_$(BITS).o dumpstack_$(BITS).o |
Thomas Gleixner | 4792621 | 2009-08-20 16:47:19 +0200 | [diff] [blame] | 34 | obj-y += time.o ioport.o ldt.o dumpstack.o |
Thomas Gleixner | 57844a8 | 2009-08-19 14:48:38 +0200 | [diff] [blame] | 35 | obj-y += setup.o x86_init.o i8259.o irqinit.o |
Ingo Molnar | 26dd9fc | 2008-07-10 16:21:38 +0200 | [diff] [blame] | 36 | obj-$(CONFIG_X86_VISWS) += visws_quirks.o |
Ingo Molnar | 2a05180 | 2009-02-17 20:35:16 +0100 | [diff] [blame] | 37 | obj-$(CONFIG_X86_32) += probe_roms_32.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 38 | obj-$(CONFIG_X86_32) += sys_i386_32.o i386_ksyms_32.o |
| 39 | obj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o |
Yinghai Lu | 0f0124f | 2008-06-21 16:25:37 -0700 | [diff] [blame] | 40 | obj-$(CONFIG_X86_64) += syscall_64.o vsyscall_64.o |
Yinghai Lu | 064d25f | 2008-06-16 19:58:28 -0700 | [diff] [blame] | 41 | obj-y += bootflag.o e820.o |
Glauber Costa | 459121c9 | 2008-04-08 13:20:43 -0300 | [diff] [blame] | 42 | obj-y += pci-dma.o quirks.o i8237.o topology.o kdebugfs.o |
K.Prasad | 0067f12 | 2009-06-01 23:43:57 +0530 | [diff] [blame] | 43 | obj-y += alternative.o i8253.o pci-nommu.o hw_breakpoint.o |
Alok Kataria | 8fbbc4b | 2008-07-01 11:43:34 -0700 | [diff] [blame] | 44 | obj-y += tsc.o io_delay.o rtc.o |
Konrad Rzeszutek Wilk | 5bef80a | 2010-08-26 13:57:58 -0400 | [diff] [blame^] | 45 | obj-y += pci-iommu_table.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 46 | |
Ingo Molnar | 77ad386 | 2008-03-21 15:23:19 +0100 | [diff] [blame] | 47 | obj-$(CONFIG_X86_TRAMPOLINE) += trampoline.o |
Suresh Siddha | 61c4628 | 2008-03-10 15:28:04 -0700 | [diff] [blame] | 48 | obj-y += process.o |
Suresh Siddha | dc1e35c | 2008-07-29 10:29:19 -0700 | [diff] [blame] | 49 | obj-y += i387.o xsave.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 50 | obj-y += ptrace.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 51 | obj-$(CONFIG_X86_32) += tls.o |
| 52 | obj-$(CONFIG_IA32_EMULATION) += tls.o |
| 53 | obj-y += step.o |
Joseph Cihula | 3162534 | 2009-06-30 19:30:59 -0700 | [diff] [blame] | 54 | obj-$(CONFIG_INTEL_TXT) += tboot.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 55 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
| 56 | obj-y += cpu/ |
| 57 | obj-y += acpi/ |
Feng Tang | efafc8b | 2009-08-14 15:23:29 -0400 | [diff] [blame] | 58 | obj-$(CONFIG_SFI) += sfi.o |
Ingo Molnar | f095df0 | 2009-01-27 17:17:55 +0100 | [diff] [blame] | 59 | obj-y += reboot.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 60 | obj-$(CONFIG_MCA) += mca_32.o |
| 61 | obj-$(CONFIG_X86_MSR) += msr.o |
| 62 | obj-$(CONFIG_X86_CPUID) += cpuid.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 63 | obj-$(CONFIG_PCI) += early-quirks.o |
Sam Ravnborg | 3a900d8 | 2008-02-04 16:47:55 +0100 | [diff] [blame] | 64 | apm-y := apm_32.o |
| 65 | obj-$(CONFIG_APM) += apm.o |
Ingo Molnar | 3e5095d | 2009-01-27 17:07:08 +0100 | [diff] [blame] | 66 | obj-$(CONFIG_SMP) += smp.o |
Ingo Molnar | f62bae5 | 2009-02-17 18:09:24 +0100 | [diff] [blame] | 67 | obj-$(CONFIG_SMP) += smpboot.o tsc_sync.o |
Brian Gerst | 996db81 | 2009-01-27 12:56:47 +0900 | [diff] [blame] | 68 | obj-$(CONFIG_SMP) += setup_percpu.o |
Brian Gerst | b2d2f43 | 2009-01-27 12:56:48 +0900 | [diff] [blame] | 69 | obj-$(CONFIG_X86_64_SMP) += tsc_sync.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 70 | obj-$(CONFIG_X86_TRAMPOLINE) += trampoline_$(BITS).o |
Alexey Starikovskiy | 85bddde | 2008-04-04 23:43:18 +0400 | [diff] [blame] | 71 | obj-$(CONFIG_X86_MPPARSE) += mpparse.o |
Ingo Molnar | 9be1b56 | 2009-02-17 23:12:48 +0100 | [diff] [blame] | 72 | obj-y += apic/ |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 73 | obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o |
Steven Rostedt | 3d08339 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 74 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o |
Ingo Molnar | ccd50df | 2009-03-13 17:02:17 +0100 | [diff] [blame] | 75 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o |
| 76 | obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 77 | obj-$(CONFIG_KEXEC) += machine_kexec_$(BITS).o |
| 78 | obj-$(CONFIG_KEXEC) += relocate_kernel_$(BITS).o crash.o |
| 79 | obj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 80 | obj-$(CONFIG_KPROBES) += kprobes.o |
Amerigo Wang | 0fdc83b | 2009-06-03 21:46:19 -0400 | [diff] [blame] | 81 | obj-$(CONFIG_MODULES) += module.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 82 | obj-$(CONFIG_EFI) += efi.o efi_$(BITS).o efi_stub_$(BITS).o |
| 83 | obj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o |
Ingo Molnar | 82da3ff | 2008-04-17 20:05:37 +0200 | [diff] [blame] | 84 | obj-$(CONFIG_KGDB) += kgdb.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 85 | obj-$(CONFIG_VM86) += vm86_32.o |
| 86 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o |
| 87 | |
| 88 | obj-$(CONFIG_HPET_TIMER) += hpet.o |
Jacob Pan | bb24c47 | 2009-09-02 07:37:17 -0700 | [diff] [blame] | 89 | obj-$(CONFIG_APB_TIMER) += apb_timer.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 90 | |
| 91 | obj-$(CONFIG_K8_NB) += k8.o |
Ingo Molnar | aba8391 | 2008-01-30 13:34:09 +0100 | [diff] [blame] | 92 | obj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o |
| 93 | obj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 94 | |
| 95 | obj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o |
Marcelo Tosatti | 0cf1bfd | 2008-02-22 12:21:36 -0500 | [diff] [blame] | 96 | obj-$(CONFIG_KVM_GUEST) += kvm.o |
Glauber de Oliveira Costa | 790c73f | 2008-02-15 17:52:48 -0200 | [diff] [blame] | 97 | obj-$(CONFIG_KVM_CLOCK) += kvmclock.o |
Jeremy Fitzhardinge | b4ecc12 | 2009-05-13 17:16:55 -0700 | [diff] [blame] | 98 | obj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o |
| 99 | obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= paravirt-spinlocks.o |
Gerd Hoffmann | 7af192c | 2008-06-03 16:17:29 +0200 | [diff] [blame] | 100 | obj-$(CONFIG_PARAVIRT_CLOCK) += pvclock.o |
Michael Opdenacker | 6792689 | 2008-01-30 13:33:18 +0100 | [diff] [blame] | 101 | |
Stas Sergeev | e5e1d3c | 2008-05-07 12:39:56 +0200 | [diff] [blame] | 102 | obj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 103 | |
Sam Ravnborg | 3bc9a77 | 2008-02-04 16:47:55 +0100 | [diff] [blame] | 104 | obj-$(CONFIG_SCx200) += scx200.o |
| 105 | scx200-y += scx200_32.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 106 | |
Andres Salomon | 3ef0e1f | 2008-04-29 00:59:53 -0700 | [diff] [blame] | 107 | obj-$(CONFIG_OLPC) += olpc.o |
Andres Salomon | fd699c7 | 2010-06-18 17:46:53 -0400 | [diff] [blame] | 108 | obj-$(CONFIG_OLPC_OPENFIRMWARE) += olpc_ofw.o |
Thomas Gleixner | 3f4110a | 2009-08-29 14:54:20 +0200 | [diff] [blame] | 109 | obj-$(CONFIG_X86_MRST) += mrst.o |
Andres Salomon | 3ef0e1f | 2008-04-29 00:59:53 -0700 | [diff] [blame] | 110 | |
Dmitry Adamushko | 18dbc91 | 2008-09-23 12:08:44 +0200 | [diff] [blame] | 111 | microcode-y := microcode_core.o |
| 112 | microcode-$(CONFIG_MICROCODE_INTEL) += microcode_intel.o |
| 113 | microcode-$(CONFIG_MICROCODE_AMD) += microcode_amd.o |
| 114 | obj-$(CONFIG_MICROCODE) += microcode.o |
| 115 | |
Arjan van de Ven | b43d196 | 2008-10-05 12:21:32 -0700 | [diff] [blame] | 116 | obj-$(CONFIG_X86_CHECK_BIOS_CORRUPTION) += check.o |
| 117 | |
Ian Campbell | b041cf2 | 2009-01-23 10:56:16 +0000 | [diff] [blame] | 118 | obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o |
Jeremy Fitzhardinge | cfb80c9 | 2008-12-16 12:17:36 -0800 | [diff] [blame] | 119 | |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 120 | ### |
| 121 | # 64 bit specific files |
| 122 | ifeq ($(CONFIG_X86_64),y) |
Dimitri Sivanich | 5ab5ab3 | 2009-03-04 12:59:18 -0600 | [diff] [blame] | 123 | obj-$(CONFIG_X86_UV) += tlb_uv.o bios_uv.o uv_irq.o uv_sysfs.o uv_time.o |
Ingo Molnar | f62bae5 | 2009-02-17 18:09:24 +0100 | [diff] [blame] | 124 | obj-$(CONFIG_X86_PM_TIMER) += pmtimer_64.o |
| 125 | obj-$(CONFIG_AUDIT) += audit_64.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 126 | |
Ingo Molnar | f62bae5 | 2009-02-17 18:09:24 +0100 | [diff] [blame] | 127 | obj-$(CONFIG_GART_IOMMU) += pci-gart_64.o aperture_64.o |
| 128 | obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o |
| 129 | obj-$(CONFIG_AMD_IOMMU) += amd_iommu_init.o amd_iommu.o |
Yinghai Lu | d39398a | 2008-02-26 11:04:17 -0800 | [diff] [blame] | 130 | |
Ingo Molnar | f62bae5 | 2009-02-17 18:09:24 +0100 | [diff] [blame] | 131 | obj-$(CONFIG_PCI_MMCONFIG) += mmconf-fam10h_64.o |
Ravikiran G Thirumalai | 7051113 | 2009-03-23 23:14:29 -0700 | [diff] [blame] | 132 | obj-y += vsmp_64.o |
Sam Ravnborg | 6b0c3d4 | 2008-01-30 13:32:27 +0100 | [diff] [blame] | 133 | endif |