2018-05-06 21:58:06 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-11-18 00:14:45 +00:00
|
|
|
#
|
2006-09-01 17:49:50 +00:00
|
|
|
# (C) Copyright 2002-2006
|
2002-11-18 00:14:45 +00:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
|
2017-01-16 14:04:09 +00:00
|
|
|
ifndef CONFIG_X86_64
|
2019-12-07 04:42:23 +00:00
|
|
|
ifndef CONFIG_TPL_BUILD
|
2014-11-15 03:56:32 +00:00
|
|
|
obj-y += bios.o
|
|
|
|
obj-y += bios_asm.o
|
|
|
|
obj-y += bios_interrupts.o
|
2019-12-07 04:42:23 +00:00
|
|
|
endif
|
2019-01-23 01:42:39 +00:00
|
|
|
obj-y += string.o
|
2017-01-16 14:04:09 +00:00
|
|
|
endif
|
2017-01-16 14:04:13 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-10-21 02:53:34 +00:00
|
|
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
2017-01-16 14:04:13 +00:00
|
|
|
endif
|
2013-10-21 02:53:34 +00:00
|
|
|
obj-y += cmd_boot.o
|
2016-05-11 14:44:58 +00:00
|
|
|
obj-$(CONFIG_SEABIOS) += coreboot_table.o
|
2017-04-21 14:24:38 +00:00
|
|
|
obj-y += early_cmos.o
|
2015-10-08 03:19:10 +00:00
|
|
|
obj-y += e820.o
|
2013-10-21 02:53:34 +00:00
|
|
|
obj-y += init_helpers.o
|
|
|
|
obj-y += interrupts.o
|
2015-03-26 15:29:28 +00:00
|
|
|
obj-y += lpc-uclass.o
|
2015-06-23 04:18:51 +00:00
|
|
|
obj-y += mpspec.o
|
2020-07-08 03:32:16 +00:00
|
|
|
obj-$(CONFIG_$(SPL_TPL_)ACPIGEN) += acpi_nhlt.o
|
2016-01-17 23:11:14 +00:00
|
|
|
obj-y += northbridge-uclass.o
|
2015-10-23 02:13:30 +00:00
|
|
|
obj-$(CONFIG_I8259_PIC) += i8259.o
|
|
|
|
obj-$(CONFIG_I8254_TIMER) += i8254.o
|
2018-06-10 13:25:01 +00:00
|
|
|
obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o
|
2015-04-24 10:10:05 +00:00
|
|
|
obj-y += pirq_routing.o
|
2013-10-21 02:53:34 +00:00
|
|
|
obj-y += relocate.o
|
|
|
|
obj-y += physmem.o
|
2017-04-01 13:21:34 +00:00
|
|
|
obj-$(CONFIG_INTEL_MID) += pmu.o
|
2014-11-13 05:42:28 +00:00
|
|
|
obj-$(CONFIG_X86_RAMTEST) += ramtest.o
|
2017-04-01 13:21:33 +00:00
|
|
|
obj-$(CONFIG_INTEL_MID) += scu.o
|
2016-09-25 21:27:35 +00:00
|
|
|
obj-y += sections.o
|
2015-04-29 02:25:10 +00:00
|
|
|
obj-y += sfi.o
|
2018-07-19 04:42:15 +00:00
|
|
|
obj-y += acpi.o
|
2017-04-21 14:24:37 +00:00
|
|
|
obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
|
2016-05-23 02:37:10 +00:00
|
|
|
ifndef CONFIG_QEMU
|
2020-09-22 18:45:12 +00:00
|
|
|
obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o acpigen.o
|
2016-01-20 09:57:06 +00:00
|
|
|
endif
|
2015-04-24 10:10:04 +00:00
|
|
|
obj-y += tables.o
|
2017-01-16 14:04:13 +00:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-10-21 02:53:34 +00:00
|
|
|
obj-$(CONFIG_CMD_ZBOOT) += zimage.o
|
2017-01-16 14:04:13 +00:00
|
|
|
endif
|
2019-08-03 08:30:31 +00:00
|
|
|
obj-$(CONFIG_USE_HOB) += hob.o
|
2020-06-26 21:40:06 +00:00
|
|
|
ifndef CONFIG_TPL_BUILD
|
|
|
|
obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
|
2019-08-24 20:10:32 +00:00
|
|
|
obj-$(CONFIG_HAVE_FSP) += fsp/
|
2019-09-25 14:00:11 +00:00
|
|
|
obj-$(CONFIG_FSP_VERSION1) += fsp1/
|
|
|
|
obj-$(CONFIG_FSP_VERSION2) += fsp2/
|
2020-06-26 21:40:06 +00:00
|
|
|
endif
|
2019-05-02 16:52:12 +00:00
|
|
|
|
|
|
|
ifdef CONFIG_SPL_BUILD
|
|
|
|
ifdef CONFIG_TPL_BUILD
|
|
|
|
obj-y += tpl.o
|
|
|
|
else
|
|
|
|
obj-y += spl.o
|
|
|
|
endif
|
|
|
|
endif
|
2013-10-21 02:53:34 +00:00
|
|
|
|
2017-11-29 15:23:31 +00:00
|
|
|
lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
|
2016-11-07 15:47:14 +00:00
|
|
|
|
2017-01-16 14:04:12 +00:00
|
|
|
ifeq ($(CONFIG_$(SPL_)X86_64),)
|
2016-11-07 15:47:14 +00:00
|
|
|
obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
|
2017-01-16 14:04:12 +00:00
|
|
|
endif
|
2016-11-07 15:47:14 +00:00
|
|
|
|
|
|
|
ifneq ($(CONFIG_EFI_STUB),)
|
|
|
|
|
|
|
|
CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
|
|
|
|
CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
|
|
|
|
|
|
|
|
# When building for 64-bit we must remove the i386-specific flags
|
|
|
|
CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
|
2018-06-10 13:25:03 +00:00
|
|
|
CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar -m64
|
2016-11-07 15:47:14 +00:00
|
|
|
|
|
|
|
AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
|
2018-06-10 13:25:03 +00:00
|
|
|
AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar -m64
|
2016-11-07 15:47:14 +00:00
|
|
|
|
|
|
|
extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
|
|
|
|
extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
|
2016-11-07 15:47:15 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2018-05-18 17:12:20 +00:00
|
|
|
ifdef CONFIG_EFI_STUB
|
|
|
|
|
2017-01-16 14:04:12 +00:00
|
|
|
ifeq ($(CONFIG_$(SPL_)X86_64),)
|
2016-11-07 15:47:15 +00:00
|
|
|
extra-y += $(EFI_CRT0) $(EFI_RELOC)
|
2016-11-07 15:47:14 +00:00
|
|
|
endif
|
2018-05-18 17:12:20 +00:00
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
ifndef CONFIG_SPL_BUILD
|
|
|
|
ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
|
|
|
|
extra-y += $(EFI_CRT0) $(EFI_RELOC)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2017-01-16 14:04:12 +00:00
|
|
|
endif
|