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.
|
|
|
|
#
|
2013-07-08 07:37:19 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
2002-11-18 00:14:45 +00:00
|
|
|
#
|
|
|
|
|
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
|
2015-08-04 18:34:01 +00:00
|
|
|
obj-$(CONFIG_EFI) += efi/
|
2015-10-08 03:19:10 +00:00
|
|
|
obj-y += e820.o
|
2013-10-21 02:53:34 +00:00
|
|
|
obj-y += gcc.o
|
|
|
|
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
|
2015-01-01 23:18:15 +00:00
|
|
|
obj-y += cmd_mtrr.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
|
2016-03-12 05:07:13 +00:00
|
|
|
obj-y += 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
|
2014-11-13 05:42:28 +00:00
|
|
|
obj-$(CONFIG_X86_RAMTEST) += ramtest.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
|
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
|
|
|
|
2015-08-04 18:33:53 +00:00
|
|
|
extra-$(CONFIG_USE_PRIVATE_LIBGCC) += lib.a
|
2013-10-21 02:53:34 +00:00
|
|
|
|
2014-10-23 16:30:41 +00:00
|
|
|
NORMAL_LIBGCC = $(shell $(CC) $(PLATFORM_CPPFLAGS) -print-libgcc-file-name)
|
2014-03-11 02:05:13 +00:00
|
|
|
OBJCOPYFLAGS := --prefix-symbols=__normal_
|
2014-10-23 16:30:41 +00:00
|
|
|
$(obj)/lib.a: $(NORMAL_LIBGCC) FORCE
|
2014-03-11 02:05:13 +00:00
|
|
|
$(call if_changed,objcopy)
|
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
|
|
|
|
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-07 15:47:15 +00:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
2016-11-17 21:40:10 +00:00
|
|
|
ifneq ($(CONFIG_EFI_STUB)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
|
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
|
2017-01-16 14:04:12 +00:00
|
|
|
endif
|