xref: /openbmc/linux/drivers/acpi/Makefile (revision 52cdded0)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the Linux ACPI interpreter
4#
5
6ccflags-$(CONFIG_ACPI_DEBUG)	+= -DACPI_DEBUG_OUTPUT
7
8#
9# ACPI Boot-Time Table Parsing
10#
11obj-$(CONFIG_ACPI)		+= tables.o
12obj-$(CONFIG_X86)		+= blacklist.o
13
14#
15# ACPI Core Subsystem (Interpreter)
16#
17obj-$(CONFIG_ACPI)		+= acpi.o \
18					acpica/
19
20# All the builtin files are in the "acpi." module_param namespace.
21acpi-y				+= osi.o osl.o utils.o reboot.o
22acpi-y				+= nvs.o
23
24# Power management related files
25acpi-y				+= wakeup.o
26acpi-$(CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT) += sleep.o
27acpi-y				+= device_sysfs.o device_pm.o
28acpi-$(CONFIG_ACPI_SLEEP)	+= proc.o
29
30
31#
32# ACPI Bus and Device Drivers
33#
34acpi-y				+= bus.o glue.o
35acpi-y				+= scan.o
36acpi-y				+= resource.o
37acpi-y				+= acpi_processor.o
38acpi-y				+= processor_core.o
39acpi-$(CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC) += processor_pdc.o
40acpi-y				+= ec.o
41acpi-$(CONFIG_ACPI_DOCK)	+= dock.o
42acpi-$(CONFIG_PCI)		+= pci_root.o pci_link.o pci_irq.o
43obj-$(CONFIG_ACPI_MCFG)		+= pci_mcfg.o
44acpi-$(CONFIG_PCI)		+= acpi_lpss.o
45acpi-y				+= acpi_apd.o
46acpi-y				+= acpi_platform.o
47acpi-y				+= acpi_pnp.o
48acpi-$(CONFIG_ARM_AMBA)	+= acpi_amba.o
49acpi-y				+= power.o
50acpi-y				+= event.o
51acpi-y				+= evged.o
52acpi-y				+= sysfs.o
53acpi-y				+= property.o
54acpi-$(CONFIG_X86)		+= acpi_cmos_rtc.o
55acpi-$(CONFIG_X86)		+= x86/apple.o
56acpi-$(CONFIG_X86)		+= x86/utils.o
57acpi-$(CONFIG_DEBUG_FS)		+= debugfs.o
58acpi-y				+= acpi_lpat.o
59acpi-$(CONFIG_ACPI_LPIT)	+= acpi_lpit.o
60acpi-$(CONFIG_ACPI_GENERIC_GSI) += irq.o
61acpi-$(CONFIG_ACPI_WATCHDOG)	+= acpi_watchdog.o
62
63# Address translation
64acpi-$(CONFIG_ACPI_ADXL)	+= acpi_adxl.o
65
66# These are (potentially) separate modules
67
68# IPMI may be used by other drivers, so it has to initialise before them
69obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
70
71obj-$(CONFIG_ACPI_AC) 		+= ac.o
72obj-$(CONFIG_ACPI_BUTTON)	+= button.o
73obj-$(CONFIG_ACPI_TINY_POWER_BUTTON)	+= tiny-power-button.o
74obj-$(CONFIG_ACPI_FAN)		+= fan.o
75obj-$(CONFIG_ACPI_VIDEO)	+= video.o
76obj-$(CONFIG_ACPI_TAD)		+= acpi_tad.o
77obj-$(CONFIG_ACPI_PCI_SLOT)	+= pci_slot.o
78obj-$(CONFIG_ACPI_PROCESSOR)	+= processor.o
79obj-$(CONFIG_ACPI)		+= container.o
80obj-$(CONFIG_ACPI_THERMAL)	+= thermal.o
81obj-$(CONFIG_ACPI_NFIT)		+= nfit/
82obj-$(CONFIG_ACPI_NUMA)		+= numa/
83obj-$(CONFIG_ACPI)		+= acpi_memhotplug.o
84obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
85obj-$(CONFIG_ACPI_BATTERY)	+= battery.o
86obj-$(CONFIG_ACPI_SBS)		+= sbshc.o
87obj-$(CONFIG_ACPI_SBS)		+= sbs.o
88obj-$(CONFIG_ACPI_HED)		+= hed.o
89obj-$(CONFIG_ACPI_EC_DEBUGFS)	+= ec_sys.o
90obj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
91obj-$(CONFIG_ACPI_BGRT)		+= bgrt.o
92obj-$(CONFIG_ACPI_CPPC_LIB)	+= cppc_acpi.o
93obj-$(CONFIG_ACPI_SPCR_TABLE)	+= spcr.o
94obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
95obj-$(CONFIG_ACPI_PPTT) 	+= pptt.o
96
97# processor has its own "processor." module_param namespace
98processor-y			:= processor_driver.o
99processor-$(CONFIG_ACPI_PROCESSOR_IDLE) += processor_idle.o
100processor-$(CONFIG_ACPI_CPU_FREQ_PSS)	+= processor_throttling.o	\
101	processor_thermal.o
102processor-$(CONFIG_CPU_FREQ)	+= processor_perflib.o
103
104obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
105
106obj-$(CONFIG_ACPI_APEI)		+= apei/
107
108obj-$(CONFIG_ACPI_EXTLOG)	+= acpi_extlog.o
109
110obj-$(CONFIG_PMIC_OPREGION)	+= pmic/intel_pmic.o
111obj-$(CONFIG_BYTCRC_PMIC_OPREGION) += pmic/intel_pmic_bytcrc.o
112obj-$(CONFIG_CHTCRC_PMIC_OPREGION) += pmic/intel_pmic_chtcrc.o
113obj-$(CONFIG_XPOWER_PMIC_OPREGION) += pmic/intel_pmic_xpower.o
114obj-$(CONFIG_BXT_WC_PMIC_OPREGION) += pmic/intel_pmic_bxtwc.o
115obj-$(CONFIG_CHT_WC_PMIC_OPREGION) += pmic/intel_pmic_chtwc.o
116obj-$(CONFIG_CHT_DC_TI_PMIC_OPREGION) += pmic/intel_pmic_chtdc_ti.o
117
118obj-$(CONFIG_ACPI_CONFIGFS)	+= acpi_configfs.o
119
120obj-$(CONFIG_TPS68470_PMIC_OPREGION)	+= pmic/tps68470_pmic.o
121
122video-objs			+= acpi_video.o video_detect.o
123obj-y				+= dptf/
124
125obj-$(CONFIG_ARM64)		+= arm64/
126