blob: 906be5eab98571d528a7353a63fef84131e36279 [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 Glass3dfe4512017-01-16 07:04:09 -07006ifndef CONFIG_X86_64
Simon Glassb2978d32014-11-14 20:56:32 -07007obj-y += bios.o
8obj-y += bios_asm.o
9obj-y += bios_interrupts.o
Heinrich Schuchardt72454762019-01-23 02:42:39 +010010obj-y += string.o
Simon Glass3dfe4512017-01-16 07:04:09 -070011endif
Simon Glass602b98f2017-01-16 07:04:13 -070012ifndef CONFIG_SPL_BUILD
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090013obj-$(CONFIG_CMD_BOOTM) += bootm.o
Simon Glass602b98f2017-01-16 07:04:13 -070014endif
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090015obj-y += cmd_boot.o
Bin Menge31a79a2016-05-11 07:44:58 -070016obj-$(CONFIG_SEABIOS) += coreboot_table.o
Bin Meng39f8b082017-04-21 07:24:38 -070017obj-y += early_cmos.o
Bin Menga4899632015-10-07 20:19:10 -070018obj-y += e820.o
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090019obj-y += init_helpers.o
20obj-y += interrupts.o
Simon Glassa5caa372015-03-26 09:29:28 -060021obj-y += lpc-uclass.o
Bin Mengf91cf6b2015-06-23 12:18:51 +080022obj-y += mpspec.o
Bin Meng21666cf2015-10-11 21:37:36 -070023obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
Simon Glass29ce97e2016-01-17 16:11:14 -070024obj-y += northbridge-uclass.o
Bin Mengb29a08c2015-10-22 19:13:30 -070025obj-$(CONFIG_I8259_PIC) += i8259.o
26obj-$(CONFIG_I8254_TIMER) += i8254.o
Bin Mengc253c3f2018-06-10 06:25:01 -070027obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o
Bin Meng45236ad2015-04-24 18:10:05 +080028obj-y += pirq_routing.o
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090029obj-y += relocate.o
30obj-y += physmem.o
Andy Shevchenko7d2c2012017-04-01 16:21:34 +030031obj-$(CONFIG_INTEL_MID) += pmu.o
Simon Glass268eefd2014-11-12 22:42:28 -070032obj-$(CONFIG_X86_RAMTEST) += ramtest.o
Felipe Balbiee2e85f2017-04-01 16:21:33 +030033obj-$(CONFIG_INTEL_MID) += scu.o
Simon Glasscdfe6962016-09-25 15:27:35 -060034obj-y += sections.o
Simon Glass07e922a2015-04-28 20:25:10 -060035obj-y += sfi.o
Bin Mengac630252018-07-18 21:42:15 -070036obj-y += acpi.o
Bin Meng710d2152017-04-21 07:24:37 -070037obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
Miao Yan75e27da2016-05-22 19:37:10 -070038ifndef CONFIG_QEMU
Saket Sinha331141a2015-08-22 12:20:55 +053039obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
Miao Yan3b68c522016-01-20 01:57:06 -080040endif
Bin Mengf17cea62015-04-24 18:10:04 +080041obj-y += tables.o
Simon Glass602b98f2017-01-16 07:04:13 -070042ifndef CONFIG_SPL_BUILD
Masahiro Yamadaaa96dd12013-10-21 11:53:34 +090043obj-$(CONFIG_CMD_ZBOOT) += zimage.o
Simon Glass602b98f2017-01-16 07:04:13 -070044endif
Park, Aiden538aec92019-08-03 08:30:31 +000045obj-$(CONFIG_USE_HOB) += hob.o
Simon Glassb93abfc2015-01-27 22:13:36 -070046obj-$(CONFIG_HAVE_FSP) += fsp/
Simon Glass7cf5fe02019-05-02 10:52:12 -060047
48ifdef CONFIG_SPL_BUILD
49ifdef CONFIG_TPL_BUILD
50obj-y += tpl.o
51else
52obj-y += spl.o
53endif
54endif
wdenk591dda52002-11-18 00:14:45 +000055
Stefan Roesedfafe7a2017-11-29 16:23:31 +010056lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
Simon Glass6f4b08a2016-11-07 08:47:14 -070057
Simon Glass2f1492e2017-01-16 07:04:12 -070058ifeq ($(CONFIG_$(SPL_)X86_64),)
Simon Glass6f4b08a2016-11-07 08:47:14 -070059obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
Simon Glass2f1492e2017-01-16 07:04:12 -070060endif
Simon Glass6f4b08a2016-11-07 08:47:14 -070061
62ifneq ($(CONFIG_EFI_STUB),)
63
64CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
65CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
66
67# When building for 64-bit we must remove the i386-specific flags
68CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
Bin Meng5acbb782018-06-10 06:25:03 -070069CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar -m64
Simon Glass6f4b08a2016-11-07 08:47:14 -070070
71AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
Bin Meng5acbb782018-06-10 06:25:03 -070072AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar -m64
Simon Glass6f4b08a2016-11-07 08:47:14 -070073
74extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
75extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
Simon Glass105c9362016-11-07 08:47:15 -070076
77endif
78
Heinrich Schuchardt3366ff0c2018-05-18 19:12:20 +020079ifdef CONFIG_EFI_STUB
80
Simon Glass2f1492e2017-01-16 07:04:12 -070081ifeq ($(CONFIG_$(SPL_)X86_64),)
Simon Glass105c9362016-11-07 08:47:15 -070082extra-y += $(EFI_CRT0) $(EFI_RELOC)
Simon Glass6f4b08a2016-11-07 08:47:14 -070083endif
Heinrich Schuchardt3366ff0c2018-05-18 19:12:20 +020084
85else
86
87ifndef CONFIG_SPL_BUILD
88ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
89extra-y += $(EFI_CRT0) $(EFI_RELOC)
90endif
91endif
92
Simon Glass2f1492e2017-01-16 07:04:12 -070093endif