blob: 94cdff18cc0943bc97e5c790f9bb7f263f22c543 [file] [log] [blame]
wdenk2262cfe2002-11-18 00:14:45 +00001#
Marian Balakowiczf9328632006-09-01 19:49:50 +02002# (C) Copyright 2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
Wolfgang Denk511d0c72006-10-09 00:42:01 +02004#
wdenk2262cfe2002-11-18 00:14:45 +00005# (C) Copyright 2002
Albert ARIBAUDfa82f872011-08-04 18:45:45 +02006# Daniel Engström, Omicron Ceti AB, daniel@omicron.se.
wdenk2262cfe2002-11-18 00:14:45 +00007#
Wolfgang Denk1a459662013-07-08 09:37:19 +02008# SPDX-License-Identifier: GPL-2.0+
wdenk2262cfe2002-11-18 00:14:45 +00009#
10
Simon Glassdca92202017-01-16 07:03:48 -070011ifeq ($(CONFIG_$(SPL_)X86_64),y)
12extra-y = start64.o
13else
Masahiro Yamada3954b732013-10-21 11:53:34 +090014extra-y = start.o
Simon Glassdca92202017-01-16 07:03:48 -070015endif
Simon Glass972188b2017-01-16 07:03:45 -070016extra-$(CONFIG_$(SPL_)X86_16BIT_INIT) += resetvec.o start16.o
Simon Glass23b89d42017-01-16 07:04:10 -070017
18obj-y += cpu.o cpu_x86.o
Masahiro Yamada165ecd22014-11-13 12:28:40 +090019
Simon Glassfb355612017-01-16 07:04:11 -070020ifndef CONFIG_$(SPL_)X86_64
Simon Glass6f92ed82015-08-04 12:33:55 -060021AFLAGS_REMOVE_call32.o := -mregparm=3 \
22 $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32)
23AFLAGS_call32.o := -fpic -fshort-wchar
24
25extra-y += call32.o
Simon Glassfb355612017-01-16 07:04:11 -070026endif
Simon Glass6f92ed82015-08-04 12:33:55 -060027
Simon Glass1223d732016-03-11 22:06:53 -070028obj-y += intel_common/
Simon Glass3a1a18f2015-01-27 22:13:47 -070029obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/
Bin Mengde9ac9a2017-08-15 22:41:58 -070030obj-$(CONFIG_INTEL_BRASWELL) += braswell/
Simon Glass2f3f4772016-03-11 22:07:18 -070031obj-$(CONFIG_INTEL_BROADWELL) += broadwell/
Masahiro Yamada37c99402014-11-13 12:28:41 +090032obj-$(CONFIG_SYS_COREBOOT) += coreboot/
Ben Stoltz3dcdd172015-08-04 12:33:46 -060033obj-$(CONFIG_EFI_APP) += efi/
Bin Menga65b25d2015-05-07 21:34:08 +080034obj-$(CONFIG_QEMU) += qemu/
Simon Glass2f6d42b2014-11-24 21:18:20 -070035obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/
Bin Mengef46bea2015-02-02 22:35:29 +080036obj-$(CONFIG_INTEL_QUARK) += quark/
Bin Meng240a79d2014-12-17 15:50:39 +080037obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/
Felipe Balbie71de542017-07-06 14:41:52 +030038obj-$(CONFIG_INTEL_TANGIER) += tangier/
Simon Glassfb355612017-01-16 07:04:11 -070039obj-y += lapic.o ioapic.o
Simon Glassfb355612017-01-16 07:04:11 -070040obj-y += irq.o
Bin Mengd8f25c22017-01-18 03:32:54 -080041ifndef CONFIG_$(SPL_)X86_64
Simon Glass45b5a372015-04-29 22:25:59 -060042obj-$(CONFIG_SMP) += mp_init.o
Simon Glassfb355612017-01-16 07:04:11 -070043endif
Simon Glassaff25232015-01-01 16:18:07 -070044obj-y += mtrr.o
Simon Glassd188b182014-11-12 22:42:11 -070045obj-$(CONFIG_PCI) += pci.o
Simon Glassfb355612017-01-16 07:04:11 -070046ifndef CONFIG_$(SPL_)X86_64
Simon Glass45b5a372015-04-29 22:25:59 -060047obj-$(CONFIG_SMP) += sipi_vector.o
Simon Glassfb355612017-01-16 07:04:11 -070048endif
Simon Glass18739e22014-11-14 18:18:43 -070049obj-y += turbo.o
Bin Meng2b2d6662017-04-21 07:24:35 -070050obj-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.o
Simon Glassbe059e82017-01-16 07:03:57 -070051
Simon Glass93031592017-01-16 07:03:58 -070052ifeq ($(CONFIG_$(SPL_)X86_64),y)
53obj-y += x86_64/
54else
Simon Glassbe059e82017-01-16 07:03:57 -070055obj-y += i386/
56endif