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_APOLLOLAKE) += apollolake/ 45obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/ 46obj-$(CONFIG_INTEL_BRASWELL) += braswell/ 47obj-$(CONFIG_INTEL_BROADWELL) += broadwell/ 48obj-$(CONFIG_SYS_COREBOOT) += coreboot/ 49obj-$(CONFIG_SYS_SLIMBOOTLOADER) += slimbootloader/ 50obj-$(CONFIG_EFI) += efi/ 51obj-$(CONFIG_QEMU) += qemu/ 52obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/ 53obj-$(CONFIG_INTEL_QUARK) += quark/ 54obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/ 55obj-$(CONFIG_INTEL_TANGIER) += tangier/ 56obj-$(CONFIG_APIC) += lapic.o ioapic.o 57obj-$(CONFIG_$(SPL_TPL_)ACPI_GPE) += acpi_gpe.o 58obj-$(CONFIG_QFW) += qfw_cpu.o 59ifndef CONFIG_SYS_COREBOOT 60obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += irq.o 61endif 62ifndef CONFIG_$(SPL_)X86_64 63obj-$(CONFIG_$(SPL_)SMP) += mp_init.o 64endif 65obj-y += mtrr.o 66obj-$(CONFIG_PCI) += pci.o 67ifndef CONFIG_$(SPL_)X86_64 68obj-$(CONFIG_SMP) += sipi_vector.o 69endif 70obj-y += turbo.o 71obj-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.o 72 73ifeq ($(CONFIG_$(SPL_)X86_64),y) 74obj-y += x86_64/ 75else 76obj-y += i386/ 77endif 78