]>
Commit | Line | Data |
---|---|---|
6b0c3d44 SR |
1 | # |
2 | # Makefile for the linux kernel. | |
3 | # | |
4 | ||
45046892 | 5 | extra-y := head_$(BITS).o head$(BITS).o head.o vmlinux.lds |
6b0c3d44 SR |
6 | |
7 | CPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) | |
e43eb7ba | 8 | |
606576ce | 9 | ifdef CONFIG_FUNCTION_TRACER |
34646bca | 10 | # Do not profile debug and lowlevel utilities |
89e1be50 | 11 | CFLAGS_REMOVE_tsc.o = -pg |
d5de8841 | 12 | CFLAGS_REMOVE_paravirt-spinlocks.o = -pg |
9ecd4e16 | 13 | CFLAGS_REMOVE_pvclock.o = -pg |
258af474 | 14 | CFLAGS_REMOVE_kvmclock.o = -pg |
15adc048 | 15 | CFLAGS_REMOVE_ftrace.o = -pg |
6cf87efb | 16 | CFLAGS_REMOVE_early_printk.o = -pg |
7fa09f24 SR |
17 | endif |
18 | ||
ef7f0d6a | 19 | KASAN_SANITIZE_head$(BITS).o := n |
c420f167 AR |
20 | KASAN_SANITIZE_dumpstack.o := n |
21 | KASAN_SANITIZE_dumpstack_$(BITS).o := n | |
ef7f0d6a | 22 | |
83ab8514 SRRH |
23 | CFLAGS_irq.o := -I$(src)/../include/asm/trace |
24 | ||
5ceb40da | 25 | obj-y := process_$(BITS).o signal.o entry_$(BITS).o |
6b39ba77 | 26 | obj-y += traps.o irq.o irq_$(BITS).o dumpstack_$(BITS).o |
1d48922c | 27 | obj-y += time.o ioport.o ldt.o dumpstack.o nmi.o |
d9f5ab7b | 28 | obj-y += setup.o x86_init.o i8259.o irqinit.o jump_label.o |
e360adbe | 29 | obj-$(CONFIG_IRQ_WORK) += irq_work.o |
5d94e81f | 30 | obj-y += probe_roms.o |
6783eaa2 | 31 | obj-$(CONFIG_X86_32) += i386_ksyms_32.o |
6b0c3d44 | 32 | obj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o |
e18eead3 | 33 | obj-$(CONFIG_X86_64) += mcount_64.o |
d2312e33 | 34 | obj-y += syscall_$(BITS).o vsyscall_gtod.o |
2aa4a710 | 35 | obj-$(CONFIG_IA32_EMULATION) += syscall_32.o |
1ad83c85 | 36 | obj-$(CONFIG_X86_VSYSCALL_EMULATION) += vsyscall_64.o vsyscall_emu_64.o |
197725de | 37 | obj-$(CONFIG_X86_ESPFIX64) += espfix_64.o |
5039e316 | 38 | obj-$(CONFIG_SYSFS) += ksysfs.o |
064d25f1 | 39 | obj-y += bootflag.o e820.o |
4061d68e | 40 | obj-y += pci-dma.o quirks.o topology.o kdebugfs.o |
0067f129 | 41 | obj-y += alternative.o i8253.o pci-nommu.o hw_breakpoint.o |
7da7c156 | 42 | obj-y += tsc.o tsc_msr.o io_delay.o rtc.o |
5bef80a4 | 43 | obj-y += pci-iommu_table.o |
30919b0b | 44 | obj-y += resource.o |
6b0c3d44 | 45 | |
61c4628b | 46 | obj-y += process.o |
dc1e35c6 | 47 | obj-y += i387.o xsave.o |
6b0c3d44 | 48 | obj-y += ptrace.o |
6b0c3d44 SR |
49 | obj-$(CONFIG_X86_32) += tls.o |
50 | obj-$(CONFIG_IA32_EMULATION) += tls.o | |
51 | obj-y += step.o | |
31625340 | 52 | obj-$(CONFIG_INTEL_TXT) += tboot.o |
4061d68e | 53 | obj-$(CONFIG_ISA_DMA_API) += i8237.o |
6b0c3d44 SR |
54 | obj-$(CONFIG_STACKTRACE) += stacktrace.o |
55 | obj-y += cpu/ | |
56 | obj-y += acpi/ | |
f095df0a | 57 | obj-y += reboot.o |
6b0c3d44 SR |
58 | obj-$(CONFIG_X86_MSR) += msr.o |
59 | obj-$(CONFIG_X86_CPUID) += cpuid.o | |
6b0c3d44 | 60 | obj-$(CONFIG_PCI) += early-quirks.o |
3a900d89 SR |
61 | apm-y := apm_32.o |
62 | obj-$(CONFIG_APM) += apm.o | |
3e5095d1 | 63 | obj-$(CONFIG_SMP) += smp.o |
ec8df88f HK |
64 | obj-$(CONFIG_SMP) += smpboot.o |
65 | obj-$(CONFIG_SMP) += tsc_sync.o | |
996db817 | 66 | obj-$(CONFIG_SMP) += setup_percpu.o |
85bdddec | 67 | obj-$(CONFIG_X86_MPPARSE) += mpparse.o |
9be1b56a | 68 | obj-y += apic/ |
6b0c3d44 | 69 | obj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o |
3d083395 | 70 | obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o |
12cf89b5 | 71 | obj-$(CONFIG_LIVEPATCH) += livepatch.o |
ccd50dfd IM |
72 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o |
73 | obj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o | |
8cbd9cc6 | 74 | obj-$(CONFIG_X86_TSC) += trace_clock.o |
6b0c3d44 SR |
75 | obj-$(CONFIG_KEXEC) += machine_kexec_$(BITS).o |
76 | obj-$(CONFIG_KEXEC) += relocate_kernel_$(BITS).o crash.o | |
74ca317c | 77 | obj-$(CONFIG_KEXEC_FILE) += kexec-bzimage64.o |
6b0c3d44 | 78 | obj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o |
f684199f | 79 | obj-y += kprobes/ |
0fdc83b9 | 80 | obj-$(CONFIG_MODULES) += module.o |
4d067d8e | 81 | obj-$(CONFIG_DOUBLEFAULT) += doublefault.o |
82da3ff8 | 82 | obj-$(CONFIG_KGDB) += kgdb.o |
6b0c3d44 SR |
83 | obj-$(CONFIG_VM86) += vm86_32.o |
84 | obj-$(CONFIG_EARLY_PRINTK) += early_printk.o | |
85 | ||
86 | obj-$(CONFIG_HPET_TIMER) += hpet.o | |
bb24c471 | 87 | obj-$(CONFIG_APB_TIMER) += apb_timer.o |
88e4d250 | 88 | |
23ac4ae8 | 89 | obj-$(CONFIG_AMD_NB) += amd_nb.o |
aba8391f IM |
90 | obj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o |
91 | obj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o | |
99e8b9ca | 92 | obj-$(CONFIG_DEBUG_NMI_SELFTEST) += nmi_selftest.o |
6b0c3d44 | 93 | |
90993cdd | 94 | obj-$(CONFIG_KVM_GUEST) += kvm.o kvmclock.o |
b4ecc126 JF |
95 | obj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o |
96 | obj-$(CONFIG_PARAVIRT_SPINLOCKS)+= paravirt-spinlocks.o | |
7af192c9 | 97 | obj-$(CONFIG_PARAVIRT_CLOCK) += pvclock.o |
ec776ef6 | 98 | obj-$(CONFIG_X86_PMEM_LEGACY) += pmem.o |
67926892 | 99 | |
e5e1d3cb | 100 | obj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o |
6b0c3d44 | 101 | |
b43d196c AV |
102 | obj-$(CONFIG_X86_CHECK_BIOS_CORRUPTION) += check.o |
103 | ||
b041cf22 | 104 | obj-$(CONFIG_SWIOTLB) += pci-swiotlb.o |
da6b737b | 105 | obj-$(CONFIG_OF) += devicetree.o |
2b144498 | 106 | obj-$(CONFIG_UPROBES) += uprobes.o |
e3263ab3 DH |
107 | obj-y += sysfb.o |
108 | obj-$(CONFIG_X86_SYSFB) += sysfb_simplefb.o | |
2995e506 | 109 | obj-$(CONFIG_EFI) += sysfb_efi.o |
cfb80c9e | 110 | |
c5e63197 | 111 | obj-$(CONFIG_PERF_EVENTS) += perf_regs.o |
cf910e83 | 112 | obj-$(CONFIG_TRACING) += tracepoint.o |
46184415 | 113 | obj-$(CONFIG_IOSF_MBI) += iosf_mbi.o |
93e5eadd | 114 | obj-$(CONFIG_PMC_ATOM) += pmc_atom.o |
c5e63197 | 115 | |
6b0c3d44 SR |
116 | ### |
117 | # 64 bit specific files | |
118 | ifeq ($(CONFIG_X86_64),y) | |
f62bae50 IM |
119 | obj-$(CONFIG_AUDIT) += audit_64.o |
120 | ||
fffcda11 | 121 | obj-$(CONFIG_GART_IOMMU) += amd_gart_64.o aperture_64.o |
f62bae50 | 122 | obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o |
f62bae50 IM |
123 | |
124 | obj-$(CONFIG_PCI_MMCONFIG) += mmconf-fam10h_64.o | |
70511134 | 125 | obj-y += vsmp_64.o |
6b0c3d44 | 126 | endif |