Makefile 1.34 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
Linus Torvalds's avatar
Linus Torvalds committed
2 3 4 5
#
# Makefile for the PCI bus specific drivers.
#

6
obj-y		+= access.o bus.o probe.o host-bridge.o remove.o pci.o \
7
			pci-driver.o search.o pci-sysfs.o rom.o setup-res.o \
8 9
			irq.o vpd.o setup-bus.o vc.o mmap.o setup-irq.o

Linus Torvalds's avatar
Linus Torvalds committed
10
obj-$(CONFIG_PROC_FS) += proc.o
11
obj-$(CONFIG_SYSFS) += slot.o
Linus Torvalds's avatar
Linus Torvalds committed
12

13
obj-$(CONFIG_PCI_QUIRKS) += quirks.o
14

15 16 17
# Build PCI Express stuff if needed
obj-$(CONFIG_PCIEPORTBUS) += pcie/

Linus Torvalds's avatar
Linus Torvalds committed
18 19
# Build the PCI Hotplug drivers if we were asked to
obj-$(CONFIG_HOTPLUG_PCI) += hotplug/
20 21 22
ifdef CONFIG_HOTPLUG_PCI
obj-y += hotplug-pci.o
endif
Linus Torvalds's avatar
Linus Torvalds committed
23

24 25 26
# Build the PCI MSI interrupt support
obj-$(CONFIG_PCI_MSI) += msi.o

27 28 29
# Build the Hypertransport interrupt support
obj-$(CONFIG_HT_IRQ) += htirq.o

30
obj-$(CONFIG_PCI_ATS) += ats.o
31 32
obj-$(CONFIG_PCI_IOV) += iov.o

Linus Torvalds's avatar
Linus Torvalds committed
33 34
#
# ACPI Related PCI FW Functions
35
# ACPI _DSM provided firmware instance and string name
Linus Torvalds's avatar
Linus Torvalds committed
36
#
37
obj-$(CONFIG_ACPI)    += pci-acpi.o
Linus Torvalds's avatar
Linus Torvalds committed
38

39
# SMBIOS provided firmware instance and labels
40
obj-$(CONFIG_PCI_LABEL) += pci-label.o
41

42 43 44
# Intel MID platform PM support
obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o

45
obj-$(CONFIG_PCI_SYSCALL) += syscall.o
Linus Torvalds's avatar
Linus Torvalds committed
46

47 48
obj-$(CONFIG_PCI_STUB) += pci-stub.o

49 50
obj-$(CONFIG_PCI_ECAM) += ecam.o

51 52
obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o

53 54
obj-$(CONFIG_OF) += of.o

55
ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
56 57 58

# PCI host controller drivers
obj-y += host/
59
obj-y += switch/