blob: a6f22441474b6b4e91589ea885909984e1d19ed5 [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 2002-2006
wdenk591dda52002-11-18 00:14:45 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenk591dda52002-11-18 00:14:45 +00005
Simon Glass912e06f2021-09-24 18:30:21 -06006obj-y += bdinfo.o
Simon Glass3dfe4512017-01-16 07:04:09 -07007ifndef CONFIG_X86_64
Simon Glasse8e014c2019-12-06 21:42:23 -07008ifndef CONFIG_TPL_BUILD
Simon Glassb2978d32014-11-14 20:56:32 -07009obj-y += bios.o
10obj-y += bios_asm.o
11obj-y += bios_interrupts.o
Simon Glasse8e014c2019-12-06 21:42:23 -070012endif
Heinrich Schuchardt72454762019-01-23 02:42:39 +010013obj-y += string.o
Simon Glass3dfe4512017-01-16 07:04:09 -070014endif
Simon Glass602b98f2017-01-16 07:04:13 -070015ifndef CONFIG_SPL_BUILD
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090016obj-$(CONFIG_CMD_BOOTM) += bootm.o
Simon Glass602b98f2017-01-16 07:04:13 -070017endif
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090018obj-y += cmd_boot.o
Simon Glassb7f8bad2021-03-15 18:00:21 +130019obj-$(CONFIG_$(SPL_)COREBOOT_SYSINFO) += coreboot/
Bin Menge31a79a2016-05-11 07:44:58 -070020obj-$(CONFIG_SEABIOS) += coreboot_table.o
Bin Meng39f8b082017-04-21 07:24:38 -070021obj-y += early_cmos.o
Bin Menga4899632015-10-07 20:19:10 -070022obj-y += e820.o
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090023obj-y += init_helpers.o
24obj-y += interrupts.o
Simon Glassa5caa372015-03-26 09:29:28 -060025obj-y += lpc-uclass.o
Bin Mengf91cf6b2015-06-23 12:18:51 +080026obj-y += mpspec.o
Simon Glassf6cdb912020-07-07 21:32:16 -060027obj-$(CONFIG_$(SPL_TPL_)ACPIGEN) += acpi_nhlt.o
Simon Glass29ce97e2016-01-17 16:11:14 -070028obj-y += northbridge-uclass.o
Bin Mengb29a08c2015-10-22 19:13:30 -070029obj-$(CONFIG_I8259_PIC) += i8259.o
30obj-$(CONFIG_I8254_TIMER) += i8254.o
Bin Mengc253c3f2018-06-10 06:25:01 -070031obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o
Bin Meng45236ad2015-04-24 18:10:05 +080032obj-y += pirq_routing.o
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090033obj-y += relocate.o
34obj-y += physmem.o
Andy Shevchenko7d2c2012017-04-01 16:21:34 +030035obj-$(CONFIG_INTEL_MID) += pmu.o
Simon Glass268eefd2014-11-12 22:42:28 -070036obj-$(CONFIG_X86_RAMTEST) += ramtest.o
Felipe Balbiee2e85f2017-04-01 16:21:33 +030037obj-$(CONFIG_INTEL_MID) += scu.o
Simon Glasscdfe6962016-09-25 15:27:35 -060038obj-y += sections.o
Simon Glass07e922a2015-04-28 20:25:10 -060039obj-y += sfi.o
Bin Mengac630252018-07-18 21:42:15 -070040obj-y += acpi.o
Bin Meng710d2152017-04-21 07:24:37 -070041obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
Miao Yan75e27da2016-05-22 19:37:10 -070042ifndef CONFIG_QEMU
Simon Glass1eba1212020-09-22 12:45:21 -060043obj-y += acpigen.o
Simon Glass29e64b52021-12-01 09:02:43 -070044obj-$(CONFIG_$(SPL_TPL_)GENERATE_ACPI_TABLE) += acpi_table.o
Miao Yan3b68c522016-01-20 01:57:06 -080045endif
Bin Mengf17cea62015-04-24 18:10:04 +080046obj-y += tables.o
Simon Glass602b98f2017-01-16 07:04:13 -070047ifndef CONFIG_SPL_BUILD
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090048obj-$(CONFIG_CMD_ZBOOT) += zimage.o
Simon Glass602b98f2017-01-16 07:04:13 -070049endif
Park, Aiden538aec92019-08-03 08:30:31 +000050obj-$(CONFIG_USE_HOB) += hob.o
Tom Rinic7811b72020-06-26 17:40:06 -040051ifndef CONFIG_TPL_BUILD
52obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
Simon Glassddb39b22019-08-24 14:10:32 -060053obj-$(CONFIG_HAVE_FSP) += fsp/
Simon Glass6c34fc12019-09-25 08:00:11 -060054obj-$(CONFIG_FSP_VERSION1) += fsp1/
55obj-$(CONFIG_FSP_VERSION2) += fsp2/
Tom Rinic7811b72020-06-26 17:40:06 -040056endif
Simon Glass7cf5fe02019-05-02 10:52:12 -060057
58ifdef CONFIG_SPL_BUILD
59ifdef CONFIG_TPL_BUILD
60obj-y += tpl.o
61else
62obj-y += spl.o
63endif
64endif
wdenk591dda52002-11-18 00:14:45 +000065
Stefan Roesedfafe7a2017-11-29 16:23:31 +010066lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
Simon Glass6f4b08a2016-11-07 08:47:14 -070067
Simon Glassf3d73ea2022-01-04 03:51:13 -070068obj-$(CONFIG_EFI_APP_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
69obj-$(CONFIG_EFI_APP_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
Simon Glass6f4b08a2016-11-07 08:47:14 -070070
71ifneq ($(CONFIG_EFI_STUB),)
72
73CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
74CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
75
76# When building for 64-bit we must remove the i386-specific flags
77CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
Bin Meng5acbb782018-06-10 06:25:03 -070078CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar -m64
Simon Glass6f4b08a2016-11-07 08:47:14 -070079
80AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
Bin Meng5acbb782018-06-10 06:25:03 -070081AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar -m64
Simon Glass6f4b08a2016-11-07 08:47:14 -070082
83extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
84extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
Simon Glass105c9362016-11-07 08:47:15 -070085
86endif
87
Heinrich Schuchardt3366ff0c2018-05-18 19:12:20 +020088ifdef CONFIG_EFI_STUB
89
Simon Glass2f1492e2017-01-16 07:04:12 -070090ifeq ($(CONFIG_$(SPL_)X86_64),)
Simon Glass105c9362016-11-07 08:47:15 -070091extra-y += $(EFI_CRT0) $(EFI_RELOC)
Simon Glass6f4b08a2016-11-07 08:47:14 -070092endif
Heinrich Schuchardt3366ff0c2018-05-18 19:12:20 +020093
94else
95
96ifndef CONFIG_SPL_BUILD
97ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
98extra-y += $(EFI_CRT0) $(EFI_RELOC)
99endif
100endif
101
Simon Glass2f1492e2017-01-16 07:04:12 -0700102endif