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