xref: /openbmc/linux/drivers/pci/Makefile (revision eb50fd3a)
1#
2# Makefile for the PCI bus specific drivers.
3#
4
5obj-y		+= access.o bus.o probe.o host-bridge.o remove.o pci.o \
6			pci-driver.o search.o pci-sysfs.o rom.o setup-res.o \
7			irq.o vpd.o setup-bus.o vc.o mmap.o setup-irq.o
8
9obj-$(CONFIG_PROC_FS) += proc.o
10obj-$(CONFIG_SYSFS) += slot.o
11
12obj-$(CONFIG_PCI_QUIRKS) += quirks.o
13
14# Build PCI Express stuff if needed
15obj-$(CONFIG_PCIEPORTBUS) += pcie/
16
17# Build the PCI Hotplug drivers if we were asked to
18obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
19ifdef CONFIG_HOTPLUG_PCI
20obj-y += hotplug-pci.o
21endif
22
23# Build the PCI MSI interrupt support
24obj-$(CONFIG_PCI_MSI) += msi.o
25
26# Build the Hypertransport interrupt support
27obj-$(CONFIG_HT_IRQ) += htirq.o
28
29obj-$(CONFIG_PCI_ATS) += ats.o
30obj-$(CONFIG_PCI_IOV) += iov.o
31
32#
33# ACPI Related PCI FW Functions
34# ACPI _DSM provided firmware instance and string name
35#
36obj-$(CONFIG_ACPI)    += pci-acpi.o
37
38# SMBIOS provided firmware instance and labels
39obj-$(CONFIG_PCI_LABEL) += pci-label.o
40
41# Intel MID platform PM support
42obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o
43
44obj-$(CONFIG_PCI_SYSCALL) += syscall.o
45
46obj-$(CONFIG_PCI_STUB) += pci-stub.o
47
48obj-$(CONFIG_PCI_ECAM) += ecam.o
49
50obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o
51
52obj-$(CONFIG_OF) += of.o
53
54ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
55
56# PCI host controller drivers
57obj-y += host/
58obj-y += switch/
59