blob: b0612ae6dd5f814a01c1c945fffc03ee1c6370b8 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
wdenk2262cfe2002-11-18 00:14:45 +00002#
Marian Balakowiczf9328632006-09-01 19:49:50 +02003# (C) Copyright 2002-2006
wdenk2262cfe2002-11-18 00:14:45 +00004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
wdenk2262cfe2002-11-18 00:14:45 +00005
Simon Glass567dfef2021-09-24 18:30:21 -06006obj-y += bdinfo.o
Simon Glass05cbd982017-01-16 07:04:09 -07007ifndef CONFIG_X86_64
Simon Glassfb96dee2019-12-06 21:42:23 -07008ifndef CONFIG_TPL_BUILD
Simon Glass0ca24262014-11-14 20:56:32 -07009obj-y += bios.o
10obj-y += bios_asm.o
11obj-y += bios_interrupts.o
Simon Glassfb96dee2019-12-06 21:42:23 -070012endif
Simon Glassb194e432023-05-04 16:50:52 -060013endif
14ifndef CONFIG_SPL_BUILD
15obj-$(CONFIG_X86_32BIT_INIT) += string.o
Simon Glass05cbd982017-01-16 07:04:09 -070016endif
Simon Glassca5114f2017-01-16 07:04:13 -070017ifndef CONFIG_SPL_BUILD
Masahiro Yamada3954b732013-10-21 11:53:34 +090018obj-$(CONFIG_CMD_BOOTM) += bootm.o
Simon Glassca5114f2017-01-16 07:04:13 -070019endif
Masahiro Yamada3954b732013-10-21 11:53:34 +090020obj-y += cmd_boot.o
Simon Glass68e03ca2021-03-15 18:00:21 +130021obj-$(CONFIG_$(SPL_)COREBOOT_SYSINFO) += coreboot/
Bin Meng54834492016-05-11 07:44:58 -070022obj-$(CONFIG_SEABIOS) += coreboot_table.o
Bin Meng9f1fad12017-04-21 07:24:38 -070023obj-y += early_cmos.o
Bin Meng59ec7192015-10-07 20:19:10 -070024obj-y += e820.o
Masahiro Yamada3954b732013-10-21 11:53:34 +090025obj-y += init_helpers.o
26obj-y += interrupts.o
Simon Glassa274e9c2015-03-26 09:29:28 -060027obj-y += lpc-uclass.o
Bin Meng7f5df8d2015-06-23 12:18:51 +080028obj-y += mpspec.o
Simon Glass7f926c92020-07-07 21:32:16 -060029obj-$(CONFIG_$(SPL_TPL_)ACPIGEN) += acpi_nhlt.o
Simon Glass55447572016-01-17 16:11:14 -070030obj-y += northbridge-uclass.o
Bin Mengda3fe242015-10-22 19:13:30 -070031obj-$(CONFIG_I8259_PIC) += i8259.o
32obj-$(CONFIG_I8254_TIMER) += i8254.o
Bin Mengfcfc8a82018-06-10 06:25:01 -070033obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o
Bin Mengb5b6b012015-04-24 18:10:05 +080034obj-y += pirq_routing.o
Masahiro Yamada3954b732013-10-21 11:53:34 +090035obj-y += relocate.o
36obj-y += physmem.o
Andy Shevchenkoca0d29e2017-04-01 16:21:34 +030037obj-$(CONFIG_INTEL_MID) += pmu.o
Simon Glass65dd74a2014-11-12 22:42:28 -070038obj-$(CONFIG_X86_RAMTEST) += ramtest.o
Felipe Balbibb416462017-04-01 16:21:33 +030039obj-$(CONFIG_INTEL_MID) += scu.o
Simon Glass65e4c0b2016-09-25 15:27:35 -060040obj-y += sections.o
Simon Glass6388e352015-04-28 20:25:10 -060041obj-y += sfi.o
Bin Menga0609a82018-07-18 21:42:15 -070042obj-y += acpi.o
Bin Meng3a34cae2017-04-21 07:24:37 -070043obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
Miao Yan34865a62016-05-22 19:37:10 -070044ifndef CONFIG_QEMU
Simon Glass60c02312020-09-22 12:45:21 -060045obj-y += acpigen.o
Simon Glass437992d2021-12-01 09:02:43 -070046obj-$(CONFIG_$(SPL_TPL_)GENERATE_ACPI_TABLE) += acpi_table.o
Miao Yanfa287b12016-01-20 01:57:06 -080047endif
Bin Meng5e2400e2015-04-24 18:10:04 +080048obj-y += tables.o
Simon Glassca5114f2017-01-16 07:04:13 -070049ifndef CONFIG_SPL_BUILD
Masahiro Yamada3954b732013-10-21 11:53:34 +090050obj-$(CONFIG_CMD_ZBOOT) += zimage.o
Simon Glassca5114f2017-01-16 07:04:13 -070051endif
Park, Aiden7165fd52019-08-03 08:30:31 +000052obj-$(CONFIG_USE_HOB) += hob.o
Tom Rinic87f9ce2020-06-26 17:40:06 -040053ifndef CONFIG_TPL_BUILD
54obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
Simon Glasse9de4a72019-08-24 14:10:32 -060055obj-$(CONFIG_HAVE_FSP) += fsp/
Simon Glass83311882019-09-25 08:00:11 -060056obj-$(CONFIG_FSP_VERSION1) += fsp1/
57obj-$(CONFIG_FSP_VERSION2) += fsp2/
Tom Rinic87f9ce2020-06-26 17:40:06 -040058endif
Simon Glass7c03caf2019-05-02 10:52:12 -060059
60ifdef CONFIG_SPL_BUILD
61ifdef CONFIG_TPL_BUILD
62obj-y += tpl.o
63else
64obj-y += spl.o
65endif
66endif
wdenk2262cfe2002-11-18 00:14:45 +000067
Stefan Roeseaa7839b2017-11-29 16:23:31 +010068lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
Simon Glass2dcd4e92016-11-07 08:47:14 -070069
Simon Glass450ce562022-01-04 03:51:13 -070070obj-$(CONFIG_EFI_APP_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
71obj-$(CONFIG_EFI_APP_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
Simon Glass2dcd4e92016-11-07 08:47:14 -070072
73ifneq ($(CONFIG_EFI_STUB),)
74
75CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
76CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
77
78# When building for 64-bit we must remove the i386-specific flags
79CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
Bin Meng16dde892018-06-10 06:25:03 -070080CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar -m64
Simon Glass2dcd4e92016-11-07 08:47:14 -070081
82AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
Bin Meng16dde892018-06-10 06:25:03 -070083AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar -m64
Simon Glass2dcd4e92016-11-07 08:47:14 -070084
85extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
86extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
Simon Glass5bd828b2016-11-07 08:47:15 -070087
88endif
89
Heinrich Schuchardtf2560e22018-05-18 19:12:20 +020090ifdef CONFIG_EFI_STUB
91
Simon Glasse1b610b2017-01-16 07:04:12 -070092ifeq ($(CONFIG_$(SPL_)X86_64),)
Simon Glass5bd828b2016-11-07 08:47:15 -070093extra-y += $(EFI_CRT0) $(EFI_RELOC)
Simon Glass2dcd4e92016-11-07 08:47:14 -070094endif
Heinrich Schuchardtf2560e22018-05-18 19:12:20 +020095
96else
97
98ifndef CONFIG_SPL_BUILD
99ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
100extra-y += $(EFI_CRT0) $(EFI_RELOC)
101endif
102endif
103
Simon Glasse1b610b2017-01-16 07:04:12 -0700104endif