2 # (C) Copyright 2002-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
11 obj-y += bios_interrupts.o
13 ifndef CONFIG_SPL_BUILD
14 obj-$(CONFIG_CMD_BOOTM) += bootm.o
17 obj-$(CONFIG_SEABIOS) += coreboot_table.o
19 obj-$(CONFIG_EFI) += efi/
21 obj-y += init_helpers.o
25 obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
27 obj-y += northbridge-uclass.o
28 obj-$(CONFIG_I8259_PIC) += i8259.o
29 obj-$(CONFIG_I8254_TIMER) += i8254.o
30 obj-y += pinctrl_ich6.o
31 obj-y += pirq_routing.o
34 obj-$(CONFIG_INTEL_MID) += pmu.o
35 obj-$(CONFIG_X86_RAMTEST) += ramtest.o
36 obj-$(CONFIG_INTEL_MID) += scu.o
40 obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
42 obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
45 ifndef CONFIG_SPL_BUILD
46 obj-$(CONFIG_CMD_ZBOOT) += zimage.o
48 obj-$(CONFIG_HAVE_FSP) += fsp/
49 obj-$(CONFIG_SPL_BUILD) += spl.o
51 lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
53 ifeq ($(CONFIG_$(SPL_)X86_64),)
54 obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
57 ifneq ($(CONFIG_EFI_STUB),)
59 CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
60 CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
62 # When building for 64-bit we must remove the i386-specific flags
63 CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
64 CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar
66 AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
67 AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar
69 extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
70 extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
74 ifneq ($(CONFIG_EFI_STUB)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
75 ifeq ($(CONFIG_$(SPL_)X86_64),)
76 extra-y += $(EFI_CRT0) $(EFI_RELOC)