1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the PCI bus specific drivers. 4 5obj-$(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 10ifdef CONFIG_PCI 11obj-$(CONFIG_PROC_FS) += proc.o 12obj-$(CONFIG_SYSFS) += slot.o 13obj-$(CONFIG_OF) += of.o 14endif 15 16obj-$(CONFIG_PCI_QUIRKS) += quirks.o 17obj-$(CONFIG_PCIEPORTBUS) += pcie/ 18obj-$(CONFIG_HOTPLUG_PCI) += hotplug/ 19obj-$(CONFIG_PCI_MSI) += msi.o 20obj-$(CONFIG_PCI_ATS) += ats.o 21obj-$(CONFIG_PCI_IOV) += iov.o 22obj-$(CONFIG_ACPI) += pci-acpi.o 23obj-$(CONFIG_PCI_LABEL) += pci-label.o 24obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o 25obj-$(CONFIG_PCI_SYSCALL) += syscall.o 26obj-$(CONFIG_PCI_STUB) += pci-stub.o 27obj-$(CONFIG_PCI_ECAM) += ecam.o 28obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o 29 30obj-y += host/ 31obj-y += switch/ 32 33# Endpoint library must be initialized before its users 34obj-$(CONFIG_PCI_ENDPOINT) += endpoint/ 35 36obj-$(CONFIG_PCIE_CADENCE) += cadence/ 37# pcie-hisi.o quirks are needed even without CONFIG_PCIE_DW 38obj-y += dwc/ 39 40ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG 41