blob: 3f1f62da2b1d23ff7b9096708bd5ae87ee5ab885 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk591dda52002-11-18 00:14:45 +00002#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02003# (C) Copyright 2006
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk4df0da52006-10-09 00:42:01 +02005#
wdenk591dda52002-11-18 00:14:45 +00006# (C) Copyright 2002
Albert ARIBAUD60fbc8d2011-08-04 18:45:45 +02007# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
wdenk591dda52002-11-18 00:14:45 +00008
Simon Glass8157b332017-01-16 07:03:48 -07009ifeq ($(CONFIG_$(SPL_)X86_64),y)
10extra-y = start64.o
11else
Simon Glass75659ac2019-04-25 21:58:52 -060012ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y)
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090013extra-y = start.o
Simon Glass75659ac2019-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
22endif
23endif
24endif
Simon Glass8157b332017-01-16 07:03:48 -070025endif
Simon Glass75659ac2019-04-25 21:58:52 -060026
27extra-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += resetvec.o start16.o
Simon Glass78a62bd2017-01-16 07:04:10 -070028
29obj-y += cpu.o cpu_x86.o
Masahiro Yamada40e73b12014-11-13 12:28:40 +090030
Simon Glassbded35b2017-01-16 07:04:11 -070031ifndef CONFIG_$(SPL_)X86_64
Simon Glassbae81c72015-08-04 12:33:55 -060032AFLAGS_REMOVE_call32.o := -mregparm=3 \
33 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
Bin Meng5acbb782018-06-10 06:25:03 -070034AFLAGS_call32.o := -fpic -fshort-wchar \
35 $(if $(CONFIG_EFI_STUB_64BIT),-m64)
Simon Glassbae81c72015-08-04 12:33:55 -060036
37extra-y += call32.o
Simon Glassbded35b2017-01-16 07:04:11 -070038endif
Simon Glassbae81c72015-08-04 12:33:55 -060039
Simon Glass144652f2016-03-11 22:06:53 -070040obj-y += intel_common/
Simon Glass4a56f102015-01-27 22:13:47 -070041obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/
Bin Meng68a070b2017-08-15 22:41:58 -070042obj-$(CONFIG_INTEL_BRASWELL) += braswell/
Simon Glass71606de2016-03-11 22:07:18 -070043obj-$(CONFIG_INTEL_BROADWELL) += broadwell/
Masahiro Yamada20243192014-11-13 12:28:41 +090044obj-$(CONFIG_SYS_COREBOOT) += coreboot/
Park, Aiden6e3cc362019-08-03 08:30:12 +000045obj-$(CONFIG_SYS_SLIMBOOTLOADER) += slimbootloader/
Bin Meng525c8612018-06-12 08:36:16 -070046obj-$(CONFIG_EFI) += efi/
Bin Meng2229c4c2015-05-07 21:34:08 +080047obj-$(CONFIG_QEMU) += qemu/
Simon Glass6e3af1e2014-11-24 21:18:20 -070048obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/
Bin Meng8ba49fe2015-02-02 22:35:29 +080049obj-$(CONFIG_INTEL_QUARK) += quark/
Bin Mengba735502014-12-17 15:50:39 +080050obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/
Felipe Balbie564d592017-07-06 14:41:52 +030051obj-$(CONFIG_INTEL_TANGIER) += tangier/
Hannes Schmelzerd18df3c2018-11-18 23:19:43 +010052obj-$(CONFIG_APIC) += lapic.o ioapic.o
Simon Glassbded35b2017-01-16 07:04:11 -070053obj-y += irq.o
Bin Meng76816212017-01-18 03:32:54 -080054ifndef CONFIG_$(SPL_)X86_64
Simon Glassa9a44262015-04-29 22:25:59 -060055obj-$(CONFIG_SMP) += mp_init.o
Simon Glassbded35b2017-01-16 07:04:11 -070056endif
Simon Glass7bf5b9e2015-01-01 16:18:07 -070057obj-y += mtrr.o
Simon Glass76805502014-11-12 22:42:11 -070058obj-$(CONFIG_PCI) += pci.o
Simon Glassbded35b2017-01-16 07:04:11 -070059ifndef CONFIG_$(SPL_)X86_64
Simon Glassa9a44262015-04-29 22:25:59 -060060obj-$(CONFIG_SMP) += sipi_vector.o
Simon Glassbded35b2017-01-16 07:04:11 -070061endif
Simon Glasse8045012014-11-14 18:18:43 -070062obj-y += turbo.o
Bin Meng215596c2017-04-21 07:24:35 -070063obj-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.o
Simon Glass16a624b2017-01-16 07:03:57 -070064
Simon Glassefedba72017-01-16 07:03:58 -070065ifeq ($(CONFIG_$(SPL_)X86_64),y)
66obj-y += x86_64/
67else
Simon Glass16a624b2017-01-16 07:03:57 -070068obj-y += i386/
69endif