Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | f932863 | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2006 |
| 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
Wolfgang Denk | 511d0c7 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 5 | # |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 6 | # (C) Copyright 2002 |
Albert ARIBAUD | fa82f87 | 2011-08-04 18:45:45 +0200 | [diff] [blame] | 7 | # Daniel Engström, Omicron Ceti AB, daniel@omicron.se. |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 8 | |
Simon Glass | dca9220 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 9 | ifeq ($(CONFIG_$(SPL_)X86_64),y) |
| 10 | extra-y = start64.o |
| 11 | else |
Simon Glass | 051c31b | 2019-04-25 21:58:52 -0600 | [diff] [blame] | 12 | ifeq ($(CONFIG_$(SPL_TPL_)X86_16BIT_INIT),y) |
Masahiro Yamada | 3954b73 | 2013-10-21 11:53:34 +0900 | [diff] [blame] | 13 | extra-y = start.o |
Simon Glass | 051c31b | 2019-04-25 21:58:52 -0600 | [diff] [blame] | 14 | else |
| 15 | ifndef CONFIG_SPL |
| 16 | extra-y = start.o |
| 17 | else |
| 18 | ifdef CONFIG_SPL_BUILD |
| 19 | extra-y = start_from_tpl.o |
| 20 | else |
| 21 | extra-y = start_from_spl.o |
Simon Glass | dca9220 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 22 | endif |
Simon Glass | 051c31b | 2019-04-25 21:58:52 -0600 | [diff] [blame] | 23 | endif |
| 24 | endif |
| 25 | endif |
| 26 | |
| 27 | extra-$(CONFIG_$(SPL_TPL_)X86_16BIT_INIT) += resetvec.o start16.o |
Simon Glass | 23b89d4 | 2017-01-16 07:04:10 -0700 | [diff] [blame] | 28 | |
Simon Glass | b377ebb | 2019-09-25 08:56:48 -0600 | [diff] [blame] | 29 | obj-y += cpu.o |
| 30 | ifndef CONFIG_TPL_BUILD |
| 31 | obj-y += cpu_x86.o |
| 32 | endif |
Masahiro Yamada | 165ecd2 | 2014-11-13 12:28:40 +0900 | [diff] [blame] | 33 | |
Simon Glass | fb35561 | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 34 | ifndef CONFIG_$(SPL_)X86_64 |
Simon Glass | 6f92ed8 | 2015-08-04 12:33:55 -0600 | [diff] [blame] | 35 | AFLAGS_REMOVE_call32.o := -mregparm=3 \ |
| 36 | $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32) |
Bin Meng | 16dde89 | 2018-06-10 06:25:03 -0700 | [diff] [blame] | 37 | AFLAGS_call32.o := -fpic -fshort-wchar \ |
| 38 | $(if $(CONFIG_EFI_STUB_64BIT),-m64) |
Simon Glass | 6f92ed8 | 2015-08-04 12:33:55 -0600 | [diff] [blame] | 39 | |
| 40 | extra-y += call32.o |
Simon Glass | fb35561 | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 41 | endif |
Simon Glass | 6f92ed8 | 2015-08-04 12:33:55 -0600 | [diff] [blame] | 42 | |
Simon Glass | 1223d73 | 2016-03-11 22:06:53 -0700 | [diff] [blame] | 43 | obj-y += intel_common/ |
Simon Glass | 1fc5419 | 2019-12-08 17:40:17 -0700 | [diff] [blame] | 44 | obj-$(CONFIG_INTEL_APOLLOLAKE) += apollolake/ |
Simon Glass | 3a1a18f | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 45 | obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/ |
Bin Meng | de9ac9a | 2017-08-15 22:41:58 -0700 | [diff] [blame] | 46 | obj-$(CONFIG_INTEL_BRASWELL) += braswell/ |
Simon Glass | 2f3f477 | 2016-03-11 22:07:18 -0700 | [diff] [blame] | 47 | obj-$(CONFIG_INTEL_BROADWELL) += broadwell/ |
Masahiro Yamada | 37c9940 | 2014-11-13 12:28:41 +0900 | [diff] [blame] | 48 | obj-$(CONFIG_SYS_COREBOOT) += coreboot/ |
Park, Aiden | 544293f | 2019-08-03 08:30:12 +0000 | [diff] [blame] | 49 | obj-$(CONFIG_SYS_SLIMBOOTLOADER) += slimbootloader/ |
Bin Meng | 4f1dacd | 2018-06-12 08:36:16 -0700 | [diff] [blame] | 50 | obj-$(CONFIG_EFI) += efi/ |
Bin Meng | a65b25d | 2015-05-07 21:34:08 +0800 | [diff] [blame] | 51 | obj-$(CONFIG_QEMU) += qemu/ |
Simon Glass | 2f6d42b | 2014-11-24 21:18:20 -0700 | [diff] [blame] | 52 | obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/ |
Bin Meng | ef46bea | 2015-02-02 22:35:29 +0800 | [diff] [blame] | 53 | obj-$(CONFIG_INTEL_QUARK) += quark/ |
Bin Meng | 240a79d | 2014-12-17 15:50:39 +0800 | [diff] [blame] | 54 | obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/ |
Felipe Balbi | e71de54 | 2017-07-06 14:41:52 +0300 | [diff] [blame] | 55 | obj-$(CONFIG_INTEL_TANGIER) += tangier/ |
Hannes Schmelzer | da4cfa6 | 2018-11-18 23:19:43 +0100 | [diff] [blame] | 56 | obj-$(CONFIG_APIC) += lapic.o ioapic.o |
Simon Glass | e85cbe8 | 2020-02-06 09:55:01 -0700 | [diff] [blame] | 57 | obj-$(CONFIG_$(SPL_TPL_)ACPI_GPE) += acpi_gpe.o |
Simon Glass | baaeb92 | 2019-12-06 21:42:55 -0700 | [diff] [blame] | 58 | obj-$(CONFIG_QFW) += qfw_cpu.o |
Simon Glass | b4d4f59 | 2020-04-30 21:21:43 -0600 | [diff] [blame] | 59 | ifndef CONFIG_SYS_COREBOOT |
| 60 | obj-$(CONFIG_$(SPL_TPL_)X86_32BIT_INIT) += irq.o |
| 61 | endif |
Bin Meng | d8f25c2 | 2017-01-18 03:32:54 -0800 | [diff] [blame] | 62 | ifndef CONFIG_$(SPL_)X86_64 |
Simon Glass | 3d734b5 | 2020-07-17 08:48:23 -0600 | [diff] [blame] | 63 | obj-$(CONFIG_$(SPL_)SMP) += mp_init.o |
Simon Glass | fb35561 | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 64 | endif |
Simon Glass | aff2523 | 2015-01-01 16:18:07 -0700 | [diff] [blame] | 65 | obj-y += mtrr.o |
Simon Glass | d188b18 | 2014-11-12 22:42:11 -0700 | [diff] [blame] | 66 | obj-$(CONFIG_PCI) += pci.o |
Simon Glass | fb35561 | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 67 | ifndef CONFIG_$(SPL_)X86_64 |
Simon Glass | 45b5a37 | 2015-04-29 22:25:59 -0600 | [diff] [blame] | 68 | obj-$(CONFIG_SMP) += sipi_vector.o |
Simon Glass | fb35561 | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 69 | endif |
Simon Glass | 18739e2 | 2014-11-14 18:18:43 -0700 | [diff] [blame] | 70 | obj-y += turbo.o |
Bin Meng | 2b2d666 | 2017-04-21 07:24:35 -0700 | [diff] [blame] | 71 | obj-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.o |
Simon Glass | be059e8 | 2017-01-16 07:03:57 -0700 | [diff] [blame] | 72 | |
Simon Glass | 9303159 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 73 | ifeq ($(CONFIG_$(SPL_)X86_64),y) |
| 74 | obj-y += x86_64/ |
| 75 | else |
Simon Glass | be059e8 | 2017-01-16 07:03:57 -0700 | [diff] [blame] | 76 | obj-y += i386/ |
| 77 | endif |