blob: 1e8efcc44f9fb918b1dea5534001c2525242ad53 [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 Glass05cbd982017-01-16 07:04:09 -07006ifndef CONFIG_X86_64
Simon Glass0ca24262014-11-14 20:56:32 -07007obj-y += bios.o
8obj-y += bios_asm.o
9obj-y += bios_interrupts.o
Simon Glass05cbd982017-01-16 07:04:09 -070010endif
Simon Glassca5114f2017-01-16 07:04:13 -070011ifndef CONFIG_SPL_BUILD
Masahiro Yamada3954b732013-10-21 11:53:34 +090012obj-$(CONFIG_CMD_BOOTM) += bootm.o
Simon Glassca5114f2017-01-16 07:04:13 -070013endif
Masahiro Yamada3954b732013-10-21 11:53:34 +090014obj-y += cmd_boot.o
Bin Meng54834492016-05-11 07:44:58 -070015obj-$(CONFIG_SEABIOS) += coreboot_table.o
Bin Meng9f1fad12017-04-21 07:24:38 -070016obj-y += early_cmos.o
Bin Meng59ec7192015-10-07 20:19:10 -070017obj-y += e820.o
Masahiro Yamada3954b732013-10-21 11:53:34 +090018obj-y += init_helpers.o
19obj-y += interrupts.o
Simon Glassa274e9c2015-03-26 09:29:28 -060020obj-y += lpc-uclass.o
Bin Meng7f5df8d2015-06-23 12:18:51 +080021obj-y += mpspec.o
Bin Mengf6220f12015-10-11 21:37:36 -070022obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
Simon Glass55447572016-01-17 16:11:14 -070023obj-y += northbridge-uclass.o
Bin Mengda3fe242015-10-22 19:13:30 -070024obj-$(CONFIG_I8259_PIC) += i8259.o
25obj-$(CONFIG_I8254_TIMER) += i8254.o
Bin Mengfcfc8a82018-06-10 06:25:01 -070026obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o
Bin Mengb5b6b012015-04-24 18:10:05 +080027obj-y += pirq_routing.o
Masahiro Yamada3954b732013-10-21 11:53:34 +090028obj-y += relocate.o
29obj-y += physmem.o
Andy Shevchenkoca0d29e2017-04-01 16:21:34 +030030obj-$(CONFIG_INTEL_MID) += pmu.o
Simon Glass65dd74a2014-11-12 22:42:28 -070031obj-$(CONFIG_X86_RAMTEST) += ramtest.o
Felipe Balbibb416462017-04-01 16:21:33 +030032obj-$(CONFIG_INTEL_MID) += scu.o
Simon Glass65e4c0b2016-09-25 15:27:35 -060033obj-y += sections.o
Simon Glass6388e352015-04-28 20:25:10 -060034obj-y += sfi.o
Masahiro Yamada3954b732013-10-21 11:53:34 +090035obj-y += string.o
Bin Menga0609a82018-07-18 21:42:15 -070036obj-y += acpi.o
Bin Meng3a34cae2017-04-21 07:24:37 -070037obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
Miao Yan34865a62016-05-22 19:37:10 -070038ifndef CONFIG_QEMU
Saket Sinha867bcb62015-08-22 12:20:55 +053039obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
Miao Yanfa287b12016-01-20 01:57:06 -080040endif
Bin Meng5e2400e2015-04-24 18:10:04 +080041obj-y += tables.o
Simon Glassca5114f2017-01-16 07:04:13 -070042ifndef CONFIG_SPL_BUILD
Masahiro Yamada3954b732013-10-21 11:53:34 +090043obj-$(CONFIG_CMD_ZBOOT) += zimage.o
Simon Glassca5114f2017-01-16 07:04:13 -070044endif
Simon Glass1021af42015-01-27 22:13:36 -070045obj-$(CONFIG_HAVE_FSP) += fsp/
Simon Glass4bbc0242017-01-16 07:03:56 -070046obj-$(CONFIG_SPL_BUILD) += spl.o
wdenk2262cfe2002-11-18 00:14:45 +000047
Stefan Roeseaa7839b2017-11-29 16:23:31 +010048lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
Simon Glass2dcd4e92016-11-07 08:47:14 -070049
Simon Glasse1b610b2017-01-16 07:04:12 -070050ifeq ($(CONFIG_$(SPL_)X86_64),)
Simon Glass2dcd4e92016-11-07 08:47:14 -070051obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
Simon Glasse1b610b2017-01-16 07:04:12 -070052endif
Simon Glass2dcd4e92016-11-07 08:47:14 -070053
54ifneq ($(CONFIG_EFI_STUB),)
55
56CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
57CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
58
59# When building for 64-bit we must remove the i386-specific flags
60CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
Bin Meng16dde892018-06-10 06:25:03 -070061CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar -m64
Simon Glass2dcd4e92016-11-07 08:47:14 -070062
63AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
Bin Meng16dde892018-06-10 06:25:03 -070064AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar -m64
Simon Glass2dcd4e92016-11-07 08:47:14 -070065
66extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
67extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
Simon Glass5bd828b2016-11-07 08:47:15 -070068
69endif
70
Heinrich Schuchardtf2560e22018-05-18 19:12:20 +020071ifdef CONFIG_EFI_STUB
72
Simon Glasse1b610b2017-01-16 07:04:12 -070073ifeq ($(CONFIG_$(SPL_)X86_64),)
Simon Glass5bd828b2016-11-07 08:47:15 -070074extra-y += $(EFI_CRT0) $(EFI_RELOC)
Simon Glass2dcd4e92016-11-07 08:47:14 -070075endif
Heinrich Schuchardtf2560e22018-05-18 19:12:20 +020076
77else
78
79ifndef CONFIG_SPL_BUILD
80ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
81extra-y += $(EFI_CRT0) $(EFI_RELOC)
82endif
83endif
84
Simon Glasse1b610b2017-01-16 07:04:12 -070085endif