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 obj-$(CONFIG_CMD_BOOTM) += bootm.o
15 obj-$(CONFIG_SEABIOS) += coreboot_table.o
16 obj-$(CONFIG_EFI) += efi/
19 obj-y += init_helpers.o
23 obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
25 obj-y += northbridge-uclass.o
26 obj-$(CONFIG_I8259_PIC) += i8259.o
27 obj-$(CONFIG_I8254_TIMER) += i8254.o
28 obj-y += pinctrl_ich6.o
29 obj-y += pirq_routing.o
32 obj-$(CONFIG_X86_RAMTEST) += ramtest.o
37 obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
40 obj-$(CONFIG_CMD_ZBOOT) += zimage.o
41 obj-$(CONFIG_HAVE_FSP) += fsp/
42 obj-$(CONFIG_SPL_BUILD) += spl.o
44 extra-$(CONFIG_USE_PRIVATE_LIBGCC) += lib.a
46 NORMAL_LIBGCC = $(shell $(CC) $(PLATFORM_CPPFLAGS) -print-libgcc-file-name)
47 OBJCOPYFLAGS := --prefix-symbols=__normal_
48 $(obj)/lib.a: $(NORMAL_LIBGCC) FORCE
49 $(call if_changed,objcopy)
51 obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
53 ifneq ($(CONFIG_EFI_STUB),)
55 CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
56 CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
58 # When building for 64-bit we must remove the i386-specific flags
59 CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
60 CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar
62 AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
63 AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar
65 extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
66 extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
70 ifneq ($(CONFIG_EFI_STUB)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
71 extra-y += $(EFI_CRT0) $(EFI_RELOC)