xref: /openbmc/u-boot/arch/x86/lib/Makefile (revision fa287b158099b5b2159ecbbcc4acb2d5dc6714cf)
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
138e366508SSimon Glassobj-$(CONFIG_EFI) += efi/
1459ec719dSBin Mengobj-y	+= e820.o
153954b739SMasahiro Yamadaobj-y	+= gcc.o
163954b739SMasahiro Yamadaobj-y	+= init_helpers.o
173954b739SMasahiro Yamadaobj-y	+= interrupts.o
18a274e9caSSimon Glassobj-y	+= lpc-uclass.o
197f5df8d4SBin Mengobj-y	+= mpspec.o
20f6220f1aSBin Mengobj-$(CONFIG_ENABLE_MRC_CACHE) += mrccache.o
21cb3b2e62SSimon Glassobj-y += cmd_mtrr.o
225544757cSSimon Glassobj-y	+= northbridge-uclass.o
23da3fe247SBin Mengobj-$(CONFIG_I8259_PIC) += i8259.o
24da3fe247SBin Mengobj-$(CONFIG_I8254_TIMER) += i8254.o
25a219daeaSSimon Glassifndef CONFIG_DM_PCI
263954b739SMasahiro Yamadaobj-$(CONFIG_PCI) += pci_type1.o
27a219daeaSSimon Glassendif
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
33721e992aSBin Mengobj-$(CONFIG_GENERATE_SMBIOS_TABLE) += smbios.o
343954b739SMasahiro Yamadaobj-y	+= string.o
35*fa287b15SMiao Yanifndef CONFIG_QEMU_ACPI_TABLE
36867bcb63SSaket Sinhaobj-$(CONFIG_GENERATE_ACPI_TABLE) += acpi_table.o
37*fa287b15SMiao Yanendif
385e2400e8SBin Mengobj-y	+= tables.o
393954b739SMasahiro Yamadaobj-$(CONFIG_CMD_ZBOOT)	+= zimage.o
401021af4dSSimon Glassobj-$(CONFIG_HAVE_FSP) += fsp/
41fea25720SGraeme Russ
42b997abd3SSimon Glassextra-$(CONFIG_USE_PRIVATE_LIBGCC) += lib.a
43fea25720SGraeme Russ
44dd43fa22SMasahiro YamadaNORMAL_LIBGCC = $(shell $(CC) $(PLATFORM_CPPFLAGS) -print-libgcc-file-name)
45b6e53eb3SMasahiro YamadaOBJCOPYFLAGS := --prefix-symbols=__normal_
46dd43fa22SMasahiro Yamada$(obj)/lib.a: $(NORMAL_LIBGCC) FORCE
47b6e53eb3SMasahiro Yamada	$(call if_changed,objcopy)
48