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