16b0c3d44SSam Ravnborg# 26b0c3d44SSam Ravnborg# Makefile for the linux kernel. 36b0c3d44SSam Ravnborg# 488e4d250SSam Ravnborg 5700efc1bSEric W. Biedermanextra-y := head_$(BITS).o head$(BITS).o init_task.o vmlinux.lds 66b0c3d44SSam Ravnborg 76b0c3d44SSam RavnborgCPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE) 8e43eb7baSIngo Molnar 9e43eb7baSIngo Molnar# 10e43eb7baSIngo Molnar# vsyscalls (which work on the user stack) should have 11e43eb7baSIngo Molnar# no stack-protector checks: 12e43eb7baSIngo Molnar# 13e43eb7baSIngo Molnarnostackp := $(call cc-option, -fno-stack-protector) 14e43eb7baSIngo MolnarCFLAGS_vsyscall_64.o := $(PROFILING) -g0 $(nostackp) 15e43eb7baSIngo MolnarCFLAGS_hpet.o := $(nostackp) 16e43eb7baSIngo MolnarCFLAGS_tsc_64.o := $(nostackp) 176b0c3d44SSam Ravnborg 186b0c3d44SSam Ravnborgobj-y := process_$(BITS).o signal_$(BITS).o entry_$(BITS).o 196b0c3d44SSam Ravnborgobj-y += traps_$(BITS).o irq_$(BITS).o 20ccafa59aSmboton@gmail.comobj-y += time_$(BITS).o ioport.o ldt.o 214fe29a85SGlauber de Oliveira Costaobj-y += setup_$(BITS).o i8259_$(BITS).o setup.o 226b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32) += sys_i386_32.o i386_ksyms_32.o 236b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64) += sys_x86_64.o x8664_ksyms_64.o 246b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64) += syscall_64.o vsyscall_64.o setup64.o 25098cb7f2SGlauber Costaobj-y += bootflag.o e820_$(BITS).o 26459121c9SGlauber Costaobj-y += pci-dma.o quirks.o i8237.o topology.o kdebugfs.o 27f9c258deSGlauber Costaobj-y += alternative.o i8253.o pci-nommu.o 28f9c258deSGlauber Costaobj-$(CONFIG_X86_64) += bugs_64.o 296b0c3d44SSam Ravnborgobj-y += tsc_$(BITS).o io_delay.o rtc.o 306b0c3d44SSam Ravnborg 3177ad386eSIngo Molnarobj-$(CONFIG_X86_TRAMPOLINE) += trampoline.o 3261c4628bSSuresh Siddhaobj-y += process.o 336b0c3d44SSam Ravnborgobj-y += i387.o 346b0c3d44SSam Ravnborgobj-y += ptrace.o 356b0c3d44SSam Ravnborgobj-y += ds.o 366b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32) += tls.o 376b0c3d44SSam Ravnborgobj-$(CONFIG_IA32_EMULATION) += tls.o 386b0c3d44SSam Ravnborgobj-y += step.o 396b0c3d44SSam Ravnborgobj-$(CONFIG_STACKTRACE) += stacktrace.o 406b0c3d44SSam Ravnborgobj-y += cpu/ 416b0c3d44SSam Ravnborgobj-y += acpi/ 424d022e35SMiguel Botonobj-$(CONFIG_X86_BIOS_REBOOT) += reboot.o 434d022e35SMiguel Botonobj-$(CONFIG_X86_64) += reboot.o 446b0c3d44SSam Ravnborgobj-$(CONFIG_MCA) += mca_32.o 456b0c3d44SSam Ravnborgobj-$(CONFIG_X86_MSR) += msr.o 466b0c3d44SSam Ravnborgobj-$(CONFIG_X86_CPUID) += cpuid.o 476b0c3d44SSam Ravnborgobj-$(CONFIG_MICROCODE) += microcode.o 486b0c3d44SSam Ravnborgobj-$(CONFIG_PCI) += early-quirks.o 493a900d89SSam Ravnborgapm-y := apm_32.o 503a900d89SSam Ravnborgobj-$(CONFIG_APM) += apm.o 514cedb334SGlauber de Oliveira Costaobj-$(CONFIG_X86_SMP) += smp.o 52c048fdfeSGlauber Costaobj-$(CONFIG_X86_SMP) += smpboot.o tsc_sync.o ipi.o tlb_$(BITS).o 53e32640a2SGlauber Costaobj-$(CONFIG_X86_32_SMP) += smpcommon.o 544cedb334SGlauber de Oliveira Costaobj-$(CONFIG_X86_64_SMP) += tsc_sync.o smpcommon.o 556b0c3d44SSam Ravnborgobj-$(CONFIG_X86_TRAMPOLINE) += trampoline_$(BITS).o 5685bdddecSAlexey Starikovskiyobj-$(CONFIG_X86_MPPARSE) += mpparse.o 576b0c3d44SSam Ravnborgobj-$(CONFIG_X86_LOCAL_APIC) += apic_$(BITS).o nmi_$(BITS).o 586b0c3d44SSam Ravnborgobj-$(CONFIG_X86_IO_APIC) += io_apic_$(BITS).o 596b0c3d44SSam Ravnborgobj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o 606b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC) += machine_kexec_$(BITS).o 616b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC) += relocate_kernel_$(BITS).o crash.o 626b0c3d44SSam Ravnborgobj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o 636b0c3d44SSam Ravnborgobj-$(CONFIG_X86_NUMAQ) += numaq_32.o 646b0c3d44SSam Ravnborgobj-$(CONFIG_X86_SUMMIT_NUMA) += summit_32.o 65aa7d8e25SRavikiran G Thirumalaiobj-y += vsmp_64.o 666b0c3d44SSam Ravnborgobj-$(CONFIG_KPROBES) += kprobes.o 676b0c3d44SSam Ravnborgobj-$(CONFIG_MODULES) += module_$(BITS).o 686b0c3d44SSam Ravnborgobj-$(CONFIG_ACPI_SRAT) += srat_32.o 696b0c3d44SSam Ravnborgobj-$(CONFIG_EFI) += efi.o efi_$(BITS).o efi_stub_$(BITS).o 706b0c3d44SSam Ravnborgobj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o 7182da3ff8SIngo Molnarobj-$(CONFIG_KGDB) += kgdb.o 726b0c3d44SSam Ravnborgobj-$(CONFIG_VM86) += vm86_32.o 736b0c3d44SSam Ravnborgobj-$(CONFIG_EARLY_PRINTK) += early_printk.o 746b0c3d44SSam Ravnborg 756b0c3d44SSam Ravnborgobj-$(CONFIG_HPET_TIMER) += hpet.o 766b0c3d44SSam Ravnborg 776b0c3d44SSam Ravnborgobj-$(CONFIG_K8_NB) += k8.o 786b0c3d44SSam Ravnborgobj-$(CONFIG_MGEODE_LX) += geode_32.o mfgpt_32.o 79aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o 80aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o 816b0c3d44SSam Ravnborg 826b0c3d44SSam Ravnborgobj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o 836b0c3d44SSam Ravnborgobj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o 8467926892SMichael Opdenacker 8567926892SMichael Opdenackerifdef CONFIG_INPUT_PCSPKR 866b0c3d44SSam Ravnborgobj-y += pcspeaker.o 8767926892SMichael Opdenackerendif 886b0c3d44SSam Ravnborg 893bc9a77eSSam Ravnborgobj-$(CONFIG_SCx200) += scx200.o 903bc9a77eSSam Ravnborgscx200-y += scx200_32.o 916b0c3d44SSam Ravnborg 926b0c3d44SSam Ravnborg### 936b0c3d44SSam Ravnborg# 64 bit specific files 946b0c3d44SSam Ravnborgifeq ($(CONFIG_X86_64),y) 95ac23d4eeSJack Steiner obj-y += genapic_64.o genapic_flat_64.o genx2apic_uv_x.o 966b0c3d44SSam Ravnborg obj-$(CONFIG_X86_PM_TIMER) += pmtimer_64.o 976b0c3d44SSam Ravnborg obj-$(CONFIG_AUDIT) += audit_64.o 986b0c3d44SSam Ravnborg 996b0c3d44SSam Ravnborg obj-$(CONFIG_GART_IOMMU) += pci-gart_64.o aperture_64.o 1006b0c3d44SSam Ravnborg obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o 1016b0c3d44SSam Ravnborg obj-$(CONFIG_SWIOTLB) += pci-swiotlb_64.o 1026b0c3d44SSam Ravnborgendif 103