xref: /linux/drivers/pci/hotplug/Makefile (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the Linux kernel pci hotplug controller drivers.
4#
5
6obj-$(CONFIG_HOTPLUG_PCI)		+= pci_hotplug.o
7obj-$(CONFIG_HOTPLUG_PCI_COMPAQ)	+= cpqphp.o
8obj-$(CONFIG_HOTPLUG_PCI_IBM)		+= ibmphp.o
9
10# native drivers should be linked before acpiphp in order to allow the
11# native driver to attempt to bind first. We can then fall back to
12# generic support.
13
14obj-$(CONFIG_HOTPLUG_PCI_PCIE)		+= pciehp.o
15obj-$(CONFIG_HOTPLUG_PCI_CPCI_ZT5550)	+= cpcihp_zt5550.o
16obj-$(CONFIG_HOTPLUG_PCI_CPCI_GENERIC)	+= cpcihp_generic.o
17obj-$(CONFIG_HOTPLUG_PCI_SHPC)		+= shpchp.o
18obj-$(CONFIG_HOTPLUG_PCI_POWERNV)	+= pnv-php.o
19obj-$(CONFIG_HOTPLUG_PCI_RPA)		+= rpaphp.o
20obj-$(CONFIG_HOTPLUG_PCI_RPA_DLPAR)	+= rpadlpar_io.o
21obj-$(CONFIG_HOTPLUG_PCI_ACPI)		+= acpiphp.o
22obj-$(CONFIG_HOTPLUG_PCI_S390)		+= s390_pci_hpc.o
23obj-$(CONFIG_HOTPLUG_PCI_OCTEONEP)	+= octep_hp.o
24
25# acpiphp_ibm extends acpiphp, so should be linked afterwards.
26
27obj-$(CONFIG_HOTPLUG_PCI_ACPI_AMPERE_ALTRA)	+= acpiphp_ampere_altra.o
28obj-$(CONFIG_HOTPLUG_PCI_ACPI_IBM)	+= acpiphp_ibm.o
29
30pci_hotplug-objs	:=	pci_hotplug_core.o
31
32ifdef CONFIG_HOTPLUG_PCI_CPCI
33pci_hotplug-objs	+=	cpci_hotplug_core.o	\
34				cpci_hotplug_pci.o
35endif
36ifdef CONFIG_ACPI
37pci_hotplug-objs	+=	acpi_pcihp.o
38endif
39
40cpqphp-objs		:=	cpqphp_core.o	\
41				cpqphp_ctrl.o	\
42				cpqphp_sysfs.o	\
43				cpqphp_pci.o
44cpqphp-$(CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM) += cpqphp_nvram.o
45cpqphp-objs += $(cpqphp-y)
46
47ibmphp-objs		:=	ibmphp_core.o	\
48				ibmphp_ebda.o	\
49				ibmphp_pci.o	\
50				ibmphp_res.o	\
51				ibmphp_hpc.o
52
53acpiphp-objs		:=	acpiphp_core.o	\
54				acpiphp_glue.o
55
56pnv-php-objs		:=	pnv_php.o
57
58rpaphp-objs		:=	rpaphp_core.o	\
59				rpaphp_pci.o	\
60				rpaphp_slot.o
61
62rpadlpar_io-objs	:=	rpadlpar_core.o \
63				rpadlpar_sysfs.o
64
65pciehp-objs		:=	pciehp_core.o	\
66				pciehp_ctrl.o	\
67				pciehp_pci.o	\
68				pciehp_hpc.o
69
70shpchp-objs		:=	shpchp_core.o	\
71				shpchp_ctrl.o	\
72				shpchp_pci.o	\
73				shpchp_sysfs.o	\
74				shpchp_hpc.o
75