1# 2# (C) Copyright 2006 3# Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4# 5# (C) Copyright 2002 6# Daniel Engström, Omicron Ceti AB, daniel@omicron.se. 7# 8# SPDX-License-Identifier: GPL-2.0+ 9# 10 11ifeq ($(CONFIG_$(SPL_)X86_64),y) 12extra-y = start64.o 13else 14extra-y = start.o 15endif 16extra-$(CONFIG_$(SPL_)X86_16BIT_INIT) += resetvec.o start16.o 17ifndef CONFIG_$(SPL_)X86_64 18obj-y += setjmp.o 19endif 20 21obj-y += cpu.o cpu_x86.o 22 23ifndef CONFIG_$(SPL_)X86_64 24AFLAGS_REMOVE_call32.o := -mregparm=3 \ 25 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32) 26AFLAGS_call32.o := -fpic -fshort-wchar 27 28extra-y += call32.o 29endif 30 31obj-y += intel_common/ 32obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/ 33obj-$(CONFIG_INTEL_BROADWELL) += broadwell/ 34obj-$(CONFIG_SYS_COREBOOT) += coreboot/ 35obj-$(CONFIG_EFI_APP) += efi/ 36obj-$(CONFIG_QEMU) += qemu/ 37obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/ 38obj-$(CONFIG_INTEL_QUARK) += quark/ 39obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/ 40obj-y += lapic.o ioapic.o 41ifndef CONFIG_$(SPL_)X86_64 42obj-y += irq.o 43obj-$(CONFIG_SMP) += mp_init.o 44endif 45obj-y += mtrr.o 46obj-$(CONFIG_PCI) += pci.o 47ifndef CONFIG_$(SPL_)X86_64 48obj-$(CONFIG_SMP) += sipi_vector.o 49endif 50obj-y += turbo.o 51 52ifeq ($(CONFIG_$(SPL_)X86_64),y) 53obj-y += x86_64/ 54else 55obj-y += i386/ 56endif 57