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 17 18obj-y += cpu.o cpu_x86.o 19 20ifndef CONFIG_$(SPL_)X86_64 21AFLAGS_REMOVE_call32.o := -mregparm=3 \ 22 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32) 23AFLAGS_call32.o := -fpic -fshort-wchar 24 25extra-y += call32.o 26endif 27 28obj-y += intel_common/ 29obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/ 30obj-$(CONFIG_INTEL_BROADWELL) += broadwell/ 31obj-$(CONFIG_SYS_COREBOOT) += coreboot/ 32obj-$(CONFIG_EFI_APP) += efi/ 33obj-$(CONFIG_QEMU) += qemu/ 34obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/ 35obj-$(CONFIG_INTEL_QUARK) += quark/ 36obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/ 37obj-y += lapic.o ioapic.o 38obj-y += irq.o 39ifndef CONFIG_$(SPL_)X86_64 40obj-$(CONFIG_SMP) += mp_init.o 41endif 42obj-y += mtrr.o 43obj-$(CONFIG_PCI) += pci.o 44ifndef CONFIG_$(SPL_)X86_64 45obj-$(CONFIG_SMP) += sipi_vector.o 46endif 47obj-y += turbo.o 48 49ifeq ($(CONFIG_$(SPL_)X86_64),y) 50obj-y += x86_64/ 51else 52obj-y += i386/ 53endif 54