Merge branch 'master' of git://git.denx.de/u-boot
[platform/kernel/u-boot.git] / arch / x86 / lib / Makefile
1 #
2 # (C) Copyright 2002-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 obj-y += bios.o
9 obj-y += bios_asm.o
10 obj-y += bios_interrupts.o
11 obj-$(CONFIG_CMD_BOOTM) += bootm.o
12 obj-y   += cmd_boot.o
13 obj-$(CONFIG_EFI) += efi/
14 obj-y   += e820.o
15 obj-y   += gcc.o
16 obj-y   += init_helpers.o
17 obj-y   += interrupts.o
18 obj-y   += lpc-uclass.o
19 obj-y   += mpspec.o
20 obj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
21 obj-y += cmd_mtrr.o
22 obj-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o
23 obj-$(CONFIG_SYS_PCAT_TIMER) += pcat_timer.o
24 ifndef CONFIG_DM_PCI
25 obj-$(CONFIG_PCI) += pci_type1.o
26 endif
27 obj-y   += pch-uclass.o
28 obj-y   += pirq_routing.o
29 obj-y   += relocate.o
30 obj-y += physmem.o
31 obj-$(CONFIG_X86_RAMTEST) += ramtest.o
32 obj-y += sfi.o
33 obj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
34 obj-y   += string.o
35 obj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
36 obj-y   += tables.o
37 obj-$(CONFIG_SYS_X86_TSC_TIMER) += tsc_timer.o
38 obj-$(CONFIG_CMD_ZBOOT) += zimage.o
39 obj-$(CONFIG_HAVE_FSP) += fsp/
40
41 extra-$(CONFIG_USE_PRIVATE_LIBGCC) += lib.a
42
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)