1 # SPDX-License-Identifier: GPL-2.0
3 # Makefile for the Linux ACPI interpreter
6 ccflags-$(CONFIG_ACPI_DEBUG) += -DACPI_DEBUG_OUTPUT
9 # ACPI Boot-Time Table Parsing
11 ifeq ($(CONFIG_ACPI_CUSTOM_DSDT),y)
12 tables.o: $(src)/../../include/$(CONFIG_ACPI_CUSTOM_DSDT_FILE) ;
16 obj-$(CONFIG_ACPI) += tables.o
17 obj-$(CONFIG_X86) += blacklist.o
20 # ACPI Core Subsystem (Interpreter)
22 obj-$(CONFIG_ACPI) += acpi.o \
25 # All the builtin files are in the "acpi." module_param namespace.
26 acpi-y += osi.o osl.o utils.o reboot.o
29 # Power management related files
31 acpi-$(CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT) += sleep.o
32 acpi-y += device_sysfs.o device_pm.o
33 acpi-$(CONFIG_ACPI_SLEEP) += proc.o
37 # ACPI Bus and Device Drivers
39 acpi-y += bus.o glue.o
42 acpi-y += acpi_processor.o
43 acpi-y += processor_core.o
44 acpi-$(CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC) += processor_pdc.o
46 acpi-$(CONFIG_ACPI_DOCK) += dock.o
47 acpi-$(CONFIG_PCI) += pci_root.o pci_link.o pci_irq.o
48 obj-$(CONFIG_ACPI_MCFG) += pci_mcfg.o
49 acpi-$(CONFIG_PCI) += acpi_lpss.o
51 acpi-y += acpi_platform.o
53 acpi-$(CONFIG_ARM_AMBA) += acpi_amba.o
59 acpi-$(CONFIG_X86) += acpi_cmos_rtc.o
60 acpi-$(CONFIG_X86) += x86/apple.o
61 acpi-$(CONFIG_X86) += x86/utils.o
62 acpi-$(CONFIG_X86) += x86/s2idle.o
63 acpi-$(CONFIG_DEBUG_FS) += debugfs.o
65 acpi-$(CONFIG_ACPI_FPDT) += acpi_fpdt.o
66 acpi-$(CONFIG_ACPI_LPIT) += acpi_lpit.o
67 acpi-$(CONFIG_ACPI_GENERIC_GSI) += irq.o
68 acpi-$(CONFIG_ACPI_WATCHDOG) += acpi_watchdog.o
69 acpi-$(CONFIG_ACPI_PRMT) += prmt.o
70 acpi-$(CONFIG_ACPI_PCC) += acpi_pcc.o
73 acpi-$(CONFIG_ACPI_ADXL) += acpi_adxl.o
75 # These are (potentially) separate modules
77 # IPMI may be used by other drivers, so it has to initialise before them
78 obj-$(CONFIG_ACPI_IPMI) += acpi_ipmi.o
80 obj-$(CONFIG_ACPI_AC) += ac.o
81 obj-$(CONFIG_ACPI_BUTTON) += button.o
82 obj-$(CONFIG_ACPI_TINY_POWER_BUTTON) += tiny-power-button.o
83 obj-$(CONFIG_ACPI_FAN) += fan.o
84 fan-objs := fan_core.o
85 fan-objs += fan_attr.o
87 obj-$(CONFIG_ACPI_VIDEO) += video.o
88 obj-$(CONFIG_ACPI_TAD) += acpi_tad.o
89 obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
90 obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
91 obj-$(CONFIG_ACPI) += container.o
92 obj-$(CONFIG_ACPI_THERMAL) += thermal.o
93 obj-$(CONFIG_ACPI_PLATFORM_PROFILE) += platform_profile.o
94 obj-$(CONFIG_ACPI_NFIT) += nfit/
95 obj-$(CONFIG_ACPI_NUMA) += numa/
96 obj-$(CONFIG_ACPI) += acpi_memhotplug.o
97 obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
98 obj-$(CONFIG_ACPI_BATTERY) += battery.o
99 obj-$(CONFIG_ACPI_SBS) += sbshc.o
100 obj-$(CONFIG_ACPI_SBS) += sbs.o
101 obj-$(CONFIG_ACPI_HED) += hed.o
102 obj-$(CONFIG_ACPI_EC_DEBUGFS) += ec_sys.o
103 obj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
104 obj-$(CONFIG_ACPI_BGRT) += bgrt.o
105 obj-$(CONFIG_ACPI_CPPC_LIB) += cppc_acpi.o
106 obj-$(CONFIG_ACPI_SPCR_TABLE) += spcr.o
107 obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
108 obj-$(CONFIG_ACPI_PPTT) += pptt.o
109 obj-$(CONFIG_ACPI_PFRUT) += pfr_update.o pfr_telemetry.o
111 # processor has its own "processor." module_param namespace
112 processor-y := processor_driver.o processor_thermal.o
113 processor-$(CONFIG_ACPI_PROCESSOR_IDLE) += processor_idle.o
114 processor-$(CONFIG_ACPI_CPU_FREQ_PSS) += processor_throttling.o
115 processor-$(CONFIG_CPU_FREQ) += processor_perflib.o
117 obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
119 obj-$(CONFIG_ACPI_APEI) += apei/
121 obj-$(CONFIG_ACPI_EXTLOG) += acpi_extlog.o
123 obj-$(CONFIG_ACPI_CONFIGFS) += acpi_configfs.o
127 video-objs += acpi_video.o video_detect.o
130 obj-$(CONFIG_ARM64) += arm64/
132 obj-$(CONFIG_ACPI_VIOT) += viot.o