xref: /openbmc/u-boot/arch/x86/lib/Makefile (revision 721e992a8af5e80b2a95a0bc92c9880f2056190b)
1fea25720SGraeme Russ#
2fea25720SGraeme Russ# (C) Copyright 2002-2006
3fea25720SGraeme Russ# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4fea25720SGraeme Russ#
51a459660SWolfgang Denk# SPDX-License-Identifier:	GPL-2.0+
6fea25720SGraeme Russ#
7fea25720SGraeme Russ
80ca2426bSSimon Glassobj-y += bios.o
90ca2426bSSimon Glassobj-y += bios_asm.o
100ca2426bSSimon Glassobj-y += bios_interrupts.o
113954b739SMasahiro Yamadaobj-$(CONFIG_CMD_BOOTM) += bootm.o
123954b739SMasahiro Yamadaobj-y	+= cmd_boot.o
13ba7b38a5SBin Mengobj-$(CONFIG_HAVE_FSP) += cmd_hob.o
148e366508SSimon Glassobj-$(CONFIG_EFI) += efi/
1559ec719dSBin Mengobj-y	+= e820.o
163954b739SMasahiro Yamadaobj-y	+= gcc.o
173954b739SMasahiro Yamadaobj-y	+= init_helpers.o
183954b739SMasahiro Yamadaobj-y	+= interrupts.o
19a274e9caSSimon Glassobj-y	+= lpc-uclass.o
207f5df8d4SBin Mengobj-y	+= mpspec.o
21cb3b2e62SSimon Glassobj-y += cmd_mtrr.o
223954b739SMasahiro Yamadaobj-$(CONFIG_SYS_PCAT_INTERRUPTS) += pcat_interrupts.o
233954b739SMasahiro Yamadaobj-$(CONFIG_SYS_PCAT_TIMER) += pcat_timer.o
24a219daeaSSimon Glassifndef CONFIG_DM_PCI
253954b739SMasahiro Yamadaobj-$(CONFIG_PCI) += pci_type1.o
26a219daeaSSimon Glassendif
27452f5487SSimon Glassobj-y	+= pch-uclass.o
28b5b6b019SBin Mengobj-y	+= pirq_routing.o
293954b739SMasahiro Yamadaobj-y	+= relocate.o
303954b739SMasahiro Yamadaobj-y += physmem.o
3165dd74a6SSimon Glassobj-$(CONFIG_X86_RAMTEST) += ramtest.o
326388e357SSimon Glassobj-y += sfi.o
33*721e992aSBin Mengobj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
343954b739SMasahiro Yamadaobj-y	+= string.o
35867bcb63SSaket Sinhaobj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
365e2400e8SBin Mengobj-y	+= tables.o
373954b739SMasahiro Yamadaobj-$(CONFIG_SYS_X86_TSC_TIMER)	+= tsc_timer.o
383954b739SMasahiro Yamadaobj-$(CONFIG_CMD_ZBOOT)	+= zimage.o
391021af4dSSimon Glassobj-$(CONFIG_HAVE_FSP) += fsp/
40fea25720SGraeme Russ
41b997abd3SSimon Glassextra-$(CONFIG_USE_PRIVATE_LIBGCC) += lib.a
42fea25720SGraeme Russ
43dd43fa22SMasahiro YamadaNORMAL_LIBGCC = $(shell $(CC) $(PLATFORM_CPPFLAGS) -print-libgcc-file-name)
44b6e53eb3SMasahiro YamadaOBJCOPYFLAGS := --prefix-symbols=__normal_
45dd43fa22SMasahiro Yamada$(obj)/lib.a: $(NORMAL_LIBGCC) FORCE
46b6e53eb3SMasahiro Yamada	$(call if_changed,objcopy)
47