xref: /openbmc/linux/drivers/pci/hotplug/Makefile (revision 3368dd29)
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
21
22# acpiphp_ibm extends acpiphp, so should be linked afterwards.
23
24obj-$(CONFIG_HOTPLUG_PCI_ACPI_IBM)	+= acpiphp_ibm.o
25
26# Link this last so it doesn't claim devices that have a real hotplug driver
27obj-$(CONFIG_HOTPLUG_PCI_FAKE)		+= fakephp.o
28
29pci_hotplug-objs	:=	pci_hotplug_core.o pcihp_slot.o
30
31ifdef CONFIG_HOTPLUG_PCI_CPCI
32pci_hotplug-objs	+=	cpci_hotplug_core.o	\
33				cpci_hotplug_pci.o
34endif
35ifdef CONFIG_ACPI
36pci_hotplug-objs 	+= 	acpi_pcihp.o
37endif
38
39cpqphp-objs		:=	cpqphp_core.o	\
40				cpqphp_ctrl.o	\
41				cpqphp_sysfs.o	\
42				cpqphp_pci.o
43cpqphp-$(CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM) += cpqphp_nvram.o
44cpqphp-objs += $(cpqphp-y)
45
46ibmphp-objs		:=	ibmphp_core.o	\
47				ibmphp_ebda.o	\
48				ibmphp_pci.o	\
49				ibmphp_res.o	\
50				ibmphp_hpc.o
51
52acpiphp-objs		:=	acpiphp_core.o	\
53				acpiphp_glue.o
54
55rpaphp-objs		:=	rpaphp_core.o	\
56				rpaphp_pci.o	\
57				rpaphp_slot.o
58
59rpadlpar_io-objs	:=	rpadlpar_core.o \
60				rpadlpar_sysfs.o
61
62pciehp-objs		:=	pciehp_core.o	\
63				pciehp_ctrl.o	\
64				pciehp_pci.o	\
65				pciehp_hpc.o
66ifdef CONFIG_ACPI
67pciehp-objs		+=	pciehp_acpi.o
68endif
69
70shpchp-objs		:=	shpchp_core.o	\
71				shpchp_ctrl.o	\
72				shpchp_pci.o	\
73				shpchp_sysfs.o	\
74				shpchp_hpc.o
75