2 # (C) Copyright 2002-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
10 obj-y += bios_interrupts.o
11 obj-$(CONFIG_CMD_BOOTM) += bootm.o
13 obj-$(CONFIG_SEABIOS) += coreboot_table.o
14 obj-$(CONFIG_EFI) += efi/
17 obj-y += init_helpers.o
21 obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
23 obj-y += northbridge-uclass.o
24 obj-$(CONFIG_I8259_PIC) += i8259.o
25 obj-$(CONFIG_I8254_TIMER) += i8254.o
26 obj-y += pinctrl_ich6.o
27 obj-y += pirq_routing.o
30 obj-$(CONFIG_X86_RAMTEST) += ramtest.o
35 obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
38 obj-$(CONFIG_CMD_ZBOOT) += zimage.o
39 obj-$(CONFIG_HAVE_FSP) += fsp/
41 extra-$(CONFIG_USE_PRIVATE_LIBGCC) += lib.a
43 NORMAL_LIBGCC = $(shell $(CC) $(PLATFORM_CPPFLAGS) -print-libgcc-file-name)
44 OBJCOPYFLAGS := --prefix-symbols=__normal_
45 $(obj)/lib.a: $(NORMAL_LIBGCC) FORCE
46 $(call if_changed,objcopy)
48 obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
50 ifneq ($(CONFIG_EFI_STUB),)
52 CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
53 CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
55 # When building for 64-bit we must remove the i386-specific flags
56 CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
57 CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar
59 AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
60 AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar
62 extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
63 extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o