Merge branch 'linux-4.21' of git://github.com/skeggsb/linux into drm-fixes
[linux-2.6-microblaze.git] / drivers / pci / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 #
3 # Makefile for the PCI bus specific drivers.
4
5 obj-$(CONFIG_PCI)               += access.o bus.o probe.o host-bridge.o \
6                                    remove.o pci.o pci-driver.o search.o \
7                                    pci-sysfs.o rom.o setup-res.o irq.o vpd.o \
8                                    setup-bus.o vc.o mmap.o setup-irq.o
9
10 ifdef CONFIG_PCI
11 obj-$(CONFIG_PROC_FS)           += proc.o
12 obj-$(CONFIG_SYSFS)             += slot.o
13 obj-$(CONFIG_OF)                += of.o
14 obj-$(CONFIG_ACPI)              += pci-acpi.o
15 endif
16
17 obj-$(CONFIG_PCI_QUIRKS)        += quirks.o
18 obj-$(CONFIG_PCIEPORTBUS)       += pcie/
19 obj-$(CONFIG_HOTPLUG_PCI)       += hotplug/
20 obj-$(CONFIG_PCI_MSI)           += msi.o
21 obj-$(CONFIG_PCI_ATS)           += ats.o
22 obj-$(CONFIG_PCI_IOV)           += iov.o
23 obj-$(CONFIG_PCI_BRIDGE_EMUL)   += pci-bridge-emul.o
24 obj-$(CONFIG_PCI_LABEL)         += pci-label.o
25 obj-$(CONFIG_X86_INTEL_MID)     += pci-mid.o
26 obj-$(CONFIG_PCI_SYSCALL)       += syscall.o
27 obj-$(CONFIG_PCI_STUB)          += pci-stub.o
28 obj-$(CONFIG_PCI_PF_STUB)       += pci-pf-stub.o
29 obj-$(CONFIG_PCI_ECAM)          += ecam.o
30 obj-$(CONFIG_PCI_P2PDMA)        += p2pdma.o
31 obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
32
33 # Endpoint library must be initialized before its users
34 obj-$(CONFIG_PCI_ENDPOINT)      += endpoint/
35
36 obj-y                           += controller/
37 obj-y                           += switch/
38
39 ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG