2002-11-18 09:14:45 +09:00
|
|
|
#
|
2006-09-02 02:49:50 +09:00
|
|
|
# (C) Copyright 2002-2006
|
2002-11-18 09:14:45 +09:00
|
|
|
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
|
|
|
#
|
2013-07-08 16:37:19 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-11-18 09:14:45 +09:00
|
|
|
#
|
|
|
|
|
2017-01-16 23:04:09 +09:00
|
|
|
ifndef CONFIG_X86_64
|
2014-11-15 12:56:32 +09:00
|
|
|
obj-y += bios.o
|
|
|
|
obj-y += bios_asm.o
|
|
|
|
obj-y += bios_interrupts.o
|
2017-01-16 23:04:09 +09:00
|
|
|
endif
|
2017-01-16 23:04:13 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-10-21 11:53:34 +09:00
|
|
|
obj-$(CONFIG_CMD_BOOTM) += bootm.o
|
2017-01-16 23:04:13 +09:00
|
|
|
endif
|
2013-10-21 11:53:34 +09:00
|
|
|
obj-y += cmd_boot.o
|
2016-05-11 23:44:58 +09:00
|
|
|
obj-$(CONFIG_SEABIOS) += coreboot_table.o
|
2017-04-21 23:24:38 +09:00
|
|
|
obj-y += early_cmos.o
|
2015-08-05 03:34:01 +09:00
|
|
|
obj-$(CONFIG_EFI) += efi/
|
2015-10-08 12:19:10 +09:00
|
|
|
obj-y += e820.o
|
2013-10-21 11:53:34 +09:00
|
|
|
obj-y += init_helpers.o
|
|
|
|
obj-y += interrupts.o
|
2015-03-27 00:29:28 +09:00
|
|
|
obj-y += lpc-uclass.o
|
2015-06-23 13:18:51 +09:00
|
|
|
obj-y += mpspec.o
|
2015-10-12 13:37:36 +09:00
|
|
|
obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
|
2015-01-02 08:18:15 +09:00
|
|
|
obj-y += cmd_mtrr.o
|
2016-01-18 08:11:14 +09:00
|
|
|
obj-y += northbridge-uclass.o
|
2015-10-23 11:13:30 +09:00
|
|
|
obj-$(CONFIG_I8259_PIC) += i8259.o
|
|
|
|
obj-$(CONFIG_I8254_TIMER) += i8254.o
|
2016-03-12 14:07:13 +09:00
|
|
|
obj-y += pinctrl_ich6.o
|
2015-04-24 19:10:05 +09:00
|
|
|
obj-y += pirq_routing.o
|
2013-10-21 11:53:34 +09:00
|
|
|
obj-y += relocate.o
|
|
|
|
obj-y += physmem.o
|
2017-04-01 22:21:34 +09:00
|
|
|
obj-$(CONFIG_INTEL_MID) += pmu.o
|
2014-11-13 14:42:28 +09:00
|
|
|
obj-$(CONFIG_X86_RAMTEST) += ramtest.o
|
2017-04-01 22:21:33 +09:00
|
|
|
obj-$(CONFIG_INTEL_MID) += scu.o
|
2016-09-26 06:27:35 +09:00
|
|
|
obj-y += sections.o
|
2015-04-29 11:25:10 +09:00
|
|
|
obj-y += sfi.o
|
2013-10-21 11:53:34 +09:00
|
|
|
obj-y += string.o
|
2017-04-21 23:24:37 +09:00
|
|
|
obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
|
2016-05-23 11:37:10 +09: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 15:50:55 +09:00
|
|
|
obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
|
2016-01-20 18:57:06 +09:00
|
|
|
endif
|
2015-04-24 19:10:04 +09:00
|
|
|
obj-y += tables.o
|
2017-01-16 23:04:13 +09:00
|
|
|
ifndef CONFIG_SPL_BUILD
|
2013-10-21 11:53:34 +09:00
|
|
|
obj-$(CONFIG_CMD_ZBOOT) += zimage.o
|
2017-01-16 23:04:13 +09:00
|
|
|
endif
|
2015-01-28 14:13:36 +09:00
|
|
|
obj-$(CONFIG_HAVE_FSP) += fsp/
|
2017-01-16 23:03:56 +09:00
|
|
|
obj-$(CONFIG_SPL_BUILD) += spl.o
|
2013-10-21 11:53:34 +09:00
|
|
|
|
2017-11-30 00:23:31 +09:00
|
|
|
lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
|
2016-11-08 00:47:14 +09:00
|
|
|
|
2017-01-16 23:04:12 +09:00
|
|
|
ifeq ($(CONFIG_$(SPL_)X86_64),)
|
2016-11-08 00:47:14 +09:00
|
|
|
obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
|
2017-01-16 23:04:12 +09:00
|
|
|
endif
|
2016-11-08 00:47:14 +09: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
|
|
|
|
CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar
|
|
|
|
|
|
|
|
AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
|
|
|
|
AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar
|
|
|
|
|
|
|
|
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-08 00:47:15 +09:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2016-11-18 06:40:10 +09:00
|
|
|
ifneq ($(CONFIG_EFI_STUB)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
|
2017-01-16 23:04:12 +09:00
|
|
|
ifeq ($(CONFIG_$(SPL_)X86_64),)
|
2016-11-08 00:47:15 +09:00
|
|
|
extra-y += $(EFI_CRT0) $(EFI_RELOC)
|
2016-11-08 00:47:14 +09:00
|
|
|
endif
|
2017-01-16 23:04:12 +09:00
|
|
|
endif
|