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
|
2014-11-15 03:56:32 +00:00
|
|
|
obj-y += bios.o
|
|
|
|
obj-y += bios_asm.o
|
|
|
|
obj-y += bios_interrupts.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
|
2015-10-12 04:37:36 +00:00
|
|
|
obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.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
|
2013-10-21 02:53:34 +00:00
|
|
|
obj-y += string.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
|
x86: Generate a valid ACPI table
Implement write_acpi_table() to create a minimal working ACPI table.
This includes writing FACS, XSDT, RSDP, FADT, MCFG, MADT, DSDT & SSDT
ACPI table entries.
Use a Kconfig option GENERATE_ACPI_TABLE to tell U-Boot whether we need
actually write the APCI table just like we did for PIRQ routing, MP table
and SFI tables. With ACPI table existence, linux kernel gets control of
power management, thermal management, configuration management and
monitoring in hardware.
Signed-off-by: Saket Sinha <saket.sinha89@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tidied up whitespace and aligned some tabs:
Signed-off-by: Simon Glass <sjg@chromium.org>
2015-08-22 06:50:55 +00:00
|
|
|
obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.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
|
2015-01-28 05:13:36 +00:00
|
|
|
obj-$(CONFIG_HAVE_FSP) += fsp/
|
2017-01-16 14:03:56 +00:00
|
|
|
obj-$(CONFIG_SPL_BUILD) += spl.o
|
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
|