blob: d3dc79298ce3c1018c343fddb6325e2b13c04dfa [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#
3# Makefile for the Linux ACPI interpreter
Alexey Starikovskiy33d20b62007-03-07 22:28:00 +03004#
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Len Brown95b482a2009-01-09 00:13:17 -05006ccflags-$(CONFIG_ACPI_DEBUG) += -DACPI_DEBUG_OUTPUT
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
8#
9# ACPI Boot-Time Table Parsing
10#
Richard Fitzgeraldd1059c12021-06-21 16:24:33 +010011ifeq ($(CONFIG_ACPI_CUSTOM_DSDT),y)
12tables.o: $(src)/../../include/$(subst $\",,$(CONFIG_ACPI_CUSTOM_DSDT_FILE)) ;
13
14endif
15
Javier Martinez Canillas08dc7c72015-11-20 14:35:02 -030016obj-$(CONFIG_ACPI) += tables.o
Al Viro5d8e7aa2005-09-22 01:15:57 -040017obj-$(CONFIG_X86) += blacklist.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
19#
20# ACPI Core Subsystem (Interpreter)
21#
Javier Martinez Canillas08dc7c72015-11-20 14:35:02 -030022obj-$(CONFIG_ACPI) += acpi.o \
Len Brown95b482a2009-01-09 00:13:17 -050023 acpica/
24
Rusty Russell5b5d9112009-03-12 09:07:19 +103025# All the builtin files are in the "acpi." module_param namespace.
Lv Zhenge5f660e2016-05-03 16:49:01 +080026acpi-y += osi.o osl.o utils.o reboot.o
Huang Yingb54ac6d2011-12-08 11:25:49 +080027acpi-y += nvs.o
Rusty Russell5b5d9112009-03-12 09:07:19 +103028
Rafael J. Wysockiec2cd812012-11-02 01:40:09 +010029# Power management related files
Rusty Russell5b5d9112009-03-12 09:07:19 +103030acpi-y += wakeup.o
Graeme Gregory6e0a0ea2015-03-24 14:02:39 +000031acpi-$(CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT) += sleep.o
Rafael J. Wysockic2efefb2015-07-17 22:53:43 +020032acpi-y += device_sysfs.o device_pm.o
Huang Yingb54ac6d2011-12-08 11:25:49 +080033acpi-$(CONFIG_ACPI_SLEEP) += proc.o
Len Brown95b482a2009-01-09 00:13:17 -050034
Linus Torvalds1da177e2005-04-16 15:20:36 -070035
36#
37# ACPI Bus and Device Drivers
38#
Rusty Russell5b5d9112009-03-12 09:07:19 +103039acpi-y += bus.o glue.o
40acpi-y += scan.o
Rafael J. Wysocki046d9ce2012-11-15 00:30:01 +010041acpi-y += resource.o
Rafael J. Wysockiac212b62013-05-03 00:26:22 +020042acpi-y += acpi_processor.o
Alex Chiang4d5d4cd2010-02-22 12:11:14 -070043acpi-y += processor_core.o
Hanjun Guo46ba51e2014-07-18 18:02:54 +080044acpi-$(CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC) += processor_pdc.o
Rusty Russell5b5d9112009-03-12 09:07:19 +103045acpi-y += ec.o
46acpi-$(CONFIG_ACPI_DOCK) += dock.o
Sinan Kaya5d32a662018-12-19 22:46:56 +000047acpi-$(CONFIG_PCI) += pci_root.o pci_link.o pci_irq.o
Tomasz Nowicki935c7602016-06-10 21:55:13 +020048obj-$(CONFIG_ACPI_MCFG) += pci_mcfg.o
Sinan Kaya16227452019-01-05 10:05:56 +000049acpi-$(CONFIG_PCI) += acpi_lpss.o
50acpi-y += acpi_apd.o
Mika Westerberg91e56872012-10-31 22:45:02 +010051acpi-y += acpi_platform.o
Zhang Ruieec15ed2014-05-30 04:23:01 +020052acpi-y += acpi_pnp.o
Graeme Gregory6ce2e182016-01-20 20:29:27 +060053acpi-$(CONFIG_ARM_AMBA) += acpi_amba.o
Rusty Russell5b5d9112009-03-12 09:07:19 +103054acpi-y += power.o
Zhang Rui47f5c892010-07-15 10:46:33 +080055acpi-y += event.o
Arjan van de Venac36d372019-10-09 15:04:33 +020056acpi-y += evged.o
Zhang Rui1c8fce22010-07-15 10:46:30 +080057acpi-y += sysfs.o
Mika Westerbergffdcd952014-10-21 13:33:55 +020058acpi-y += property.o
Lan Tianyu2fa97fe2013-06-05 02:27:50 +000059acpi-$(CONFIG_X86) += acpi_cmos_rtc.o
Lukas Wunner899596e2017-08-01 14:10:41 +020060acpi-$(CONFIG_X86) += x86/apple.o
Hans de Goedeb7ecf662017-04-21 12:47:40 +020061acpi-$(CONFIG_X86) += x86/utils.o
Rafael J. Wysockifef98672020-12-17 20:23:17 +010062acpi-$(CONFIG_X86) += x86/s2idle.o
Zhang Ruia25ee922010-07-15 10:46:15 +080063acpi-$(CONFIG_DEBUG_FS) += debugfs.o
Srinivas Pandruvadac55d6282015-01-28 11:56:46 -080064acpi-y += acpi_lpat.o
Zhang Ruid1eb86e2021-01-29 14:15:48 +080065acpi-$(CONFIG_ACPI_FPDT) += acpi_fpdt.o
Srinivas Pandruvadaeeb2d802017-10-05 16:24:03 -070066acpi-$(CONFIG_ACPI_LPIT) += acpi_lpit.o
Agustin Vega-Friasd44fa3d2017-02-02 18:23:58 -050067acpi-$(CONFIG_ACPI_GENERIC_GSI) += irq.o
Mika Westerberg058dfc72016-09-20 15:30:51 +030068acpi-$(CONFIG_ACPI_WATCHDOG) += acpi_watchdog.o
Erik Kanedacefc7ca2021-06-09 20:41:52 -070069acpi-$(CONFIG_ACPI_PRMT) += prmt.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070070
Tony Luck4cf841e32018-10-15 16:11:31 -070071# Address translation
72acpi-$(CONFIG_ACPI_ADXL) += acpi_adxl.o
73
Rusty Russell5b5d9112009-03-12 09:07:19 +103074# These are (potentially) separate modules
Matthew Garrett40337412012-10-16 15:53:37 -050075
76# IPMI may be used by other drivers, so it has to initialise before them
77obj-$(CONFIG_ACPI_IPMI) += acpi_ipmi.o
78
Linus Torvalds1da177e2005-04-16 15:20:36 -070079obj-$(CONFIG_ACPI_AC) += ac.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070080obj-$(CONFIG_ACPI_BUTTON) += button.o
Josh Tripletta1b93e82020-02-11 15:38:06 -080081obj-$(CONFIG_ACPI_TINY_POWER_BUTTON) += tiny-power-button.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070082obj-$(CONFIG_ACPI_FAN) += fan.o
Kristen Carlson Accardi01b57e72006-10-20 14:30:25 -070083obj-$(CONFIG_ACPI_VIDEO) += video.o
Rafael J. Wysocki95c513e2018-03-16 13:51:01 +010084obj-$(CONFIG_ACPI_TAD) += acpi_tad.o
Alex Chiang8344b562008-06-10 15:30:42 -060085obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070086obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
Javier Martinez Canillas08dc7c72015-11-20 14:35:02 -030087obj-$(CONFIG_ACPI) += container.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070088obj-$(CONFIG_ACPI_THERMAL) += thermal.o
Mark Pearsona2ff95e2020-12-29 19:18:26 -050089obj-$(CONFIG_ACPI_PLATFORM_PROFILE) += platform_profile.o
Dan Williamsbdf97012016-07-23 21:24:19 -070090obj-$(CONFIG_ACPI_NFIT) += nfit/
Dan Williamsc710fcc2019-11-06 17:42:55 -080091obj-$(CONFIG_ACPI_NUMA) += numa/
Javier Martinez Canillas08dc7c72015-11-20 14:35:02 -030092obj-$(CONFIG_ACPI) += acpi_memhotplug.o
Jiang Liuc1836192015-02-05 13:44:49 +080093obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
Arjan van de Ven0f66af52009-01-10 14:19:05 -050094obj-$(CONFIG_ACPI_BATTERY) += battery.o
Alexey Starikovskiy91087df2007-09-26 19:43:28 +040095obj-$(CONFIG_ACPI_SBS) += sbshc.o
Alexey Starikovskiybbafbec2008-02-09 03:22:13 -050096obj-$(CONFIG_ACPI_SBS) += sbs.o
Huang Ying801eab82010-05-18 14:35:17 +080097obj-$(CONFIG_ACPI_HED) += hed.o
Thomas Renninger1195a092010-07-16 13:11:31 +020098obj-$(CONFIG_ACPI_EC_DEBUGFS) += ec_sys.o
Thomas Renninger526b4af2011-05-26 12:26:24 +020099obj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
Matthew Garrettd1ff4b12012-01-31 13:19:20 -0500100obj-$(CONFIG_ACPI_BGRT) += bgrt.o
Ashwin Chaugule337aadf2015-10-02 10:01:19 -0400101obj-$(CONFIG_ACPI_CPPC_LIB) += cppc_acpi.o
Aleksey Makarovad1696f2016-09-27 23:54:13 +0300102obj-$(CONFIG_ACPI_SPCR_TABLE) += spcr.o
Lv Zheng836d083012015-12-03 10:43:14 +0800103obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
Jeremy Linton0ce82232018-05-11 18:58:01 -0500104obj-$(CONFIG_ACPI_PPTT) += pptt.o
Chen Yub0013e02021-12-22 12:32:02 +0800105obj-$(CONFIG_ACPI_PFRUT) += pfr_update.o pfr_telemetry.o
Rusty Russell5b5d9112009-03-12 09:07:19 +1030106
Len Brownae7d5152009-04-02 22:49:43 -0400107# processor has its own "processor." module_param namespace
Ashwin Chaugule5f055862015-08-05 09:40:26 -0400108processor-y := processor_driver.o
109processor-$(CONFIG_ACPI_PROCESSOR_IDLE) += processor_idle.o
Ashwin Chaugule239708a2015-08-05 09:40:25 -0400110processor-$(CONFIG_ACPI_CPU_FREQ_PSS) += processor_throttling.o \
111 processor_thermal.o
Len Brownae7d5152009-04-02 22:49:43 -0400112processor-$(CONFIG_CPU_FREQ) += processor_perflib.o
Shaohua Li8e0af512009-07-27 18:11:02 -0400113
114obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
Huang Yinga643ce22010-05-18 14:35:12 +0800115
116obj-$(CONFIG_ACPI_APEI) += apei/
Chen, Gong4b3db702013-10-21 14:29:25 -0700117
118obj-$(CONFIG_ACPI_EXTLOG) += acpi_extlog.o
Aaron Lub1eea852014-11-24 17:21:54 +0800119
Mika Westerbergfafe5302016-07-11 15:13:36 +0200120obj-$(CONFIG_ACPI_CONFIGFS) += acpi_configfs.o
Hans de Goede14ca7a472015-06-16 16:27:47 +0200121
Andy Shevchenkofa870502020-08-14 16:27:25 +0300122obj-y += pmic/
Rajmohan Manie13452a2017-07-28 17:30:26 -0700123
Hans de Goede14ca7a472015-06-16 16:27:47 +0200124video-objs += acpi_video.o video_detect.o
Srinivas Pandruvada6256ebd2016-07-17 13:45:32 -0700125obj-y += dptf/
Tomasz Nowicki88ef16d2016-09-12 20:54:20 +0200126
127obj-$(CONFIG_ARM64) += arm64/
Jean-Philippe Brucker3cf48552021-06-18 17:20:58 +0200128
129obj-$(CONFIG_ACPI_VIOT) += viot.o