xref: /openbmc/linux/drivers/pci/Makefile (revision fd58e55f)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the PCI bus specific drivers.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
51da177e4SLinus Torvaldsobj-y		+= access.o bus.o probe.o remove.o pci.o quirks.o \
6085ae41fSDavid S. Miller			pci-driver.o search.o pci-sysfs.o rom.o setup-res.o
71da177e4SLinus Torvaldsobj-$(CONFIG_PROC_FS) += proc.o
81da177e4SLinus Torvalds
952f975eaSMilton Miller# Build PCI Express stuff if needed
1052f975eaSMilton Millerobj-$(CONFIG_PCIEPORTBUS) += pcie/
1152f975eaSMilton Miller
121da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += hotplug.o
131da177e4SLinus Torvalds
141da177e4SLinus Torvalds# Build the PCI Hotplug drivers if we were asked to
151da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG_PCI) += hotplug/
161da177e4SLinus Torvalds
171da177e4SLinus Torvalds#
181da177e4SLinus Torvalds# Some architectures use the generic PCI setup functions
191da177e4SLinus Torvalds#
2043a6b760SAndy Whitcroftobj-$(CONFIG_X86) += setup-bus.o
211da177e4SLinus Torvaldsobj-$(CONFIG_ALPHA) += setup-bus.o setup-irq.o
221da177e4SLinus Torvaldsobj-$(CONFIG_ARM) += setup-bus.o setup-irq.o
231da177e4SLinus Torvaldsobj-$(CONFIG_PARISC) += setup-bus.o
241da177e4SLinus Torvaldsobj-$(CONFIG_SUPERH) += setup-bus.o setup-irq.o
251da177e4SLinus Torvaldsobj-$(CONFIG_PPC32) += setup-irq.o
261da177e4SLinus Torvaldsobj-$(CONFIG_PPC64) += setup-bus.o
271da177e4SLinus Torvaldsobj-$(CONFIG_MIPS) += setup-bus.o setup-irq.o
281da177e4SLinus Torvaldsobj-$(CONFIG_X86_VISWS) += setup-irq.o
29fd58e55fSMark Maule
30fd58e55fSMark Maulemsiobj-y := msi.o msi-apic.o
31fd58e55fSMark Maulemsiobj-$(CONFIG_IA64_GENERIC) += msi-altix.o
32fd58e55fSMark Maulemsiobj-$(CONFIG_IA64_SGI_SN2) += msi-altix.o
33fd58e55fSMark Mauleobj-$(CONFIG_PCI_MSI) += $(msiobj-y)
341da177e4SLinus Torvalds
351da177e4SLinus Torvalds#
361da177e4SLinus Torvalds# ACPI Related PCI FW Functions
371da177e4SLinus Torvalds#
381da177e4SLinus Torvaldsobj-$(CONFIG_ACPI)    += pci-acpi.o
391da177e4SLinus Torvalds
401da177e4SLinus Torvalds# Cardbus & CompactPCI use setup-bus
411da177e4SLinus Torvaldsobj-$(CONFIG_HOTPLUG) += setup-bus.o
421da177e4SLinus Torvalds
431da177e4SLinus Torvaldsifndef CONFIG_X86
441da177e4SLinus Torvaldsobj-y += syscall.o
451da177e4SLinus Torvaldsendif
461da177e4SLinus Torvalds
471da177e4SLinus Torvaldsifeq ($(CONFIG_PCI_DEBUG),y)
481da177e4SLinus TorvaldsEXTRA_CFLAGS += -DDEBUG
491da177e4SLinus Torvaldsendif
50