Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the PCI bus specific drivers. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | |
Bjorn Helgaas | 3133e6d | 2018-03-09 13:09:29 -0600 | [diff] [blame] | 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 |
Matthew Minter | be0ce12 | 2017-06-28 15:14:02 -0500 | [diff] [blame] | 9 | |
Cyrille Pitchen | 9de0eec | 2018-01-30 21:56:49 +0100 | [diff] [blame] | 10 | ifdef CONFIG_PCI |
Bjorn Helgaas | 3133e6d | 2018-03-09 13:09:29 -0600 | [diff] [blame] | 11 | obj-$(CONFIG_PROC_FS) += proc.o |
| 12 | obj-$(CONFIG_SYSFS) += slot.o |
| 13 | obj-$(CONFIG_OF) += of.o |
Cyrille Pitchen | 9de0eec | 2018-01-30 21:56:49 +0100 | [diff] [blame] | 14 | endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Bjorn Helgaas | 3133e6d | 2018-03-09 13:09:29 -0600 | [diff] [blame] | 16 | obj-$(CONFIG_PCI_QUIRKS) += quirks.o |
| 17 | obj-$(CONFIG_PCIEPORTBUS) += pcie/ |
| 18 | obj-$(CONFIG_HOTPLUG_PCI) += hotplug/ |
| 19 | obj-$(CONFIG_PCI_MSI) += msi.o |
| 20 | obj-$(CONFIG_PCI_ATS) += ats.o |
| 21 | obj-$(CONFIG_PCI_IOV) += iov.o |
| 22 | obj-$(CONFIG_ACPI) += pci-acpi.o |
| 23 | obj-$(CONFIG_PCI_LABEL) += pci-label.o |
| 24 | obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o |
| 25 | obj-$(CONFIG_PCI_SYSCALL) += syscall.o |
| 26 | obj-$(CONFIG_PCI_STUB) += pci-stub.o |
Alexander Duyck | a8ccf8a | 2018-04-24 16:47:16 -0500 | [diff] [blame] | 27 | obj-$(CONFIG_PCI_PF_STUB) += pci-pf-stub.o |
Bjorn Helgaas | 3133e6d | 2018-03-09 13:09:29 -0600 | [diff] [blame] | 28 | obj-$(CONFIG_PCI_ECAM) += ecam.o |
Ryan Wilson | 956a920 | 2010-08-02 21:31:05 -0400 | [diff] [blame] | 29 | obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o |
| 30 | |
Cyrille Pitchen | 9de0eec | 2018-01-30 21:56:49 +0100 | [diff] [blame] | 31 | # Endpoint library must be initialized before its users |
Bjorn Helgaas | 3133e6d | 2018-03-09 13:09:29 -0600 | [diff] [blame] | 32 | obj-$(CONFIG_PCI_ENDPOINT) += endpoint/ |
| 33 | |
Alan Douglas | 68bb22e | 2018-06-22 17:17:17 +0100 | [diff] [blame] | 34 | obj-y += controller/ |
| 35 | obj-y += switch/ |
| 36 | |
Bjorn Helgaas | 3133e6d | 2018-03-09 13:09:29 -0600 | [diff] [blame] | 37 | ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG |