1 # SPDX-License-Identifier: GPL-2.0+
4 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
7 # Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
9 ifeq ($(CONFIG_$(SPL_)X86_64),y)
12 ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y)
18 ifdef CONFIG_SPL_BUILD
19 extra-y = start_from_tpl.o
21 extra-y = start_from_spl.o
27 extra-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += resetvec.o start16.o
30 ifndef CONFIG_TPL_BUILD
34 ifndef CONFIG_$(SPL_)X86_64
35 AFLAGS_REMOVE_call32.o := -mregparm=3 \
36 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
37 AFLAGS_call32.o := -fpic -fshort-wchar \
38 $(if $(CONFIG_EFI_STUB_64BIT),-m64)
43 obj-y += intel_common/
44 obj-$(CONFIG_INTEL_APOLLOLAKE) += apollolake/
45 obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/
46 obj-$(CONFIG_INTEL_BRASWELL) += braswell/
47 obj-$(CONFIG_INTEL_BROADWELL) += broadwell/
48 obj-$(CONFIG_SYS_COREBOOT) += coreboot/
49 obj-$(CONFIG_SYS_SLIMBOOTLOADER) += slimbootloader/
50 obj-$(CONFIG_EFI) += efi/
51 obj-$(CONFIG_QEMU) += qemu/
52 obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/
53 obj-$(CONFIG_INTEL_QUARK) += quark/
54 obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/
55 obj-$(CONFIG_INTEL_TANGIER) += tangier/
56 obj-$(CONFIG_APIC) += lapic.o ioapic.o
57 obj-$(CONFIG_$(SPL_TPL_)ACPI_GPE) += acpi_gpe.o
58 obj-$(CONFIG_QFW) += qfw_cpu.o
59 ifndef CONFIG_SYS_COREBOOT
60 obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += irq.o
62 ifndef CONFIG_$(SPL_)X86_64
63 obj-$(CONFIG_$(SPL_)SMP) += mp_init.o
66 obj-$(CONFIG_PCI) += pci.o
67 ifndef CONFIG_$(SPL_)X86_64
68 obj-$(CONFIG_SMP) += sipi_vector.o
71 obj-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.o
73 ifeq ($(CONFIG_$(SPL_)X86_64),y)