xref: /openbmc/linux/drivers/pci/Makefile (revision 68bb22e9)
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
139de0eec2SCyrille Pitchenobj-$(CONFIG_OF)		+= of.o
149de0eec2SCyrille Pitchenendif
151da177e4SLinus Torvalds
1693177a74SRafael J. Wysockiobj-$(CONFIG_PCI_QUIRKS)	+= quirks.o
1752f975eaSMilton Millerobj-$(CONFIG_PCIEPORTBUS)	+= pcie/
181da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI)	+= hotplug/
1903571e11SEric W. Biedermanobj-$(CONFIG_PCI_MSI)		+= msi.o
20db3c33c6SJoerg Roedelobj-$(CONFIG_PCI_ATS)		+= ats.o
21d1b054daSYu Zhaoobj-$(CONFIG_PCI_IOV)		+= iov.o
228a226e00SRandy Dunlapobj-$(CONFIG_ACPI)		+= pci-acpi.o
238a226e00SRandy Dunlapobj-$(CONFIG_PCI_LABEL)		+= pci-label.o
245823d089SAndy Shevchenkoobj-$(CONFIG_X86_INTEL_MID)	+= pci-mid.o
2536e23590SMatthew Wilcoxobj-$(CONFIG_PCI_SYSCALL)	+= syscall.o
26c70e0d9dSChris Wrightobj-$(CONFIG_PCI_STUB)		+= pci-stub.o
27a8ccf8a6SAlexander Duyckobj-$(CONFIG_PCI_PF_STUB)	+= pci-pf-stub.o
2835ff9477SJayachandran Cobj-$(CONFIG_PCI_ECAM)		+= ecam.o
29956a9202SRyan Wilsonobj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
30956a9202SRyan Wilson
313133e6ddSBjorn Helgaas# Endpoint library must be initialized before its users
329de0eec2SCyrille Pitchenobj-$(CONFIG_PCI_ENDPOINT)	+= endpoint/
339de0eec2SCyrille Pitchen
3468bb22e9SAlan Douglasobj-y				+= controller/
3568bb22e9SAlan Douglasobj-y				+= switch/
3668bb22e9SAlan Douglas
373133e6ddSBjorn Helgaasccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
38