xref: /openbmc/linux/drivers/pci/Makefile (revision 40e5d614)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for the PCI bus specific drivers.
41da177e4SLinus Torvalds
53133e6ddSBjorn Helgaasobj-$(CONFIG_PCI)		+= access.o bus.o probe.o host-bridge.o \
63133e6ddSBjorn Helgaas				   remove.o pci.o pci-driver.o search.o \
73133e6ddSBjorn Helgaas				   pci-sysfs.o rom.o setup-res.o irq.o vpd.o \
83133e6ddSBjorn Helgaas				   setup-bus.o vc.o mmap.o setup-irq.o
9be0ce12eSMatthew Minter
109de0eec2SCyrille Pitchenifdef CONFIG_PCI
111da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS)		+= proc.o
12268a03a4SAlex Chiangobj-$(CONFIG_SYSFS)		+= slot.o
135d32a665SSinan Kayaobj-$(CONFIG_ACPI)		+= pci-acpi.o
149de0eec2SCyrille Pitchenendif
151da177e4SLinus Torvalds
1640e5d614SKishon Vijay Abraham Iobj-$(CONFIG_OF)		+= of.o
1793177a74SRafael J. Wysockiobj-$(CONFIG_PCI_QUIRKS)	+= quirks.o
1852f975eaSMilton Millerobj-$(CONFIG_PCIEPORTBUS)	+= pcie/
191da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI)	+= hotplug/
2003571e11SEric W. Biedermanobj-$(CONFIG_PCI_MSI)		+= msi.o
21db3c33c6SJoerg Roedelobj-$(CONFIG_PCI_ATS)		+= ats.o
22d1b054daSYu Zhaoobj-$(CONFIG_PCI_IOV)		+= iov.o
2323a5fba4SThomas Petazzoniobj-$(CONFIG_PCI_BRIDGE_EMUL)	+= pci-bridge-emul.o
248a226e00SRandy Dunlapobj-$(CONFIG_PCI_LABEL)		+= pci-label.o
255823d089SAndy Shevchenkoobj-$(CONFIG_X86_INTEL_MID)	+= pci-mid.o
2636e23590SMatthew Wilcoxobj-$(CONFIG_PCI_SYSCALL)	+= syscall.o
27c70e0d9dSChris Wrightobj-$(CONFIG_PCI_STUB)		+= pci-stub.o
28a8ccf8a6SAlexander Duyckobj-$(CONFIG_PCI_PF_STUB)	+= pci-pf-stub.o
2935ff9477SJayachandran Cobj-$(CONFIG_PCI_ECAM)		+= ecam.o
3052916982SLogan Gunthorpeobj-$(CONFIG_PCI_P2PDMA)	+= p2pdma.o
31956a9202SRyan Wilsonobj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
32956a9202SRyan Wilson
333133e6ddSBjorn Helgaas# Endpoint library must be initialized before its users
349de0eec2SCyrille Pitchenobj-$(CONFIG_PCI_ENDPOINT)	+= endpoint/
359de0eec2SCyrille Pitchen
3668bb22e9SAlan Douglasobj-y				+= controller/
3768bb22e9SAlan Douglasobj-y				+= switch/
3868bb22e9SAlan Douglas
393133e6ddSBjorn Helgaasccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
40