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/$(subst $\",,$(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
72 acpi-$(CONFIG_ACPI_ADXL) += acpi_adxl.o
74 # These are (potentially) separate modules
76 # IPMI may be used by other drivers, so it has to initialise before them
77 obj-$(CONFIG_ACPI_IPMI) += acpi_ipmi.o
79 obj-$(CONFIG_ACPI_AC) += ac.o
80 obj-$(CONFIG_ACPI_BUTTON) += button.o
81 obj-$(CONFIG_ACPI_TINY_POWER_BUTTON) += tiny-power-button.o
82 obj-$(CONFIG_ACPI_FAN) += fan.o
83 obj-$(CONFIG_ACPI_VIDEO) += video.o
84 obj-$(CONFIG_ACPI_TAD) += acpi_tad.o
85 obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
86 obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
87 obj-$(CONFIG_ACPI) += container.o
88 obj-$(CONFIG_ACPI_THERMAL) += thermal.o
89 obj-$(CONFIG_ACPI_PLATFORM_PROFILE) += platform_profile.o
90 obj-$(CONFIG_ACPI_NFIT) += nfit/
91 obj-$(CONFIG_ACPI_NUMA) += numa/
92 obj-$(CONFIG_ACPI) += acpi_memhotplug.o
93 obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
94 obj-$(CONFIG_ACPI_BATTERY) += battery.o
95 obj-$(CONFIG_ACPI_SBS) += sbshc.o
96 obj-$(CONFIG_ACPI_SBS) += sbs.o
97 obj-$(CONFIG_ACPI_HED) += hed.o
98 obj-$(CONFIG_ACPI_EC_DEBUGFS) += ec_sys.o
99 obj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
100 obj-$(CONFIG_ACPI_BGRT) += bgrt.o
101 obj-$(CONFIG_ACPI_CPPC_LIB) += cppc_acpi.o
102 obj-$(CONFIG_ACPI_SPCR_TABLE) += spcr.o
103 obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
104 obj-$(CONFIG_ACPI_PPTT) += pptt.o
105 obj-$(CONFIG_ACPI_PFRUT) += pfr_update.o pfr_telemetry.o
107 # processor has its own "processor." module_param namespace
108 processor-y := processor_driver.o
109 processor-$(CONFIG_ACPI_PROCESSOR_IDLE) += processor_idle.o
110 processor-$(CONFIG_ACPI_CPU_FREQ_PSS) += processor_throttling.o \
112 processor-$(CONFIG_CPU_FREQ) += processor_perflib.o
114 obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
116 obj-$(CONFIG_ACPI_APEI) += apei/
118 obj-$(CONFIG_ACPI_EXTLOG) += acpi_extlog.o
120 obj-$(CONFIG_ACPI_CONFIGFS) += acpi_configfs.o
124 video-objs += acpi_video.o video_detect.o
127 obj-$(CONFIG_ARM64) += arm64/
129 obj-$(CONFIG_ACPI_VIOT) += viot.o