xref: /openbmc/linux/arch/x86/kernel/Makefile (revision 6b0c3d44)
16b0c3d44SSam Ravnborg#
26b0c3d44SSam Ravnborg# Makefile for the linux kernel.
36b0c3d44SSam Ravnborg#
488e4d250SSam Ravnborg
56b0c3d44SSam Ravnborgextra-y                := head_$(BITS).o init_task.o vmlinux.lds
66b0c3d44SSam Ravnborgextra-$(CONFIG_X86_64) += head64.o
76b0c3d44SSam Ravnborg
86b0c3d44SSam RavnborgCPPFLAGS_vmlinux.lds += -U$(UTS_MACHINE)
96b0c3d44SSam RavnborgCFLAGS_vsyscall_64.o := $(PROFILING) -g0
106b0c3d44SSam Ravnborg
116b0c3d44SSam Ravnborgobj-y			:= process_$(BITS).o signal_$(BITS).o entry_$(BITS).o
126b0c3d44SSam Ravnborgobj-y			+= traps_$(BITS).o irq_$(BITS).o
136b0c3d44SSam Ravnborgobj-y			+= time_$(BITS).o ioport_$(BITS).o ldt.o
146b0c3d44SSam Ravnborgobj-y			+= setup_$(BITS).o i8259_$(BITS).o
156b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32)	+= sys_i386_32.o i386_ksyms_32.o
166b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64)	+= sys_x86_64.o x8664_ksyms_64.o
176b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64)	+= syscall_64.o vsyscall_64.o setup64.o
186b0c3d44SSam Ravnborgobj-y			+= pci-dma_$(BITS).o  bootflag.o e820_$(BITS).o
196b0c3d44SSam Ravnborgobj-y			+= quirks.o i8237.o topology.o
206b0c3d44SSam Ravnborgobj-y			+= alternative.o i8253.o
216b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64)	+= pci-nommu_64.o bugs_64.o
226b0c3d44SSam Ravnborgobj-y			+= tsc_$(BITS).o io_delay.o rtc.o
236b0c3d44SSam Ravnborg
246b0c3d44SSam Ravnborgobj-y				+= i387.o
256b0c3d44SSam Ravnborgobj-y				+= ptrace.o
266b0c3d44SSam Ravnborgobj-y				+= ds.o
276b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32)		+= tls.o
286b0c3d44SSam Ravnborgobj-$(CONFIG_IA32_EMULATION)	+= tls.o
296b0c3d44SSam Ravnborgobj-y				+= step.o
306b0c3d44SSam Ravnborgobj-$(CONFIG_STACKTRACE)	+= stacktrace.o
316b0c3d44SSam Ravnborgobj-y				+= cpu/
326b0c3d44SSam Ravnborgobj-y				+= acpi/
336b0c3d44SSam Ravnborgobj-$(CONFIG_X86_BIOS_REBOOT)	+= reboot_32.o
346b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64)            += reboot_64.o
356b0c3d44SSam Ravnborgobj-$(CONFIG_MCA)		+= mca_32.o
366b0c3d44SSam Ravnborgobj-$(CONFIG_X86_MSR)		+= msr.o
376b0c3d44SSam Ravnborgobj-$(CONFIG_X86_CPUID)		+= cpuid.o
386b0c3d44SSam Ravnborgobj-$(CONFIG_MICROCODE)		+= microcode.o
396b0c3d44SSam Ravnborgobj-$(CONFIG_PCI)		+= early-quirks.o
406b0c3d44SSam Ravnborgobj-$(CONFIG_APM)		+= apm_32.o
416b0c3d44SSam Ravnborgobj-$(CONFIG_X86_SMP)		+= smp_$(BITS).o smpboot_$(BITS).o tsc_sync.o
426b0c3d44SSam Ravnborgobj-$(CONFIG_X86_32_SMP)	+= smpcommon_32.o
436b0c3d44SSam Ravnborgobj-$(CONFIG_X86_64_SMP)	+= smp_64.o smpboot_64.o tsc_sync.o
446b0c3d44SSam Ravnborgobj-$(CONFIG_X86_TRAMPOLINE)	+= trampoline_$(BITS).o
456b0c3d44SSam Ravnborgobj-$(CONFIG_X86_MPPARSE)	+= mpparse_$(BITS).o
466b0c3d44SSam Ravnborgobj-$(CONFIG_X86_LOCAL_APIC)	+= apic_$(BITS).o nmi_$(BITS).o
476b0c3d44SSam Ravnborgobj-$(CONFIG_X86_IO_APIC)	+= io_apic_$(BITS).o
486b0c3d44SSam Ravnborgobj-$(CONFIG_X86_REBOOTFIXUPS)	+= reboot_fixups_32.o
496b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC)		+= machine_kexec_$(BITS).o
506b0c3d44SSam Ravnborgobj-$(CONFIG_KEXEC)		+= relocate_kernel_$(BITS).o crash.o
516b0c3d44SSam Ravnborgobj-$(CONFIG_CRASH_DUMP)	+= crash_dump_$(BITS).o
526b0c3d44SSam Ravnborgobj-$(CONFIG_X86_NUMAQ)		+= numaq_32.o
536b0c3d44SSam Ravnborgobj-$(CONFIG_X86_SUMMIT_NUMA)	+= summit_32.o
546b0c3d44SSam Ravnborgobj-$(CONFIG_X86_VSMP)		+= vsmp_64.o
556b0c3d44SSam Ravnborgobj-$(CONFIG_KPROBES)		+= kprobes.o
566b0c3d44SSam Ravnborgobj-$(CONFIG_MODULES)		+= module_$(BITS).o
576b0c3d44SSam Ravnborgobj-$(CONFIG_ACPI_SRAT) 	+= srat_32.o
586b0c3d44SSam Ravnborgobj-$(CONFIG_EFI) 		+= efi.o efi_$(BITS).o efi_stub_$(BITS).o
596b0c3d44SSam Ravnborgobj-$(CONFIG_DOUBLEFAULT) 	+= doublefault_32.o
606b0c3d44SSam Ravnborgobj-$(CONFIG_VM86)		+= vm86_32.o
616b0c3d44SSam Ravnborgobj-$(CONFIG_EARLY_PRINTK)	+= early_printk.o
626b0c3d44SSam Ravnborg
636b0c3d44SSam Ravnborgobj-$(CONFIG_HPET_TIMER) 	+= hpet.o
646b0c3d44SSam Ravnborg
656b0c3d44SSam Ravnborgobj-$(CONFIG_K8_NB)		+= k8.o
666b0c3d44SSam Ravnborgobj-$(CONFIG_MGEODE_LX)		+= geode_32.o mfgpt_32.o
676b0c3d44SSam Ravnborg
686b0c3d44SSam Ravnborgobj-$(CONFIG_VMI)		+= vmi_32.o vmiclock_32.o
696b0c3d44SSam Ravnborgobj-$(CONFIG_PARAVIRT)		+= paravirt.o paravirt_patch_$(BITS).o
706b0c3d44SSam Ravnborgobj-y				+= pcspeaker.o
716b0c3d44SSam Ravnborg
726b0c3d44SSam Ravnborgobj-$(CONFIG_SCx200)		+= scx200_32.o
736b0c3d44SSam Ravnborg
746b0c3d44SSam Ravnborg###
756b0c3d44SSam Ravnborg# 64 bit specific files
766b0c3d44SSam Ravnborgifeq ($(CONFIG_X86_64),y)
776b0c3d44SSam Ravnborg        obj-y				+= genapic_64.o genapic_flat_64.o
786b0c3d44SSam Ravnborg        obj-$(CONFIG_X86_PM_TIMER)	+= pmtimer_64.o
796b0c3d44SSam Ravnborg        obj-$(CONFIG_AUDIT)		+= audit_64.o
806b0c3d44SSam Ravnborg        obj-$(CONFIG_PM)		+= suspend_64.o
816b0c3d44SSam Ravnborg        obj-$(CONFIG_HIBERNATION)	+= suspend_asm_64.o
826b0c3d44SSam Ravnborg
836b0c3d44SSam Ravnborg        obj-$(CONFIG_GART_IOMMU)	+= pci-gart_64.o aperture_64.o
846b0c3d44SSam Ravnborg        obj-$(CONFIG_CALGARY_IOMMU)	+= pci-calgary_64.o tce_64.o
856b0c3d44SSam Ravnborg        obj-$(CONFIG_SWIOTLB)		+= pci-swiotlb_64.o
866b0c3d44SSam Ravnborgendif
87