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