xref: /openbmc/linux/drivers/pci/Makefile (revision 288c81ce)
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 \
8*288c81ceSThomas Gleixner				   setup-bus.o vc.o mmap.o setup-irq.o
9be0ce12eSMatthew Minter
10*288c81ceSThomas Gleixnerobj-$(CONFIG_PCI)		+= msi/
11b7da3d4dSBjorn Helgaasobj-$(CONFIG_PCI)		+= pcie/
12b7da3d4dSBjorn Helgaas
139de0eec2SCyrille Pitchenifdef CONFIG_PCI
141da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS)		+= proc.o
15268a03a4SAlex Chiangobj-$(CONFIG_SYSFS)		+= slot.o
165d32a665SSinan Kayaobj-$(CONFIG_ACPI)		+= pci-acpi.o
179de0eec2SCyrille Pitchenendif
181da177e4SLinus Torvalds
1940e5d614SKishon Vijay Abraham Iobj-$(CONFIG_OF)		+= of.o
2093177a74SRafael J. Wysockiobj-$(CONFIG_PCI_QUIRKS)	+= quirks.o
211da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI)	+= hotplug/
22db3c33c6SJoerg Roedelobj-$(CONFIG_PCI_ATS)		+= ats.o
23d1b054daSYu Zhaoobj-$(CONFIG_PCI_IOV)		+= iov.o
2423a5fba4SThomas Petazzoniobj-$(CONFIG_PCI_BRIDGE_EMUL)	+= pci-bridge-emul.o
258a226e00SRandy Dunlapobj-$(CONFIG_PCI_LABEL)		+= pci-label.o
265823d089SAndy Shevchenkoobj-$(CONFIG_X86_INTEL_MID)	+= pci-mid.o
2736e23590SMatthew Wilcoxobj-$(CONFIG_PCI_SYSCALL)	+= syscall.o
28c70e0d9dSChris Wrightobj-$(CONFIG_PCI_STUB)		+= pci-stub.o
29a8ccf8a6SAlexander Duyckobj-$(CONFIG_PCI_PF_STUB)	+= pci-pf-stub.o
3035ff9477SJayachandran Cobj-$(CONFIG_PCI_ECAM)		+= ecam.o
3152916982SLogan Gunthorpeobj-$(CONFIG_PCI_P2PDMA)	+= p2pdma.o
32956a9202SRyan Wilsonobj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
33956a9202SRyan Wilson
343133e6ddSBjorn Helgaas# Endpoint library must be initialized before its users
359de0eec2SCyrille Pitchenobj-$(CONFIG_PCI_ENDPOINT)	+= endpoint/
369de0eec2SCyrille Pitchen
3768bb22e9SAlan Douglasobj-y				+= controller/
3868bb22e9SAlan Douglasobj-y				+= switch/
3968bb22e9SAlan Douglas
40e8e9aabaSJunhao Hesubdir-ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
41