Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 2 | # |
Marian Balakowicz | d62379d | 2006-09-01 19:49:50 +0200 | [diff] [blame] | 3 | # (C) Copyright 2006 |
4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. | ||||
Wolfgang Denk | 4df0da5 | 2006-10-09 00:42:01 +0200 | [diff] [blame] | 5 | # |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 6 | # (C) Copyright 2002 |
Albert ARIBAUD | 60fbc8d | 2011-08-04 18:45:45 +0200 | [diff] [blame] | 7 | # Daniel Engström, Omicron Ceti AB, daniel@omicron.se. |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 8 | |
Simon Glass | 8157b33 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 9 | ifeq ($(CONFIG_$(SPL_)X86_64),y) |
10 | extra-y = start64.o | ||||
11 | else | ||||
Masahiro Yamada | aa96dd1 | 2013-10-21 11:53:34 +0900 | [diff] [blame] | 12 | extra-y = start.o |
Simon Glass | 8157b33 | 2017-01-16 07:03:48 -0700 | [diff] [blame] | 13 | endif |
Simon Glass | 706f6f5 | 2017-01-16 07:03:45 -0700 | [diff] [blame] | 14 | extra-$(CONFIG_$(SPL_)X86_16BIT_INIT) += resetvec.o start16.o |
Simon Glass | 78a62bd | 2017-01-16 07:04:10 -0700 | [diff] [blame] | 15 | |
16 | obj-y += cpu.o cpu_x86.o | ||||
Masahiro Yamada | 40e73b1 | 2014-11-13 12:28:40 +0900 | [diff] [blame] | 17 | |
Simon Glass | bded35b | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 18 | ifndef CONFIG_$(SPL_)X86_64 |
Simon Glass | bae81c7 | 2015-08-04 12:33:55 -0600 | [diff] [blame] | 19 | AFLAGS_REMOVE_call32.o := -mregparm=3 \ |
20 | $(if $(CONFIG_EFI_STUB_64BIT),-march=i386 -m32) | ||||
Bin Meng | 5acbb78 | 2018-06-10 06:25:03 -0700 | [diff] [blame] | 21 | AFLAGS_call32.o := -fpic -fshort-wchar \ |
22 | $(if $(CONFIG_EFI_STUB_64BIT),-m64) | ||||
Simon Glass | bae81c7 | 2015-08-04 12:33:55 -0600 | [diff] [blame] | 23 | |
24 | extra-y += call32.o | ||||
Simon Glass | bded35b | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 25 | endif |
Simon Glass | bae81c7 | 2015-08-04 12:33:55 -0600 | [diff] [blame] | 26 | |
Simon Glass | 144652f | 2016-03-11 22:06:53 -0700 | [diff] [blame] | 27 | obj-y += intel_common/ |
Simon Glass | 4a56f10 | 2015-01-27 22:13:47 -0700 | [diff] [blame] | 28 | obj-$(CONFIG_INTEL_BAYTRAIL) += baytrail/ |
Bin Meng | 68a070b | 2017-08-15 22:41:58 -0700 | [diff] [blame] | 29 | obj-$(CONFIG_INTEL_BRASWELL) += braswell/ |
Simon Glass | 71606de | 2016-03-11 22:07:18 -0700 | [diff] [blame] | 30 | obj-$(CONFIG_INTEL_BROADWELL) += broadwell/ |
Masahiro Yamada | 2024319 | 2014-11-13 12:28:41 +0900 | [diff] [blame] | 31 | obj-$(CONFIG_SYS_COREBOOT) += coreboot/ |
Bin Meng | 525c861 | 2018-06-12 08:36:16 -0700 | [diff] [blame] | 32 | obj-$(CONFIG_EFI) += efi/ |
Bin Meng | 2229c4c | 2015-05-07 21:34:08 +0800 | [diff] [blame] | 33 | obj-$(CONFIG_QEMU) += qemu/ |
Simon Glass | 6e3af1e | 2014-11-24 21:18:20 -0700 | [diff] [blame] | 34 | obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/ |
Bin Meng | 8ba49fe | 2015-02-02 22:35:29 +0800 | [diff] [blame] | 35 | obj-$(CONFIG_INTEL_QUARK) += quark/ |
Bin Meng | ba73550 | 2014-12-17 15:50:39 +0800 | [diff] [blame] | 36 | obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/ |
Felipe Balbi | e564d59 | 2017-07-06 14:41:52 +0300 | [diff] [blame] | 37 | obj-$(CONFIG_INTEL_TANGIER) += tangier/ |
Hannes Schmelzer | d18df3c | 2018-11-18 23:19:43 +0100 | [diff] [blame^] | 38 | obj-$(CONFIG_APIC) += lapic.o ioapic.o |
Simon Glass | bded35b | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 39 | obj-y += irq.o |
Bin Meng | 7681621 | 2017-01-18 03:32:54 -0800 | [diff] [blame] | 40 | ifndef CONFIG_$(SPL_)X86_64 |
Simon Glass | a9a4426 | 2015-04-29 22:25:59 -0600 | [diff] [blame] | 41 | obj-$(CONFIG_SMP) += mp_init.o |
Simon Glass | bded35b | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 42 | endif |
Simon Glass | 7bf5b9e | 2015-01-01 16:18:07 -0700 | [diff] [blame] | 43 | obj-y += mtrr.o |
Simon Glass | 7680550 | 2014-11-12 22:42:11 -0700 | [diff] [blame] | 44 | obj-$(CONFIG_PCI) += pci.o |
Simon Glass | bded35b | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 45 | ifndef CONFIG_$(SPL_)X86_64 |
Simon Glass | a9a4426 | 2015-04-29 22:25:59 -0600 | [diff] [blame] | 46 | obj-$(CONFIG_SMP) += sipi_vector.o |
Simon Glass | bded35b | 2017-01-16 07:04:11 -0700 | [diff] [blame] | 47 | endif |
Simon Glass | e804501 | 2014-11-14 18:18:43 -0700 | [diff] [blame] | 48 | obj-y += turbo.o |
Bin Meng | 215596c | 2017-04-21 07:24:35 -0700 | [diff] [blame] | 49 | obj-$(CONFIG_HAVE_ACPI_RESUME) += wakeup.o |
Simon Glass | 16a624b | 2017-01-16 07:03:57 -0700 | [diff] [blame] | 50 | |
Simon Glass | efedba7 | 2017-01-16 07:03:58 -0700 | [diff] [blame] | 51 | ifeq ($(CONFIG_$(SPL_)X86_64),y) |
52 | obj-y += x86_64/ | ||||
53 | else | ||||
Simon Glass | 16a624b | 2017-01-16 07:03:57 -0700 | [diff] [blame] | 54 | obj-y += i386/ |
55 | endif |