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