xref: /openbmc/linux/drivers/pci/Makefile (revision f15cbe6f)
1#
2# Makefile for the PCI bus specific drivers.
3#
4
5obj-y		+= access.o bus.o probe.o remove.o pci.o quirks.o slot.o \
6			pci-driver.o search.o pci-sysfs.o rom.o setup-res.o
7obj-$(CONFIG_PROC_FS) += proc.o
8
9# Build PCI Express stuff if needed
10obj-$(CONFIG_PCIEPORTBUS) += pcie/
11
12obj-$(CONFIG_HOTPLUG) += hotplug.o
13
14# Build the PCI Hotplug drivers if we were asked to
15obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
16ifdef CONFIG_HOTPLUG_PCI
17obj-y += hotplug-pci.o
18endif
19
20# Build the PCI MSI interrupt support
21obj-$(CONFIG_PCI_MSI) += msi.o
22
23# Build the Hypertransport interrupt support
24obj-$(CONFIG_HT_IRQ) += htirq.o
25
26# Build Intel IOMMU support
27obj-$(CONFIG_DMAR) += dmar.o iova.o intel-iommu.o
28
29#
30# Some architectures use the generic PCI setup functions
31#
32obj-$(CONFIG_X86) += setup-bus.o
33obj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
34obj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
35obj-$(CONFIG_PARISC) += setup-bus.o
36obj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
37obj-$(CONFIG_PPC32) += setup-irq.o
38obj-$(CONFIG_PPC) += setup-bus.o
39obj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
40obj-$(CONFIG_X86_VISWS) += setup-irq.o
41obj-$(CONFIG_MN10300) += setup-bus.o
42
43#
44# ACPI Related PCI FW Functions
45#
46obj-$(CONFIG_ACPI)    += pci-acpi.o
47
48# Cardbus & CompactPCI use setup-bus
49obj-$(CONFIG_HOTPLUG) += setup-bus.o
50
51obj-$(CONFIG_PCI_SYSCALL) += syscall.o
52
53ifeq ($(CONFIG_PCI_DEBUG),y)
54EXTRA_CFLAGS += -DDEBUG
55endif
56