162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for the Linux ACPI interpreter
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciccflags-$(CONFIG_ACPI_DEBUG)	+= -DACPI_DEBUG_OUTPUT
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#
962306a36Sopenharmony_ci# ACPI Boot-Time Table Parsing
1062306a36Sopenharmony_ci#
1162306a36Sopenharmony_ciifeq ($(CONFIG_ACPI_CUSTOM_DSDT),y)
1262306a36Sopenharmony_citables.o: $(src)/../../include/$(CONFIG_ACPI_CUSTOM_DSDT_FILE) ;
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciendif
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciobj-$(CONFIG_ACPI)		+= tables.o
1762306a36Sopenharmony_ciobj-$(CONFIG_X86)		+= blacklist.o
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#
2062306a36Sopenharmony_ci# ACPI Core Subsystem (Interpreter)
2162306a36Sopenharmony_ci#
2262306a36Sopenharmony_ciobj-$(CONFIG_ACPI)		+= acpi.o \
2362306a36Sopenharmony_ci					acpica/
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci# All the builtin files are in the "acpi." module_param namespace.
2662306a36Sopenharmony_ciacpi-y				+= osi.o osl.o utils.o reboot.o
2762306a36Sopenharmony_ciacpi-y				+= nvs.o
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci# Power management related files
3062306a36Sopenharmony_ciacpi-y				+= wakeup.o
3162306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT) += sleep.o
3262306a36Sopenharmony_ciacpi-y				+= device_sysfs.o device_pm.o
3362306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_SLEEP)	+= proc.o
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci#
3762306a36Sopenharmony_ci# ACPI Bus and Device Drivers
3862306a36Sopenharmony_ci#
3962306a36Sopenharmony_ciacpi-y				+= bus.o glue.o
4062306a36Sopenharmony_ciacpi-y				+= scan.o
4162306a36Sopenharmony_ciacpi-y				+= resource.o
4262306a36Sopenharmony_ciacpi-y				+= acpi_processor.o
4362306a36Sopenharmony_ciacpi-y				+= processor_core.o
4462306a36Sopenharmony_ciacpi-$(CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC) += processor_pdc.o
4562306a36Sopenharmony_ciacpi-y				+= ec.o
4662306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_DOCK)	+= dock.o
4762306a36Sopenharmony_ciacpi-$(CONFIG_PCI)		+= pci_root.o pci_link.o pci_irq.o
4862306a36Sopenharmony_ciobj-$(CONFIG_ACPI_MCFG)		+= pci_mcfg.o
4962306a36Sopenharmony_ciacpi-$(CONFIG_PCI)		+= acpi_lpss.o
5062306a36Sopenharmony_ciacpi-y				+= acpi_apd.o
5162306a36Sopenharmony_ciacpi-y				+= acpi_platform.o
5262306a36Sopenharmony_ciacpi-y				+= acpi_pnp.o
5362306a36Sopenharmony_ciacpi-y				+= power.o
5462306a36Sopenharmony_ciacpi-y				+= event.o
5562306a36Sopenharmony_ciacpi-y				+= evged.o
5662306a36Sopenharmony_ciacpi-y				+= sysfs.o
5762306a36Sopenharmony_ciacpi-y				+= property.o
5862306a36Sopenharmony_ciacpi-$(CONFIG_X86)		+= acpi_cmos_rtc.o
5962306a36Sopenharmony_ciacpi-$(CONFIG_X86)		+= x86/apple.o
6062306a36Sopenharmony_ciacpi-$(CONFIG_X86)		+= x86/utils.o
6162306a36Sopenharmony_ciacpi-$(CONFIG_X86)		+= x86/s2idle.o
6262306a36Sopenharmony_ciacpi-$(CONFIG_DEBUG_FS)		+= debugfs.o
6362306a36Sopenharmony_ciacpi-y				+= acpi_lpat.o
6462306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_FPDT)	+= acpi_fpdt.o
6562306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_LPIT)	+= acpi_lpit.o
6662306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_GENERIC_GSI) += irq.o
6762306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_WATCHDOG)	+= acpi_watchdog.o
6862306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_PRMT)	+= prmt.o
6962306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_PCC)		+= acpi_pcc.o
7062306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_FFH)		+= acpi_ffh.o
7162306a36Sopenharmony_ci
7262306a36Sopenharmony_ci# Address translation
7362306a36Sopenharmony_ciacpi-$(CONFIG_ACPI_ADXL)	+= acpi_adxl.o
7462306a36Sopenharmony_ci
7562306a36Sopenharmony_ci# These are (potentially) separate modules
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ci# IPMI may be used by other drivers, so it has to initialise before them
7862306a36Sopenharmony_ciobj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ciobj-$(CONFIG_ACPI_AC) 		+= ac.o
8162306a36Sopenharmony_ciobj-$(CONFIG_ACPI_BUTTON)	+= button.o
8262306a36Sopenharmony_ciobj-$(CONFIG_ACPI_TINY_POWER_BUTTON)	+= tiny-power-button.o
8362306a36Sopenharmony_ciobj-$(CONFIG_ACPI_FAN)		+= fan.o
8462306a36Sopenharmony_cifan-objs			:= fan_core.o
8562306a36Sopenharmony_cifan-objs			+= fan_attr.o
8662306a36Sopenharmony_ci
8762306a36Sopenharmony_ciobj-$(CONFIG_ACPI_VIDEO)	+= video.o
8862306a36Sopenharmony_ciobj-$(CONFIG_ACPI_TAD)		+= acpi_tad.o
8962306a36Sopenharmony_ciobj-$(CONFIG_ACPI_PCI_SLOT)	+= pci_slot.o
9062306a36Sopenharmony_ciobj-$(CONFIG_ACPI_PROCESSOR)	+= processor.o
9162306a36Sopenharmony_ciobj-$(CONFIG_ACPI)		+= container.o
9262306a36Sopenharmony_ciobj-$(CONFIG_ACPI_THERMAL)	+= thermal.o
9362306a36Sopenharmony_ciobj-$(CONFIG_ACPI_PLATFORM_PROFILE) 	+= platform_profile.o
9462306a36Sopenharmony_ciobj-$(CONFIG_ACPI_NFIT)		+= nfit/
9562306a36Sopenharmony_ciobj-$(CONFIG_ACPI_NUMA)		+= numa/
9662306a36Sopenharmony_ciobj-$(CONFIG_ACPI)		+= acpi_memhotplug.o
9762306a36Sopenharmony_ciobj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
9862306a36Sopenharmony_ciobj-$(CONFIG_ACPI_BATTERY)	+= battery.o
9962306a36Sopenharmony_ciobj-$(CONFIG_ACPI_SBS)		+= sbshc.o
10062306a36Sopenharmony_ciobj-$(CONFIG_ACPI_SBS)		+= sbs.o
10162306a36Sopenharmony_ciobj-$(CONFIG_ACPI_HED)		+= hed.o
10262306a36Sopenharmony_ciobj-$(CONFIG_ACPI_EC_DEBUGFS)	+= ec_sys.o
10362306a36Sopenharmony_ciobj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
10462306a36Sopenharmony_ciobj-$(CONFIG_ACPI_BGRT)		+= bgrt.o
10562306a36Sopenharmony_ciobj-$(CONFIG_ACPI_CPPC_LIB)	+= cppc_acpi.o
10662306a36Sopenharmony_ciobj-$(CONFIG_ACPI_SPCR_TABLE)	+= spcr.o
10762306a36Sopenharmony_ciobj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
10862306a36Sopenharmony_ciobj-$(CONFIG_ACPI_PPTT) 	+= pptt.o
10962306a36Sopenharmony_ciobj-$(CONFIG_ACPI_PFRUT)	+= pfr_update.o pfr_telemetry.o
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ci# processor has its own "processor." module_param namespace
11262306a36Sopenharmony_ciprocessor-y			:= processor_driver.o processor_thermal.o
11362306a36Sopenharmony_ciprocessor-$(CONFIG_ACPI_PROCESSOR_IDLE) += processor_idle.o
11462306a36Sopenharmony_ciprocessor-$(CONFIG_ACPI_CPU_FREQ_PSS)	+= processor_throttling.o
11562306a36Sopenharmony_ciprocessor-$(CONFIG_CPU_FREQ)	+= processor_perflib.o
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ciobj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ciobj-$(CONFIG_ACPI_APEI)		+= apei/
12062306a36Sopenharmony_ci
12162306a36Sopenharmony_ciobj-$(CONFIG_ACPI_EXTLOG)	+= acpi_extlog.o
12262306a36Sopenharmony_ci
12362306a36Sopenharmony_ciobj-$(CONFIG_ACPI_CONFIGFS)	+= acpi_configfs.o
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ciobj-y				+= pmic/
12662306a36Sopenharmony_ci
12762306a36Sopenharmony_civideo-objs			+= acpi_video.o video_detect.o
12862306a36Sopenharmony_ciobj-y				+= dptf/
12962306a36Sopenharmony_ci
13062306a36Sopenharmony_ciobj-$(CONFIG_ARM64)		+= arm64/
13162306a36Sopenharmony_ci
13262306a36Sopenharmony_ciobj-$(CONFIG_ACPI_VIOT)		+= viot.o
13362306a36Sopenharmony_ci
13462306a36Sopenharmony_ciobj-$(CONFIG_RISCV)		+= riscv/
135