blob: ee0499f5d797ee273a95c57c233d4a7594c4b818 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk2262cfe2002-11-18 00:14:45 +00002#
Marian Balakowiczf9328632006-09-01 19:49:50 +02003# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk511d0c72006-10-09 00:42:01 +02005#
wdenk2262cfe2002-11-18 00:14:45 +00006# (C) Copyright 2002
Albert ARIBAUDfa82f872011-08-04 18:45:45 +02007# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
wdenk2262cfe2002-11-18 00:14:45 +00008
Simon Glassdca92202017-01-16 07:03:48 -07009ifeq ($(CONFIG_$(SPL_)X86_64),y)
10extra-y = start64.o
11else
Simon Glass051c31b2019-04-25 21:58:52 -060012ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y)
Masahiro Yamada3954b732013-10-21 11:53:34 +090013extra-y = start.o
Simon Glass051c31b2019-04-25 21:58:52 -060014else
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
Simon Glassdca92202017-01-16 07:03:48 -070022endif
Simon Glass051c31b2019-04-25 21:58:52 -060023endif
24endif
25endif
26
27extra-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += resetvec.o start16.o
Simon Glass23b89d42017-01-16 07:04:10 -070028
Simon Glassb377ebb2019-09-25 08:56:48 -060029obj-y += cpu.o
30ifndef CONFIG_TPL_BUILD
31obj-y += cpu_x86.o
32endif
Masahiro Yamada165ecd22014-11-13 12:28:40 +090033
Simon Glassfb355612017-01-16 07:04:11 -070034ifndef CONFIG_$(SPL_)X86_64
Simon Glass6f92ed82015-08-04 12:33:55 -060035AFLAGS_REMOVE_call32.o := -mregparm=3 \
36 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
Bin Meng16dde892018-06-10 06:25:03 -070037AFLAGS_call32.o := -fpic -fshort-wchar \
38 $(if $(CONFIG_EFI_STUB_64BIT),-m64)
Simon Glass6f92ed82015-08-04 12:33:55 -060039
40extra-y += call32.o
Simon Glassfb355612017-01-16 07:04:11 -070041endif
Simon Glass6f92ed82015-08-04 12:33:55 -060042
Simon Glass1223d732016-03-11 22:06:53 -070043obj-y += intel_common/
Simon Glass1fc54192019-12-08 17:40:17 -070044obj-$(CONFIG_INTEL_APOLLOLAKE) += apollolake/
Simon Glass3a1a18f2015-01-27 22:13:47 -070045obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/
Bin Mengde9ac9a2017-08-15 22:41:58 -070046obj-$(CONFIG_INTEL_BRASWELL) += braswell/
Simon Glass2f3f4772016-03-11 22:07:18 -070047obj-$(CONFIG_INTEL_BROADWELL) += broadwell/
Masahiro Yamada37c99402014-11-13 12:28:41 +090048obj-$(CONFIG_SYS_COREBOOT) += coreboot/
Park, Aiden544293f2019-08-03 08:30:12 +000049obj-$(CONFIG_SYS_SLIMBOOTLOADER) += slimbootloader/
Bin Meng4f1dacd2018-06-12 08:36:16 -070050obj-$(CONFIG_EFI) += efi/
Bin Menga65b25d2015-05-07 21:34:08 +080051obj-$(CONFIG_QEMU) += qemu/
Simon Glass2f6d42b2014-11-24 21:18:20 -070052obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/
Bin Mengef46bea2015-02-02 22:35:29 +080053obj-$(CONFIG_INTEL_QUARK) += quark/
Bin Meng240a79d2014-12-17 15:50:39 +080054obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/
Felipe Balbie71de542017-07-06 14:41:52 +030055obj-$(CONFIG_INTEL_TANGIER) += tangier/
Hannes Schmelzerda4cfa62018-11-18 23:19:43 +010056obj-$(CONFIG_APIC) += lapic.o ioapic.o
Simon Glasse85cbe82020-02-06 09:55:01 -070057obj-$(CONFIG_$(SPL_TPL_)ACPI_GPE) += acpi_gpe.o
Simon Glassbaaeb922019-12-06 21:42:55 -070058obj-$(CONFIG_QFW) += qfw_cpu.o
Simon Glassb4d4f592020-04-30 21:21:43 -060059ifndef CONFIG_SYS_COREBOOT
60obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += irq.o
61endif
Bin Mengd8f25c22017-01-18 03:32:54 -080062ifndef CONFIG_$(SPL_)X86_64
Simon Glass45b5a372015-04-29 22:25:59 -060063obj-$(CONFIG_SMP) += mp_init.o
Simon Glassfb355612017-01-16 07:04:11 -070064endif
Simon Glassaff25232015-01-01 16:18:07 -070065obj-y += mtrr.o
Simon Glassd188b182014-11-12 22:42:11 -070066obj-$(CONFIG_PCI) += pci.o
Simon Glassfb355612017-01-16 07:04:11 -070067ifndef CONFIG_$(SPL_)X86_64
Simon Glass45b5a372015-04-29 22:25:59 -060068obj-$(CONFIG_SMP) += sipi_vector.o
Simon Glassfb355612017-01-16 07:04:11 -070069endif
Simon Glass18739e22014-11-14 18:18:43 -070070obj-y += turbo.o
Bin Meng2b2d6662017-04-21 07:24:35 -070071obj-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.o
Simon Glassbe059e82017-01-16 07:03:57 -070072
Simon Glass93031592017-01-16 07:03:58 -070073ifeq ($(CONFIG_$(SPL_)X86_64),y)
74obj-y += x86_64/
75else
Simon Glassbe059e82017-01-16 07:03:57 -070076obj-y += i386/
77endif