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