Makefile 1.4 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
L
Linus Torvalds 已提交
2 3 4 5
#
# Makefile for the PCI bus specific drivers.
#

6
obj-$(CONFIG_PCI)	+= 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

10
ifdef CONFIG_PCI
L
Linus Torvalds 已提交
11
obj-$(CONFIG_PROC_FS) += proc.o
12
obj-$(CONFIG_SYSFS) += slot.o
13 14
obj-$(CONFIG_OF) += of.o
endif
L
Linus Torvalds 已提交
15

16
obj-$(CONFIG_PCI_QUIRKS) += quirks.o
17

18 19 20
# Build PCI Express stuff if needed
obj-$(CONFIG_PCIEPORTBUS) += pcie/

L
Linus Torvalds 已提交
21 22 23
# Build the PCI Hotplug drivers if we were asked to
obj-$(CONFIG_HOTPLUG_PCI) += hotplug/

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

27
obj-$(CONFIG_PCI_ATS) += ats.o
28 29
obj-$(CONFIG_PCI_IOV) += iov.o

L
Linus Torvalds 已提交
30 31
#
# ACPI Related PCI FW Functions
32
# ACPI _DSM provided firmware instance and string name
L
Linus Torvalds 已提交
33
#
34
obj-$(CONFIG_ACPI)    += pci-acpi.o
L
Linus Torvalds 已提交
35

36
# SMBIOS provided firmware instance and labels
37
obj-$(CONFIG_PCI_LABEL) += pci-label.o
38

39 40 41
# Intel MID platform PM support
obj-$(CONFIG_X86_INTEL_MID) += pci-mid.o

42
obj-$(CONFIG_PCI_SYSCALL) += syscall.o
L
Linus Torvalds 已提交
43

44 45
obj-$(CONFIG_PCI_STUB) += pci-stub.o

46 47
obj-$(CONFIG_PCI_ECAM) += ecam.o

48 49
obj-$(CONFIG_XEN_PCIDEV_FRONTEND) += xen-pcifront.o

50
ccflags-$(CONFIG_PCI_DEBUG) := -DDEBUG
51 52 53

# PCI host controller drivers
obj-y += host/
54
obj-y += switch/
55 56 57 58

obj-$(CONFIG_PCI_ENDPOINT)	+= endpoint/

# Endpoint library must be initialized before its users
59
obj-$(CONFIG_PCIE_CADENCE)	+= cadence/
60 61
# pcie-hisi.o quirks are needed even without CONFIG_PCIE_DW
obj-y				+= dwc/