1 # SPDX-License-Identifier: GPL-2.0+ 2 # 3 # (C) Copyright 2002-2006 4 # Wolfgang Denk, DENX Software Engineering, wd (at] denx.de. 5 6 ifndef CONFIG_X86_64 7 obj-y += bios.o 8 obj-y += bios_asm.o 9 obj-y += bios_interrupts.o 10 endif 11 ifndef CONFIG_SPL_BUILD 12 obj-$(CONFIG_CMD_BOOTM) += bootm.o 13 endif 14 obj-y += cmd_boot.o 15 obj-$(CONFIG_SEABIOS) += coreboot_table.o 16 obj-y += early_cmos.o 17 obj-y += e820.o 18 obj-y += init_helpers.o 19 obj-y += interrupts.o 20 obj-y += lpc-uclass.o 21 obj-y += mpspec.o 22 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-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o 27 obj-y += pirq_routing.o 28 obj-y += relocate.o 29 obj-y += physmem.o 30 obj-$(CONFIG_INTEL_MID) += pmu.o 31 obj-$(CONFIG_X86_RAMTEST) += ramtest.o 32 obj-$(CONFIG_INTEL_MID) += scu.o 33 obj-y += sections.o 34 obj-y += sfi.o 35 obj-y += string.o 36 obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o 37 ifndef CONFIG_QEMU 38 obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o 39 endif 40 obj-y += tables.o 41 ifndef CONFIG_SPL_BUILD 42 obj-$(CONFIG_CMD_ZBOOT) += zimage.o 43 endif 44 obj-$(CONFIG_HAVE_FSP) += fsp/ 45 obj-$(CONFIG_SPL_BUILD) += spl.o 46 47 lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o 48 49 ifeq ($(CONFIG_$(SPL_)X86_64),) 50 obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o 51 endif 52 53 ifneq ($(CONFIG_EFI_STUB),) 54 55 CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3 56 CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar 57 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 -m64 61 62 AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32 63 AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar -m64 64 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 67 68 endif 69 70 ifdef CONFIG_EFI_STUB 71 72 ifeq ($(CONFIG_$(SPL_)X86_64),) 73 extra-y += $(EFI_CRT0) $(EFI_RELOC) 74 endif 75 76 else 77 78 ifndef CONFIG_SPL_BUILD 79 ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),) 80 extra-y += $(EFI_CRT0) $(EFI_RELOC) 81 endif 82 endif 83 84 endif 85