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 256b0c3d44SSam Ravnborgobj-y += pci-dma_$(BITS).o bootflag.o e820_$(BITS).o 266d7d7433SHuang, Yingobj-y += quirks.o i8237.o topology.o kdebugfs.o 276b0c3d44SSam Ravnborgobj-y += alternative.o i8253.o 286b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64) += pci-nommu_64.o bugs_64.o 296b0c3d44SSam Ravnborgobj-y += tsc_$(BITS).o io_delay.o rtc.o 306b0c3d44SSam Ravnborg 316b0c3d44SSam Ravnborgobj-y += i387.o 326b0c3d44SSam Ravnborgobj-y += ptrace.o 336b0c3d44SSam Ravnborgobj-y += ds.o 346b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32) += tls.o 356b0c3d44SSam Ravnborgobj-$(CONFIG_IA32_EMULATION) += tls.o 366b0c3d44SSam Ravnborgobj-y += step.o 376b0c3d44SSam Ravnborgobj-$(CONFIG_STACKTRACE) += stacktrace.o 386b0c3d44SSam Ravnborgobj-y += cpu/ 396b0c3d44SSam Ravnborgobj-y += acpi/ 404d022e35SMiguel Botonobj-$(CONFIG_X86_BIOS_REBOOT) += reboot.o 414d022e35SMiguel Botonobj-$(CONFIG_X86_64) += reboot.o 426b0c3d44SSam Ravnborgobj-$(CONFIG_MCA) += mca_32.o 436b0c3d44SSam Ravnborgobj-$(CONFIG_X86_MSR) += msr.o 446b0c3d44SSam Ravnborgobj-$(CONFIG_X86_CPUID) += cpuid.o 456b0c3d44SSam Ravnborgobj-$(CONFIG_MICROCODE) += microcode.o 466b0c3d44SSam Ravnborgobj-$(CONFIG_PCI) += early-quirks.o 473a900d89SSam Ravnborgapm-y := apm_32.o 483a900d89SSam Ravnborgobj-$(CONFIG_APM) += apm.o 494cedb334SGlauber de Oliveira Costaobj-$(CONFIG_X86_SMP) += smp.o 50c048fdfeSGlauber Costaobj-$(CONFIG_X86_SMP) += smpboot.o tsc_sync.o ipi.o tlb_$(BITS).o 51e32640a2SGlauber Costaobj-$(CONFIG_X86_32_SMP) += smpcommon.o 524cedb334SGlauber de Oliveira Costaobj-$(CONFIG_X86_64_SMP) += tsc_sync.o smpcommon.o 536b0c3d44SSam Ravnborgobj-$(CONFIG_X86_TRAMPOLINE) += trampoline_$(BITS).o 5485bdddecSAlexey Starikovskiyobj-$(CONFIG_X86_MPPARSE) += mpparse.o 556b0c3d44SSam Ravnborgobj-$(CONFIG_X86_LOCAL_APIC) += apic_$(BITS).o nmi_$(BITS).o 566b0c3d44SSam Ravnborgobj-$(CONFIG_X86_IO_APIC) += io_apic_$(BITS).o 576b0c3d44SSam Ravnborgobj-$(CONFIG_X86_REBOOTFIXUPS) += reboot_fixups_32.o 586b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC) += machine_kexec_$(BITS).o 596b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC) += relocate_kernel_$(BITS).o crash.o 606b0c3d44SSam Ravnborgobj-$(CONFIG_CRASH_DUMP) += crash_dump_$(BITS).o 616b0c3d44SSam Ravnborgobj-$(CONFIG_X86_NUMAQ) += numaq_32.o 626b0c3d44SSam Ravnborgobj-$(CONFIG_X86_SUMMIT_NUMA) += summit_32.o 63aa7d8e25SRavikiran G Thirumalaiobj-y += vsmp_64.o 646b0c3d44SSam Ravnborgobj-$(CONFIG_KPROBES) += kprobes.o 656b0c3d44SSam Ravnborgobj-$(CONFIG_MODULES) += module_$(BITS).o 666b0c3d44SSam Ravnborgobj-$(CONFIG_ACPI_SRAT) += srat_32.o 676b0c3d44SSam Ravnborgobj-$(CONFIG_EFI) += efi.o efi_$(BITS).o efi_stub_$(BITS).o 686b0c3d44SSam Ravnborgobj-$(CONFIG_DOUBLEFAULT) += doublefault_32.o 696b0c3d44SSam Ravnborgobj-$(CONFIG_VM86) += vm86_32.o 706b0c3d44SSam Ravnborgobj-$(CONFIG_EARLY_PRINTK) += early_printk.o 716b0c3d44SSam Ravnborg 726b0c3d44SSam Ravnborgobj-$(CONFIG_HPET_TIMER) += hpet.o 736b0c3d44SSam Ravnborg 746b0c3d44SSam Ravnborgobj-$(CONFIG_K8_NB) += k8.o 756b0c3d44SSam Ravnborgobj-$(CONFIG_MGEODE_LX) += geode_32.o mfgpt_32.o 76aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_RODATA_TEST) += test_rodata.o 77aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_NX_TEST) += test_nx.o 786b0c3d44SSam Ravnborg 796b0c3d44SSam Ravnborgobj-$(CONFIG_VMI) += vmi_32.o vmiclock_32.o 806b0c3d44SSam Ravnborgobj-$(CONFIG_PARAVIRT) += paravirt.o paravirt_patch_$(BITS).o 8167926892SMichael Opdenacker 8267926892SMichael Opdenackerifdef CONFIG_INPUT_PCSPKR 836b0c3d44SSam Ravnborgobj-y += pcspeaker.o 8467926892SMichael Opdenackerendif 856b0c3d44SSam Ravnborg 863bc9a77eSSam Ravnborgobj-$(CONFIG_SCx200) += scx200.o 873bc9a77eSSam Ravnborgscx200-y += scx200_32.o 886b0c3d44SSam Ravnborg 896b0c3d44SSam Ravnborg### 906b0c3d44SSam Ravnborg# 64 bit specific files 916b0c3d44SSam Ravnborgifeq ($(CONFIG_X86_64),y) 92ac23d4eeSJack Steiner obj-y += genapic_64.o genapic_flat_64.o genx2apic_uv_x.o 936b0c3d44SSam Ravnborg obj-$(CONFIG_X86_PM_TIMER) += pmtimer_64.o 946b0c3d44SSam Ravnborg obj-$(CONFIG_AUDIT) += audit_64.o 956b0c3d44SSam Ravnborg 966b0c3d44SSam Ravnborg obj-$(CONFIG_GART_IOMMU) += pci-gart_64.o aperture_64.o 976b0c3d44SSam Ravnborg obj-$(CONFIG_CALGARY_IOMMU) += pci-calgary_64.o tce_64.o 986b0c3d44SSam Ravnborg obj-$(CONFIG_SWIOTLB) += pci-swiotlb_64.o 996b0c3d44SSam Ravnborgendif 100