Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # (C) Copyright 2002-2006
  4. # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  5. ifndef CONFIG_X86_64
  6. obj-y += bios.o
  7. obj-y += bios_asm.o
  8. obj-y += bios_interrupts.o
  9. endif
  10. ifndef CONFIG_SPL_BUILD
  11. obj-$(CONFIG_CMD_BOOTM) += bootm.o
  12. endif
  13. obj-y += cmd_boot.o
  14. obj-$(CONFIG_SEABIOS) += coreboot_table.o
  15. obj-y += early_cmos.o
  16. obj-y += e820.o
  17. obj-y += init_helpers.o
  18. obj-y += interrupts.o
  19. obj-y += lpc-uclass.o
  20. obj-y += mpspec.o
  21. obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
  22. obj-y += northbridge-uclass.o
  23. obj-$(CONFIG_I8259_PIC) += i8259.o
  24. obj-$(CONFIG_I8254_TIMER) += i8254.o
  25. obj-$(CONFIG_PINCTRL_ICH6) += pinctrl_ich6.o
  26. obj-y += pirq_routing.o
  27. obj-y += relocate.o
  28. obj-y += physmem.o
  29. obj-$(CONFIG_INTEL_MID) += pmu.o
  30. obj-$(CONFIG_X86_RAMTEST) += ramtest.o
  31. obj-$(CONFIG_INTEL_MID) += scu.o
  32. obj-y += sections.o
  33. obj-y += sfi.o
  34. obj-y += string.o
  35. obj-$(CONFIG_HAVE_ACPI_RESUME) += acpi_s3.o
  36. ifndef CONFIG_QEMU
  37. obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
  38. endif
  39. obj-y += tables.o
  40. ifndef CONFIG_SPL_BUILD
  41. obj-$(CONFIG_CMD_ZBOOT) += zimage.o
  42. endif
  43. obj-$(CONFIG_HAVE_FSP) += fsp/
  44. obj-$(CONFIG_SPL_BUILD) += spl.o
  45. lib-$(CONFIG_USE_PRIVATE_LIBGCC) += div64.o
  46. ifeq ($(CONFIG_$(SPL_)X86_64),)
  47. obj-$(CONFIG_EFI_APP) += crt0_ia32_efi.o reloc_ia32_efi.o
  48. endif
  49. ifneq ($(CONFIG_EFI_STUB),)
  50. CFLAGS_REMOVE_reloc_ia32_efi.o += -mregparm=3
  51. CFLAGS_reloc_ia32_efi.o += -fpic -fshort-wchar
  52. # When building for 64-bit we must remove the i386-specific flags
  53. CFLAGS_REMOVE_reloc_x86_64_efi.o += -mregparm=3 -march=i386 -m32
  54. CFLAGS_reloc_x86_64_efi.o += -fpic -fshort-wchar -m64
  55. AFLAGS_REMOVE_crt0_x86_64_efi.o += -mregparm=3 -march=i386 -m32
  56. AFLAGS_crt0_x86_64_efi.o += -fpic -fshort-wchar -m64
  57. extra-$(CONFIG_EFI_STUB_32BIT) += crt0_ia32_efi.o reloc_ia32_efi.o
  58. extra-$(CONFIG_EFI_STUB_64BIT) += crt0_x86_64_efi.o reloc_x86_64_efi.o
  59. endif
  60. ifdef CONFIG_EFI_STUB
  61. ifeq ($(CONFIG_$(SPL_)X86_64),)
  62. extra-y += $(EFI_CRT0) $(EFI_RELOC)
  63. endif
  64. else
  65. ifndef CONFIG_SPL_BUILD
  66. ifneq ($(CONFIG_CMD_BOOTEFI_SELFTEST)$(CONFIG_CMD_BOOTEFI_HELLO_COMPILE),)
  67. extra-y += $(EFI_CRT0) $(EFI_RELOC)
  68. endif
  69. endif
  70. endif