1 # SPDX-License-Identifier: GPL-2.0+
3 # (C) Copyright 2002-2006
8 ifndef CONFIG_$(SPL_TPL_)X86_64
11 obj-y += bios_interrupts.o
14 ifndef CONFIG_XPL_BUILD
15 obj-$(CONFIG_X86_32BIT_INIT) += string.o
18 ifndef CONFIG_XPL_BUILD
19 obj-$(CONFIG_CMD_BOOTM) += bootm.o
22 obj-$(CONFIG_$(XPL_)COREBOOT_SYSINFO) += coreboot/
23 obj-$(CONFIG_SEABIOS) += coreboot_table.o
26 obj-y += init_helpers.o
30 obj-$(CONFIG_$(SPL_TPL_)ACPIGEN) += acpi_nhlt.o
31 obj-y += northbridge-uclass.o
32 obj-$(CONFIG_I8259_PIC) += i8259.o
33 obj-$(CONFIG_I8254_TIMER) += i8254.o
34 obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o
35 obj-y += pirq_routing.o
38 obj-$(CONFIG_INTEL_MID) += pmu.o
39 obj-$(CONFIG_X86_RAMTEST) += ramtest.o
40 obj-$(CONFIG_INTEL_MID) += scu.o
44 obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
47 obj-$(CONFIG_$(SPL_TPL_)GENERATE_ACPI_TABLE) += acpi_table.o
50 ifndef CONFIG_XPL_BUILD
51 obj-$(CONFIG_ZBOOT) += zimage.o
53 obj-$(CONFIG_USE_HOB) += hob.o
54 ifndef CONFIG_TPL_BUILD
55 obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
56 obj-$(CONFIG_HAVE_FSP) += fsp/
57 obj-$(CONFIG_FSP_VERSION1) += fsp1/
58 obj-$(CONFIG_FSP_VERSION2) += fsp2/
61 ifdef CONFIG_XPL_BUILD
62 ifdef CONFIG_TPL_BUILD
69 lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
71 obj-$(CONFIG_EFI_APP_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
72 obj-$(CONFIG_EFI_APP_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
74 ifneq ($(CONFIG_EFI_STUB),)
76 CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
77 CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
79 # When building for 64-bit we must remove the i386-specific flags
80 CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
81 CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar -m64
83 AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
84 AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar -m64
86 extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
87 extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
93 ifeq ($(CONFIG_$(XPL_)X86_64),)
94 extra-y += $(EFI_CRT0) $(EFI_RELOC)
99 ifndef CONFIG_XPL_BUILD
100 ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
101 extra-y += $(EFI_CRT0) $(EFI_RELOC)