xref: /openbmc/linux/arch/x86/kernel/Makefile (revision ec42418f)
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
21ec42418fSThomas Gleixnerobj-y			+= setup_$(BITS).o i8259.o irqinit_$(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
436b0c3d44SSam Ravnborgobj-$(CONFIG_MCA)		+= mca_32.o
446b0c3d44SSam Ravnborgobj-$(CONFIG_X86_MSR)		+= msr.o
456b0c3d44SSam Ravnborgobj-$(CONFIG_X86_CPUID)		+= cpuid.o
466b0c3d44SSam Ravnborgobj-$(CONFIG_MICROCODE)		+= microcode.o
476b0c3d44SSam Ravnborgobj-$(CONFIG_PCI)		+= early-quirks.o
483a900d89SSam Ravnborgapm-y				:= apm_32.o
493a900d89SSam Ravnborgobj-$(CONFIG_APM)		+= apm.o
504cedb334SGlauber de Oliveira Costaobj-$(CONFIG_X86_SMP)		+= smp.o
51c048fdfeSGlauber Costaobj-$(CONFIG_X86_SMP)		+= smpboot.o tsc_sync.o ipi.o tlb_$(BITS).o
52e32640a2SGlauber Costaobj-$(CONFIG_X86_32_SMP)	+= smpcommon.o
534cedb334SGlauber de Oliveira Costaobj-$(CONFIG_X86_64_SMP)	+= tsc_sync.o smpcommon.o
546b0c3d44SSam Ravnborgobj-$(CONFIG_X86_TRAMPOLINE)	+= trampoline_$(BITS).o
5585bdddecSAlexey Starikovskiyobj-$(CONFIG_X86_MPPARSE)	+= mpparse.o
566b0c3d44SSam Ravnborgobj-$(CONFIG_X86_LOCAL_APIC)	+= apic_$(BITS).o nmi_$(BITS).o
576b0c3d44SSam Ravnborgobj-$(CONFIG_X86_IO_APIC)	+= io_apic_$(BITS).o
586b0c3d44SSam Ravnborgobj-$(CONFIG_X86_REBOOTFIXUPS)	+= reboot_fixups_32.o
596b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC)		+= machine_kexec_$(BITS).o
606b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC)		+= relocate_kernel_$(BITS).o crash.o
616b0c3d44SSam Ravnborgobj-$(CONFIG_CRASH_DUMP)	+= crash_dump_$(BITS).o
626b0c3d44SSam Ravnborgobj-$(CONFIG_X86_NUMAQ)		+= numaq_32.o
636b0c3d44SSam Ravnborgobj-$(CONFIG_X86_SUMMIT_NUMA)	+= summit_32.o
64aa7d8e25SRavikiran G Thirumalaiobj-y				+= vsmp_64.o
656b0c3d44SSam Ravnborgobj-$(CONFIG_KPROBES)		+= kprobes.o
666b0c3d44SSam Ravnborgobj-$(CONFIG_MODULES)		+= module_$(BITS).o
676b0c3d44SSam Ravnborgobj-$(CONFIG_ACPI_SRAT) 	+= srat_32.o
686b0c3d44SSam Ravnborgobj-$(CONFIG_EFI) 		+= efi.o efi_$(BITS).o efi_stub_$(BITS).o
696b0c3d44SSam Ravnborgobj-$(CONFIG_DOUBLEFAULT) 	+= doublefault_32.o
7082da3ff8SIngo Molnarobj-$(CONFIG_KGDB)		+= kgdb.o
716b0c3d44SSam Ravnborgobj-$(CONFIG_VM86)		+= vm86_32.o
726b0c3d44SSam Ravnborgobj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
736b0c3d44SSam Ravnborg
746b0c3d44SSam Ravnborgobj-$(CONFIG_HPET_TIMER) 	+= hpet.o
756b0c3d44SSam Ravnborg
766b0c3d44SSam Ravnborgobj-$(CONFIG_K8_NB)		+= k8.o
776b0c3d44SSam Ravnborgobj-$(CONFIG_MGEODE_LX)		+= geode_32.o mfgpt_32.o
78aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_RODATA_TEST)	+= test_rodata.o
79aba8391fSIngo Molnarobj-$(CONFIG_DEBUG_NX_TEST)	+= test_nx.o
806b0c3d44SSam Ravnborg
816b0c3d44SSam Ravnborgobj-$(CONFIG_VMI)		+= vmi_32.o vmiclock_32.o
820cf1bfd2SMarcelo Tosattiobj-$(CONFIG_KVM_GUEST)		+= kvm.o
83790c73f6SGlauber de Oliveira Costaobj-$(CONFIG_KVM_CLOCK)		+= kvmclock.o
846b0c3d44SSam Ravnborgobj-$(CONFIG_PARAVIRT)		+= paravirt.o paravirt_patch_$(BITS).o
8567926892SMichael Opdenacker
86e5e1d3cbSStas Sergeevobj-$(CONFIG_PCSPKR_PLATFORM)	+= pcspeaker.o
876b0c3d44SSam Ravnborg
883bc9a77eSSam Ravnborgobj-$(CONFIG_SCx200)		+= scx200.o
893bc9a77eSSam Ravnborgscx200-y			+= scx200_32.o
906b0c3d44SSam Ravnborg
913ef0e1f8SAndres Salomonobj-$(CONFIG_OLPC)		+= olpc.o
923ef0e1f8SAndres Salomon
936b0c3d44SSam Ravnborg###
946b0c3d44SSam Ravnborg# 64 bit specific files
956b0c3d44SSam Ravnborgifeq ($(CONFIG_X86_64),y)
96ac23d4eeSJack Steiner        obj-y				+= genapic_64.o genapic_flat_64.o genx2apic_uv_x.o
976b0c3d44SSam Ravnborg        obj-$(CONFIG_X86_PM_TIMER)	+= pmtimer_64.o
986b0c3d44SSam Ravnborg        obj-$(CONFIG_AUDIT)		+= audit_64.o
996b0c3d44SSam Ravnborg
1006b0c3d44SSam Ravnborg        obj-$(CONFIG_GART_IOMMU)	+= pci-gart_64.o aperture_64.o
1016b0c3d44SSam Ravnborg        obj-$(CONFIG_CALGARY_IOMMU)	+= pci-calgary_64.o tce_64.o
1026b0c3d44SSam Ravnborg        obj-$(CONFIG_SWIOTLB)		+= pci-swiotlb_64.o
103d39398a3SYinghai Lu
104d39398a3SYinghai Lu        obj-$(CONFIG_PCI_MMCONFIG)	+= mmconf-fam10h_64.o
1056b0c3d44SSam Ravnborgendif
106