xref: /linux/drivers/acpi/Makefile (revision 7f71507851fc7764b36a3221839607d3a45c2025)
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#
11ifeq ($(CONFIG_ACPI_CUSTOM_DSDT),y)
12tables.o: $(src)/../../include/$(CONFIG_ACPI_CUSTOM_DSDT_FILE) ;
13
14endif
15
16obj-$(CONFIG_ACPI)		+= tables.o
17
18#
19# ACPI Core Subsystem (Interpreter)
20#
21obj-$(CONFIG_ACPI)		+= acpi.o \
22					acpica/
23
24# All the builtin files are in the "acpi." module_param namespace.
25acpi-y				+= osi.o osl.o utils.o reboot.o
26acpi-y				+= nvs.o
27
28# Power management related files
29acpi-y				+= wakeup.o
30acpi-$(CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT) += sleep.o
31acpi-y				+= device_sysfs.o device_pm.o
32acpi-$(CONFIG_ACPI_SLEEP)	+= proc.o
33
34
35#
36# ACPI Bus and Device Drivers
37#
38acpi-y				+= bus.o glue.o
39acpi-y				+= scan.o mipi-disco-img.o
40acpi-y				+= resource.o
41acpi-y				+= acpi_processor.o
42acpi-y				+= processor_core.o
43acpi-$(CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC) += processor_pdc.o
44acpi-$(CONFIG_ACPI_EC)		+= ec.o
45acpi-$(CONFIG_ACPI_DOCK)	+= dock.o
46acpi-$(CONFIG_PCI)		+= pci_root.o pci_link.o pci_irq.o
47obj-$(CONFIG_ACPI_MCFG)		+= pci_mcfg.o
48acpi-y				+= acpi_apd.o
49acpi-y				+= acpi_platform.o
50acpi-y				+= acpi_pnp.o
51acpi-y				+= power.o
52acpi-y				+= event.o
53acpi-y				+= evged.o
54acpi-y				+= sysfs.o
55acpi-y				+= property.o
56acpi-$(CONFIG_DEBUG_FS)		+= debugfs.o
57acpi-y				+= acpi_lpat.o
58acpi-$(CONFIG_ACPI_FPDT)	+= acpi_fpdt.o
59acpi-$(CONFIG_ACPI_LPIT)	+= acpi_lpit.o
60acpi-$(CONFIG_ACPI_GENERIC_GSI) += irq.o
61acpi-$(CONFIG_ACPI_WATCHDOG)	+= acpi_watchdog.o
62acpi-$(CONFIG_ACPI_PRMT)	+= prmt.o
63acpi-$(CONFIG_ACPI_PCC)		+= acpi_pcc.o
64acpi-$(CONFIG_ACPI_FFH)		+= acpi_ffh.o
65
66# Address translation
67acpi-$(CONFIG_ACPI_ADXL)	+= acpi_adxl.o
68
69# These are (potentially) separate modules
70
71# IPMI may be used by other drivers, so it has to initialise before them
72obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
73
74obj-$(CONFIG_ACPI_AC) 		+= ac.o
75obj-$(CONFIG_ACPI_BUTTON)	+= button.o
76obj-$(CONFIG_ACPI_TINY_POWER_BUTTON)	+= tiny-power-button.o
77obj-$(CONFIG_ACPI_FAN)		+= fan.o
78fan-objs			:= fan_core.o
79fan-objs			+= fan_attr.o
80fan-$(CONFIG_HWMON)		+= fan_hwmon.o
81
82obj-$(CONFIG_ACPI_VIDEO)	+= video.o
83obj-$(CONFIG_ACPI_TAD)		+= acpi_tad.o
84obj-$(CONFIG_ACPI_PCI_SLOT)	+= pci_slot.o
85obj-$(CONFIG_ACPI_PROCESSOR)	+= processor.o
86obj-$(CONFIG_ACPI)		+= container.o
87obj-$(CONFIG_ACPI_THERMAL_LIB)	+= thermal_lib.o
88obj-$(CONFIG_ACPI_THERMAL)	+= thermal.o
89obj-$(CONFIG_ACPI_PLATFORM_PROFILE) 	+= platform_profile.o
90obj-$(CONFIG_ACPI_NFIT)		+= nfit/
91obj-$(CONFIG_ACPI_NHLT)		+= nhlt.o
92obj-$(CONFIG_ACPI_NUMA)		+= numa/
93obj-$(CONFIG_ACPI)		+= acpi_memhotplug.o
94obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
95obj-$(CONFIG_ACPI_BATTERY)	+= battery.o
96obj-$(CONFIG_ACPI_SBS)		+= sbshc.o
97obj-$(CONFIG_ACPI_SBS)		+= sbs.o
98obj-$(CONFIG_ACPI_HED)		+= hed.o
99obj-$(CONFIG_ACPI_EC_DEBUGFS)	+= ec_sys.o
100obj-$(CONFIG_ACPI_BGRT)		+= bgrt.o
101obj-$(CONFIG_ACPI_CPPC_LIB)	+= cppc_acpi.o
102obj-$(CONFIG_ACPI_SPCR_TABLE)	+= spcr.o
103obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
104obj-$(CONFIG_ACPI_PPTT) 	+= pptt.o
105obj-$(CONFIG_ACPI_PFRUT)	+= pfr_update.o pfr_telemetry.o
106
107# processor has its own "processor." module_param namespace
108processor-y			:= processor_driver.o processor_thermal.o
109processor-$(CONFIG_ACPI_PROCESSOR_IDLE) += processor_idle.o
110processor-$(CONFIG_ACPI_CPU_FREQ_PSS)	+= processor_throttling.o
111processor-$(CONFIG_CPU_FREQ)	+= processor_perflib.o
112
113obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
114
115obj-$(CONFIG_ACPI_APEI)		+= apei/
116
117obj-$(CONFIG_ACPI_EXTLOG)	+= acpi_extlog.o
118
119obj-$(CONFIG_ACPI_CONFIGFS)	+= acpi_configfs.o
120
121obj-y				+= pmic/
122
123video-objs			+= acpi_video.o video_detect.o
124obj-y				+= dptf/
125
126obj-$(CONFIG_ARM64)		+= arm64/
127
128obj-$(CONFIG_ACPI_VIOT)		+= viot.o
129
130obj-$(CONFIG_RISCV)		+= riscv/
131obj-$(CONFIG_X86)		+= x86/
132