2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-11-18 00:14:45 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2006
|
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
2006-10-08 22:42:01 +00:00
|
|
|
#
|
2002-11-18 00:14:45 +00:00
|
|
|
# (C) Copyright 2002
|
2011-08-04 16:45:45 +00:00
|
|
|
# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
|
2002-11-18 00:14:45 +00:00
|
|
|
|
2017-01-16 14:03:48 +00:00
|
|
|
ifeq ($(CONFIG_$(SPL_)X86_64),y)
|
|
|
|
extra-y = start64.o
|
|
|
|
else
|
2019-04-26 03:58:52 +00:00
|
|
|
ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y)
|
2013-10-21 02:53:34 +00:00
|
|
|
extra-y = start.o
|
2019-04-26 03:58:52 +00:00
|
|
|
else
|
|
|
|
ifndef CONFIG_SPL
|
|
|
|
extra-y = start.o
|
|
|
|
else
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
extra-y = start_from_tpl.o
|
|
|
|
else
|
|
|
|
extra-y = start_from_spl.o
|
2017-01-16 14:03:48 +00:00
|
|
|
endif
|
2019-04-26 03:58:52 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
extra-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += resetvec.o start16.o
|
2017-01-16 14:04:10 +00:00
|
|
|
|
2019-09-25 14:56:48 +00:00
|
|
|
obj-y += cpu.o
|
|
|
|
ifndef CONFIG_TPL_BUILD
|
|
|
|
obj-y += cpu_x86.o
|
|
|
|
endif
|
2014-11-13 03:28:40 +00:00
|
|
|
|
2017-01-16 14:04:11 +00:00
|
|
|
ifndef CONFIG_$(SPL_)X86_64
|
2015-08-04 18:33:55 +00:00
|
|
|
AFLAGS_REMOVE_call32.o := -mregparm=3 \
|
|
|
|
$(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
|
2018-06-10 13:25:03 +00:00
|
|
|
AFLAGS_call32.o := -fpic -fshort-wchar \
|
|
|
|
$(if $(CONFIG_EFI_STUB_64BIT),-m64)
|
2015-08-04 18:33:55 +00:00
|
|
|
|
|
|
|
extra-y += call32.o
|
2017-01-16 14:04:11 +00:00
|
|
|
endif
|
2015-08-04 18:33:55 +00:00
|
|
|
|
2016-03-12 05:06:53 +00:00
|
|
|
obj-y += intel_common/
|
2019-12-09 00:40:17 +00:00
|
|
|
obj-$(CONFIG_INTEL_APOLLOLAKE) += apollolake/
|
2015-01-28 05:13:47 +00:00
|
|
|
obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/
|
2017-08-16 05:41:58 +00:00
|
|
|
obj-$(CONFIG_INTEL_BRASWELL) += braswell/
|
2016-03-12 05:07:18 +00:00
|
|
|
obj-$(CONFIG_INTEL_BROADWELL) += broadwell/
|
2014-11-13 03:28:41 +00:00
|
|
|
obj-$(CONFIG_SYS_COREBOOT) += coreboot/
|
2019-08-03 08:30:12 +00:00
|
|
|
obj-$(CONFIG_SYS_SLIMBOOTLOADER) += slimbootloader/
|
2018-06-12 15:36:16 +00:00
|
|
|
obj-$(CONFIG_EFI) += efi/
|
2015-05-07 13:34:08 +00:00
|
|
|
obj-$(CONFIG_QEMU) += qemu/
|
2014-11-25 04:18:20 +00:00
|
|
|
obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/
|
2015-02-02 14:35:29 +00:00
|
|
|
obj-$(CONFIG_INTEL_QUARK) += quark/
|
2014-12-17 07:50:39 +00:00
|
|
|
obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/
|
2017-07-06 11:41:52 +00:00
|
|
|
obj-$(CONFIG_INTEL_TANGIER) += tangier/
|
2018-11-18 22:19:43 +00:00
|
|
|
obj-$(CONFIG_APIC) += lapic.o ioapic.o
|
2019-12-07 04:42:15 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += irq.o
|
2020-02-06 16:55:01 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)ACPI_GPE) += acpi_gpe.o
|
2019-12-07 04:42:55 +00:00
|
|
|
obj-$(CONFIG_QFW) += qfw_cpu.o
|
2017-01-18 11:32:54 +00:00
|
|
|
ifndef CONFIG_$(SPL_)X86_64
|
2015-04-30 04:25:59 +00:00
|
|
|
obj-$(CONFIG_SMP) += mp_init.o
|
2017-01-16 14:04:11 +00:00
|
|
|
endif
|
2015-01-01 23:18:07 +00:00
|
|
|
obj-y += mtrr.o
|
2014-11-13 05:42:11 +00:00
|
|
|
obj-$(CONFIG_PCI) += pci.o
|
2017-01-16 14:04:11 +00:00
|
|
|
ifndef CONFIG_$(SPL_)X86_64
|
2015-04-30 04:25:59 +00:00
|
|
|
obj-$(CONFIG_SMP) += sipi_vector.o
|
2017-01-16 14:04:11 +00:00
|
|
|
endif
|
2014-11-15 01:18:43 +00:00
|
|
|
obj-y += turbo.o
|
2017-04-21 14:24:35 +00:00
|
|
|
obj-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.o
|
2017-01-16 14:03:57 +00:00
|
|
|
|
2017-01-16 14:03:58 +00:00
|
|
|
ifeq ($(CONFIG_$(SPL_)X86_64),y)
|
|
|
|
obj-y += x86_64/
|
|
|
|
else
|
2017-01-16 14:03:57 +00:00
|
|
|
obj-y += i386/
|
|
|
|
endif
|