16b0c3d44SSam Ravnborg# 26b0c3d44SSam Ravnborg# Makefile for the linux kernel. 36b0c3d44SSam Ravnborg# 488e4d250SSam Ravnborg 58d152e7aSLuis R. Rodriguezextra-y := head_$(BITS).o 68d152e7aSLuis R. Rodriguezextra-y += head$(BITS).o 7f2d85299SLuis R. Rodriguezextra-y += ebda.o 88d152e7aSLuis R. Rodriguezextra-y += platform-quirks.o 98d152e7aSLuis R. Rodriguezextra-y += vmlinux.lds 106b0c3d44SSam Ravnborg 116b0c3d44SSam RavnborgCPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) 12e43eb7baSIngo Molnar 13606576ceSSteven Rostedtifdef CONFIG_FUNCTION_TRACER 1434646bcaSIngo Molnar# Do not profile debug and lowlevel utilities 1589e1be50SSteven RostedtCFLAGS_REMOVE_tsc.o = -pg 16d5de8841SJeremy FitzhardingeCFLAGS_REMOVE_paravirt-spinlocks.o = -pg 179ecd4e16SJeremy FitzhardingeCFLAGS_REMOVE_pvclock.o = -pg 18258af474SSteven RostedtCFLAGS_REMOVE_kvmclock.o = -pg 1915adc048SSteven RostedtCFLAGS_REMOVE_ftrace.o = -pg 206cf87efbSIngo MolnarCFLAGS_REMOVE_early_printk.o = -pg 217fa09f24SSteven Rostedtendif 227fa09f24SSteven Rostedt 23ef7f0d6aSAndrey RyabininKASAN_SANITIZE_head$(BITS).o := n 24c420f167SAndrey RyabininKASAN_SANITIZE_dumpstack.o := n 25c420f167SAndrey RyabininKASAN_SANITIZE_dumpstack_$(BITS).o := n 26cd11016eSAlexander PotapenkoKASAN_SANITIZE_stacktrace.o := n 27c0dd6716SJosh Poimboeuf 28c0dd6716SJosh PoimboeufOBJECT_FILES_NON_STANDARD_head_$(BITS).o := y 29c0dd6716SJosh PoimboeufOBJECT_FILES_NON_STANDARD_relocate_kernel_$(BITS).o := y 30c0dd6716SJosh PoimboeufOBJECT_FILES_NON_STANDARD_mcount_$(BITS).o := y 31c0dd6716SJosh PoimboeufOBJECT_FILES_NON_STANDARD_test_nx.o := y 32ef7f0d6aSAndrey Ryabinin 335c9a8750SDmitry Vyukov# If instrumentation of this dir is enabled, boot hangs during first second. 345c9a8750SDmitry Vyukov# Probably could be more selective here, but note that files related to irqs, 355c9a8750SDmitry Vyukov# boot, dumpstack/stacktrace, etc are either non-interesting or can lead to 365c9a8750SDmitry Vyukov# non-deterministic coverage. 375c9a8750SDmitry VyukovKCOV_INSTRUMENT := n 385c9a8750SDmitry Vyukov 3983ab8514SSteven Rostedt (Red Hat)CFLAGS_irq.o := -I$(src)/../include/asm/trace 4083ab8514SSteven Rostedt (Red Hat) 41905a36a2SIngo Molnarobj-y := process_$(BITS).o signal.o 42c0bfd26eSBrian Gerstobj-$(CONFIG_COMPAT) += signal_compat.o 436b39ba77SThomas Gleixnerobj-y += traps.o irq.o irq_$(BITS).o dumpstack_$(BITS).o 44a5b9e5a2SAndy Lutomirskiobj-y += time.o ioport.o dumpstack.o nmi.o 45a5b9e5a2SAndy Lutomirskiobj-$(CONFIG_MODIFY_LDT_SYSCALL) += ldt.o 46d9f5ab7bSJason Baronobj-y += setup.o x86_init.o i8259.o irqinit.o jump_label.o 47e360adbeSPeter Zijlstraobj-$(CONFIG_IRQ_WORK) += irq_work.o 485d94e81fSDan Williamsobj-y += probe_roms.o 49784d5699SAl Viroobj-$(CONFIG_X86_64) += sys_x86_64.o mcount_64.o 50197725deSH. Peter Anvinobj-$(CONFIG_X86_ESPFIX64) += espfix_64.o 515039e316SDave Youngobj-$(CONFIG_SYSFS) += ksysfs.o 52064d25f1SYinghai Luobj-y += bootflag.o e820.o 534061d68eSDavid Rientjesobj-y += pci-dma.o quirks.o topology.o kdebugfs.o 540067f129SK.Prasadobj-y += alternative.o i8253.o pci-nommu.o hw_breakpoint.o 557da7c156SBin Gaoobj-y += tsc.o tsc_msr.o io_delay.o rtc.o 565bef80a4SKonrad Rzeszutek Wilkobj-y += pci-iommu_table.o 5730919b0bSBjorn Helgaasobj-y += resource.o 586b0c3d44SSam Ravnborg 5961c4628bSSuresh Siddhaobj-y += process.o 60ce4c4c26SIngo Molnarobj-y += fpu/ 616b0c3d44SSam Ravnborgobj-y += ptrace.o 626b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32) += tls.o 636b0c3d44SSam Ravnborgobj-$(CONFIG_IA32_EMULATION) += tls.o 646b0c3d44SSam Ravnborgobj-y += step.o 6531625340SJoseph Cihulaobj-$(CONFIG_INTEL_TXT) += tboot.o 664061d68eSDavid Rientjesobj-$(CONFIG_ISA_DMA_API) += i8237.o 676b0c3d44SSam Ravnborgobj-$(CONFIG_STACKTRACE) += stacktrace.o 686b0c3d44SSam Ravnborgobj-y += cpu/ 696b0c3d44SSam Ravnborgobj-y += acpi/ 70f095df0aSIngo Molnarobj-y += reboot.o 716b0c3d44SSam Ravnborgobj-$(CONFIG_X86_MSR) += msr.o 726b0c3d44SSam Ravnborgobj-$(CONFIG_X86_CPUID) += cpuid.o 736b0c3d44SSam Ravnborgobj-$(CONFIG_PCI) += early-quirks.o 743a900d89SSam Ravnborgapm-y := apm_32.o 753a900d89SSam Ravnborgobj-$(CONFIG_APM) += apm.o 763e5095d1SIngo Molnarobj-$(CONFIG_SMP) += smp.o 77ec8df88fSHenrik Kretzschmarobj-$(CONFIG_SMP) += smpboot.o 78ec8df88fSHenrik Kretzschmarobj-$(CONFIG_SMP) += tsc_sync.o 79996db817SBrian Gerstobj-$(CONFIG_SMP) += setup_percpu.o 8085bdddecSAlexey Starikovskiyobj-$(CONFIG_X86_MPPARSE) += mpparse.o 819be1b56aSIngo Molnarobj-y += apic/ 826b0c3d44SSam Ravnborgobj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o 833d083395SSteven Rostedtobj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 84d4c3e6e1SJessica Yuobj-$(CONFIG_LIVEPATCH) += livepatch.o 85fb52607aSFrederic Weisbeckerobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o 86ccd50dfdSIngo Molnarobj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o 878cbd9cc6SDavid Sharpobj-$(CONFIG_X86_TSC) += trace_clock.o 882965faa5SDave Youngobj-$(CONFIG_KEXEC_CORE) += machine_kexec_$(BITS).o 892965faa5SDave Youngobj-$(CONFIG_KEXEC_CORE) += relocate_kernel_$(BITS).o crash.o 9074ca317cSVivek Goyalobj-$(CONFIG_KEXEC_FILE) += kexec-bzimage64.o 916b0c3d44SSam Ravnborgobj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o 92f684199fSMasami Hiramatsuobj-y += kprobes/ 930fdc83b9SAmerigo Wangobj-$(CONFIG_MODULES) += module.o 944d067d8eSBorislav Petkovobj-$(CONFIG_DOUBLEFAULT) += doublefault.o 9582da3ff8SIngo Molnarobj-$(CONFIG_KGDB) += kgdb.o 966b0c3d44SSam Ravnborgobj-$(CONFIG_VM86) += vm86_32.o 976b0c3d44SSam Ravnborgobj-$(CONFIG_EARLY_PRINTK) += early_printk.o 986b0c3d44SSam Ravnborg 996b0c3d44SSam Ravnborgobj-$(CONFIG_HPET_TIMER) += hpet.o 100bb24c471SJacob Panobj-$(CONFIG_APB_TIMER) += apb_timer.o 1016b0c3d44SSam Ravnborg 10223ac4ae8SAndreas Herrmannobj-$(CONFIG_AMD_NB) += amd_nb.o 103aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o 104aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o 10599e8b9caSDon Zickusobj-$(CONFIG_DEBUG_NMI_SELFTEST) += nmi_selftest.o 1066b0c3d44SSam Ravnborg 10790993cddSMarcelo Tosattiobj-$(CONFIG_KVM_GUEST) += kvm.o kvmclock.o 108b4ecc126SJeremy Fitzhardingeobj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o 109b4ecc126SJeremy Fitzhardingeobj-$(CONFIG_PARAVIRT_SPINLOCKS)+= paravirt-spinlocks.o 1107af192c9SGerd Hoffmannobj-$(CONFIG_PARAVIRT_CLOCK) += pvclock.o 1117a67832cSDan Williamsobj-$(CONFIG_X86_PMEM_LEGACY_DEVICE) += pmem.o 11267926892SMichael Opdenacker 113e5e1d3cbSStas Sergeevobj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o 1146b0c3d44SSam Ravnborg 115b43d196cSArjan van de Venobj-$(CONFIG_X86_CHECK_BIOS_CORRUPTION) += check.o 116b43d196cSArjan van de Ven 117b041cf22SIan Campbellobj-$(CONFIG_SWIOTLB) += pci-swiotlb.o 118da6b737bSSebastian Andrzej Siewiorobj-$(CONFIG_OF) += devicetree.o 1192b144498SSrikar Dronamrajuobj-$(CONFIG_UPROBES) += uprobes.o 120e3263ab3SDavid Herrmannobj-y += sysfb.o 121e3263ab3SDavid Herrmannobj-$(CONFIG_X86_SYSFB) += sysfb_simplefb.o 1222995e506SDavid Herrmannobj-$(CONFIG_EFI) += sysfb_efi.o 123cfb80c9eSJeremy Fitzhardinge 124c5e63197SJiri Olsaobj-$(CONFIG_PERF_EVENTS) += perf_regs.o 125cf910e83SSeiji Aguchiobj-$(CONFIG_TRACING) += tracepoint.o 126de966cf4STim Chenobj-$(CONFIG_SCHED_MC_PRIO) += itmt.o 127c5e63197SJiri Olsa 1287c7900f8SJosh Poimboeufifdef CONFIG_FRAME_POINTER 1297c7900f8SJosh Poimboeufobj-y += unwind_frame.o 1307c7900f8SJosh Poimboeufelse 1317c7900f8SJosh Poimboeufobj-y += unwind_guess.o 1327c7900f8SJosh Poimboeufendif 1337c7900f8SJosh Poimboeuf 1346b0c3d44SSam Ravnborg### 1356b0c3d44SSam Ravnborg# 64 bit specific files 1366b0c3d44SSam Ravnborgifeq ($(CONFIG_X86_64),y) 1376b0c3d44SSam Ravnborg obj-$(CONFIG_AUDIT) += audit_64.o 1386b0c3d44SSam Ravnborg 139fffcda11SJoerg Roedel obj-$(CONFIG_GART_IOMMU) += amd_gart_64.o aperture_64.o 1406b0c3d44SSam Ravnborg obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o 141d39398a3SYinghai Lu 142d39398a3SYinghai Lu obj-$(CONFIG_PCI_MMCONFIG) += mmconf-fam10h_64.o 14370511134SRavikiran G Thirumalai obj-y += vsmp_64.o 1446b0c3d44SSam Ravnborgendif 145