16b0c3d44SSam Ravnborg# 26b0c3d44SSam Ravnborg# Makefile for the linux kernel. 36b0c3d44SSam Ravnborg# 488e4d250SSam Ravnborg 50c51a965SHuang, Yingextra-y := head_$(BITS).o head$(BITS).o head.o init_task.o vmlinux.lds 66b0c3d44SSam Ravnborg 76b0c3d44SSam RavnborgCPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) 8e43eb7baSIngo Molnar 9606576ceSSteven Rostedtifdef CONFIG_FUNCTION_TRACER 1034646bcaSIngo Molnar# Do not profile debug and lowlevel utilities 118e9509c8SIngo MolnarCFLAGS_REMOVE_tsc.o = -pg 127fa09f24SSteven RostedtCFLAGS_REMOVE_rtc.o = -pg 13d5de8841SJeremy FitzhardingeCFLAGS_REMOVE_paravirt-spinlocks.o = -pg 149ecd4e16SJeremy FitzhardingeCFLAGS_REMOVE_pvclock.o = -pg 1515adc048SSteven RostedtCFLAGS_REMOVE_ftrace.o = -pg 166cf87efbSIngo MolnarCFLAGS_REMOVE_early_printk.o = -pg 177fa09f24SSteven Rostedtendif 187fa09f24SSteven Rostedt 19e43eb7baSIngo Molnar# 20e43eb7baSIngo Molnar# vsyscalls (which work on the user stack) should have 21e43eb7baSIngo Molnar# no stack-protector checks: 22e43eb7baSIngo Molnar# 23e43eb7baSIngo Molnarnostackp := $(call cc-option, -fno-stack-protector) 24e43eb7baSIngo MolnarCFLAGS_vsyscall_64.o := $(PROFILING) -g0 $(nostackp) 25e43eb7baSIngo MolnarCFLAGS_hpet.o := $(nostackp) 263d0decc4SIngo MolnarCFLAGS_tsc.o := $(nostackp) 274c7f8900SIngo MolnarCFLAGS_paravirt.o := $(nostackp) 287bf99fb6SPeter OberparleiterGCOV_PROFILE_vsyscall_64.o := n 297bf99fb6SPeter OberparleiterGCOV_PROFILE_hpet.o := n 30f386c61fSPeter OberparleiterGCOV_PROFILE_tsc.o := n 31f386c61fSPeter OberparleiterGCOV_PROFILE_paravirt.o := n 326b0c3d44SSam Ravnborg 335ceb40daSHiroshi Shimamotoobj-y := process_$(BITS).o signal.o entry_$(BITS).o 346b39ba77SThomas Gleixnerobj-y += traps.o irq.o irq_$(BITS).o dumpstack_$(BITS).o 3547926214SThomas Gleixnerobj-y += time.o ioport.o ldt.o dumpstack.o 3657844a8fSThomas Gleixnerobj-y += setup.o x86_init.o i8259.o irqinit.o 3726dd9fcfSIngo Molnarobj-$(CONFIG_X86_VISWS) += visws_quirks.o 382a05180fSIngo Molnarobj-$(CONFIG_X86_32) += probe_roms_32.o 396b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32) += sys_i386_32.o i386_ksyms_32.o 406b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o 410f0124faSYinghai Luobj-$(CONFIG_X86_64) += syscall_64.o vsyscall_64.o 42064d25f1SYinghai Luobj-y += bootflag.o e820.o 43459121c9SGlauber Costaobj-y += pci-dma.o quirks.o i8237.o topology.o kdebugfs.o 440067f129SK.Prasadobj-y += alternative.o i8253.o pci-nommu.o hw_breakpoint.o 458fbbc4b4SAlok Katariaobj-y += tsc.o io_delay.o rtc.o 466b0c3d44SSam Ravnborg 4777ad386eSIngo Molnarobj-$(CONFIG_X86_TRAMPOLINE) += trampoline.o 4861c4628bSSuresh Siddhaobj-y += process.o 49dc1e35c6SSuresh Siddhaobj-y += i387.o xsave.o 506b0c3d44SSam Ravnborgobj-y += ptrace.o 516b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32) += tls.o 526b0c3d44SSam Ravnborgobj-$(CONFIG_IA32_EMULATION) += tls.o 536b0c3d44SSam Ravnborgobj-y += step.o 5431625340SJoseph Cihulaobj-$(CONFIG_INTEL_TXT) += tboot.o 556b0c3d44SSam Ravnborgobj-$(CONFIG_STACKTRACE) += stacktrace.o 566b0c3d44SSam Ravnborgobj-y += cpu/ 576b0c3d44SSam Ravnborgobj-y += acpi/ 58efafc8b2SFeng Tangobj-$(CONFIG_SFI) += sfi.o 59f095df0aSIngo Molnarobj-y += reboot.o 606b0c3d44SSam Ravnborgobj-$(CONFIG_MCA) += mca_32.o 616b0c3d44SSam Ravnborgobj-$(CONFIG_X86_MSR) += msr.o 626b0c3d44SSam Ravnborgobj-$(CONFIG_X86_CPUID) += cpuid.o 636b0c3d44SSam Ravnborgobj-$(CONFIG_PCI) += early-quirks.o 643a900d89SSam Ravnborgapm-y := apm_32.o 653a900d89SSam Ravnborgobj-$(CONFIG_APM) += apm.o 663e5095d1SIngo Molnarobj-$(CONFIG_SMP) += smp.o 67f62bae50SIngo Molnarobj-$(CONFIG_SMP) += smpboot.o tsc_sync.o 68996db817SBrian Gerstobj-$(CONFIG_SMP) += setup_percpu.o 69b2d2f431SBrian Gerstobj-$(CONFIG_X86_64_SMP) += tsc_sync.o 706b0c3d44SSam Ravnborgobj-$(CONFIG_X86_TRAMPOLINE) += trampoline_$(BITS).o 7185bdddecSAlexey Starikovskiyobj-$(CONFIG_X86_MPPARSE) += mpparse.o 729be1b56aSIngo Molnarobj-y += apic/ 736b0c3d44SSam Ravnborgobj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o 743d083395SSteven Rostedtobj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o 75fb52607aSFrederic Weisbeckerobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += ftrace.o 76ccd50dfdSIngo Molnarobj-$(CONFIG_FTRACE_SYSCALLS) += ftrace.o 776b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC) += machine_kexec_$(BITS).o 786b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC) += relocate_kernel_$(BITS).o crash.o 796b0c3d44SSam Ravnborgobj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o 806b0c3d44SSam Ravnborgobj-$(CONFIG_KPROBES) += kprobes.o 810fdc83b9SAmerigo Wangobj-$(CONFIG_MODULES) += module.o 826b0c3d44SSam Ravnborgobj-$(CONFIG_EFI) += efi.o efi_$(BITS).o efi_stub_$(BITS).o 836b0c3d44SSam Ravnborgobj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o 8482da3ff8SIngo Molnarobj-$(CONFIG_KGDB) += kgdb.o 856b0c3d44SSam Ravnborgobj-$(CONFIG_VM86) += vm86_32.o 866b0c3d44SSam Ravnborgobj-$(CONFIG_EARLY_PRINTK) += early_printk.o 876b0c3d44SSam Ravnborg 886b0c3d44SSam Ravnborgobj-$(CONFIG_HPET_TIMER) += hpet.o 89bb24c471SJacob Panobj-$(CONFIG_APB_TIMER) += apb_timer.o 906b0c3d44SSam Ravnborg 916b0c3d44SSam Ravnborgobj-$(CONFIG_K8_NB) += k8.o 92aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o 93aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o 946b0c3d44SSam Ravnborg 956b0c3d44SSam Ravnborgobj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o 960cf1bfd2SMarcelo Tosattiobj-$(CONFIG_KVM_GUEST) += kvm.o 97790c73f6SGlauber de Oliveira Costaobj-$(CONFIG_KVM_CLOCK) += kvmclock.o 98b4ecc126SJeremy Fitzhardingeobj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o 99b4ecc126SJeremy Fitzhardingeobj-$(CONFIG_PARAVIRT_SPINLOCKS)+= paravirt-spinlocks.o 1007af192c9SGerd Hoffmannobj-$(CONFIG_PARAVIRT_CLOCK) += pvclock.o 10167926892SMichael Opdenacker 102e5e1d3cbSStas Sergeevobj-$(CONFIG_PCSPKR_PLATFORM) += pcspeaker.o 1036b0c3d44SSam Ravnborg 1043bc9a77eSSam Ravnborgobj-$(CONFIG_SCx200) += scx200.o 1053bc9a77eSSam Ravnborgscx200-y += scx200_32.o 1066b0c3d44SSam Ravnborg 1073ef0e1f8SAndres Salomonobj-$(CONFIG_OLPC) += olpc.o 108fd699c76SAndres Salomonobj-$(CONFIG_OLPC_OPENFIRMWARE) += olpc_ofw.o 1093f4110a4SThomas Gleixnerobj-$(CONFIG_X86_MRST) += mrst.o 1103ef0e1f8SAndres Salomon 11118dbc916SDmitry Adamushkomicrocode-y := microcode_core.o 11218dbc916SDmitry Adamushkomicrocode-$(CONFIG_MICROCODE_INTEL) += microcode_intel.o 11318dbc916SDmitry Adamushkomicrocode-$(CONFIG_MICROCODE_AMD) += microcode_amd.o 11418dbc916SDmitry Adamushkoobj-$(CONFIG_MICROCODE) += microcode.o 11518dbc916SDmitry Adamushko 116b43d196cSArjan van de Venobj-$(CONFIG_X86_CHECK_BIOS_CORRUPTION) += check.o 117b43d196cSArjan van de Ven 118b041cf22SIan Campbellobj-$(CONFIG_SWIOTLB) += pci-swiotlb.o 119cfb80c9eSJeremy Fitzhardinge 1206b0c3d44SSam Ravnborg### 1216b0c3d44SSam Ravnborg# 64 bit specific files 1226b0c3d44SSam Ravnborgifeq ($(CONFIG_X86_64),y) 1235ab5ab34SDimitri Sivanich obj-$(CONFIG_X86_UV) += tlb_uv.o bios_uv.o uv_irq.o uv_sysfs.o uv_time.o 1246b0c3d44SSam Ravnborg obj-$(CONFIG_X86_PM_TIMER) += pmtimer_64.o 1256b0c3d44SSam Ravnborg obj-$(CONFIG_AUDIT) += audit_64.o 1266b0c3d44SSam Ravnborg 1276b0c3d44SSam Ravnborg obj-$(CONFIG_GART_IOMMU) += pci-gart_64.o aperture_64.o 1286b0c3d44SSam Ravnborg obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o 129000fca2dSJoerg Roedel obj-$(CONFIG_AMD_IOMMU) += amd_iommu_init.o amd_iommu.o 130d39398a3SYinghai Lu 131d39398a3SYinghai Lu obj-$(CONFIG_PCI_MMCONFIG) += mmconf-fam10h_64.o 13270511134SRavikiran G Thirumalai obj-y += vsmp_64.o 1336b0c3d44SSam Ravnborgendif 134