blob: f0135a759e932e98babd431d4d9f81688224c085 [file] [log] [blame]
wdenk591dda52002-11-18 00:14:45 +00001#
Marian Balakowiczd62379d2006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk4df0da52006-10-09 00:42:01 +02004#
wdenk591dda52002-11-18 00:14:45 +00005# (C) Copyright 2002
Albert ARIBAUD60fbc8d2011-08-04 18:45:45 +02006# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
wdenk591dda52002-11-18 00:14:45 +00007#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenk591dda52002-11-18 00:14:45 +00009#
10
Simon Glass8157b332017-01-16 07:03:48 -070011ifeq ($(CONFIG_$(SPL_)X86_64),y)
12extra-y = start64.o
13else
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090014extra-y = start.o
Simon Glass8157b332017-01-16 07:03:48 -070015endif
Simon Glass706f6f52017-01-16 07:03:45 -070016extra-$(CONFIG_$(SPL_)X86_16BIT_INIT) += resetvec.o start16.o
Simon Glass78a62bd2017-01-16 07:04:10 -070017ifndef CONFIG_$(SPL_)X86_64
18obj-y += call64.o setjmp.o
19endif
20
21obj-y += cpu.o cpu_x86.o
Masahiro Yamada40e73b12014-11-13 12:28:40 +090022
Simon Glassbae81c72015-08-04 12:33:55 -060023AFLAGS_REMOVE_call32.o := -mregparm=3 \
24 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
25AFLAGS_call32.o := -fpic -fshort-wchar
26
27extra-y += call32.o
28
Simon Glass144652f2016-03-11 22:06:53 -070029obj-y += intel_common/
Simon Glass4a56f102015-01-27 22:13:47 -070030obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/
Simon Glass71606de2016-03-11 22:07:18 -070031obj-$(CONFIG_INTEL_BROADWELL) += broadwell/
Masahiro Yamada20243192014-11-13 12:28:41 +090032obj-$(CONFIG_SYS_COREBOOT) += coreboot/
Ben Stoltzab76a472015-08-04 12:33:46 -060033obj-$(CONFIG_EFI_APP) += efi/
Bin Meng2229c4c2015-05-07 21:34:08 +080034obj-$(CONFIG_QEMU) += qemu/
Simon Glass6e3af1e2014-11-24 21:18:20 -070035obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/
Bin Meng8ba49fe2015-02-02 22:35:29 +080036obj-$(CONFIG_INTEL_QUARK) += quark/
Bin Mengba735502014-12-17 15:50:39 +080037obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/
Bin Meng8fefeec2015-06-23 12:18:49 +080038obj-y += irq.o lapic.o ioapic.o
Simon Glassa9a44262015-04-29 22:25:59 -060039obj-$(CONFIG_SMP) += mp_init.o
Simon Glass7bf5b9e2015-01-01 16:18:07 -070040obj-y += mtrr.o
Simon Glass76805502014-11-12 22:42:11 -070041obj-$(CONFIG_PCI) += pci.o
Simon Glassa9a44262015-04-29 22:25:59 -060042obj-$(CONFIG_SMP) += sipi_vector.o
Simon Glasse8045012014-11-14 18:18:43 -070043obj-y += turbo.o
Simon Glass16a624b2017-01-16 07:03:57 -070044
Simon Glassefedba72017-01-16 07:03:58 -070045ifeq ($(CONFIG_$(SPL_)X86_64),y)
46obj-y += x86_64/
47else
Simon Glass16a624b2017-01-16 07:03:57 -070048obj-y += i386/
49endif