blob: e81e1ebbfb32780b4ebbea7b44cf2b1c09498766 [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#
Javier Martinez Canillas08dc7c72015-11-20 14:35:02 -030011obj-$(CONFIG_ACPI) += tables.o
Al Viro5d8e7aa2005-09-22 01:15:57 -040012obj-$(CONFIG_X86) += blacklist.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
14#
15# ACPI Core Subsystem (Interpreter)
16#
Javier Martinez Canillas08dc7c72015-11-20 14:35:02 -030017obj-$(CONFIG_ACPI) += acpi.o \
Len Brown95b482a2009-01-09 00:13:17 -050018 acpica/
19
Rusty Russell5b5d9112009-03-12 09:07:19 +103020# All the builtin files are in the "acpi." module_param namespace.
Lv Zhenge5f660e2016-05-03 16:49:01 +080021acpi-y += osi.o osl.o utils.o reboot.o
Huang Yingb54ac6d2011-12-08 11:25:49 +080022acpi-y += nvs.o
Rusty Russell5b5d9112009-03-12 09:07:19 +103023
Rafael J. Wysockiec2cd812012-11-02 01:40:09 +010024# Power management related files
Rusty Russell5b5d9112009-03-12 09:07:19 +103025acpi-y += wakeup.o
Graeme Gregory6e0a0ea2015-03-24 14:02:39 +000026acpi-$(CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT) += sleep.o
Rafael J. Wysockic2efefb2015-07-17 22:53:43 +020027acpi-y += device_sysfs.o device_pm.o
Huang Yingb54ac6d2011-12-08 11:25:49 +080028acpi-$(CONFIG_ACPI_SLEEP) += proc.o
Len Brown95b482a2009-01-09 00:13:17 -050029
Linus Torvalds1da177e2005-04-16 15:20:36 -070030
31#
32# ACPI Bus and Device Drivers
33#
Rusty Russell5b5d9112009-03-12 09:07:19 +103034acpi-y += bus.o glue.o
35acpi-y += scan.o
Rafael J. Wysocki046d9ce2012-11-15 00:30:01 +010036acpi-y += resource.o
Rafael J. Wysockiac212b62013-05-03 00:26:22 +020037acpi-y += acpi_processor.o
Alex Chiang4d5d4cd2010-02-22 12:11:14 -070038acpi-y += processor_core.o
Hanjun Guo46ba51e2014-07-18 18:02:54 +080039acpi-$(CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC) += processor_pdc.o
Rusty Russell5b5d9112009-03-12 09:07:19 +103040acpi-y += ec.o
41acpi-$(CONFIG_ACPI_DOCK) += dock.o
Sinan Kaya5d32a662018-12-19 22:46:56 +000042acpi-$(CONFIG_PCI) += pci_root.o pci_link.o pci_irq.o
Tomasz Nowicki935c7602016-06-10 21:55:13 +020043obj-$(CONFIG_ACPI_MCFG) += pci_mcfg.o
Sinan Kaya16227452019-01-05 10:05:56 +000044acpi-$(CONFIG_PCI) += acpi_lpss.o
45acpi-y += acpi_apd.o
Mika Westerberg91e56872012-10-31 22:45:02 +010046acpi-y += acpi_platform.o
Zhang Ruieec15ed2014-05-30 04:23:01 +020047acpi-y += acpi_pnp.o
Graeme Gregory6ce2e182016-01-20 20:29:27 +060048acpi-$(CONFIG_ARM_AMBA) += acpi_amba.o
Rusty Russell5b5d9112009-03-12 09:07:19 +103049acpi-y += power.o
Zhang Rui47f5c892010-07-15 10:46:33 +080050acpi-y += event.o
Arjan van de Venac36d372019-10-09 15:04:33 +020051acpi-y += evged.o
Zhang Rui1c8fce22010-07-15 10:46:30 +080052acpi-y += sysfs.o
Mika Westerbergffdcd952014-10-21 13:33:55 +020053acpi-y += property.o
Lan Tianyu2fa97fe2013-06-05 02:27:50 +000054acpi-$(CONFIG_X86) += acpi_cmos_rtc.o
Lukas Wunner899596e2017-08-01 14:10:41 +020055acpi-$(CONFIG_X86) += x86/apple.o
Hans de Goedeb7ecf662017-04-21 12:47:40 +020056acpi-$(CONFIG_X86) += x86/utils.o
Zhang Ruia25ee922010-07-15 10:46:15 +080057acpi-$(CONFIG_DEBUG_FS) += debugfs.o
Lan Tianyue2a7c3d2014-05-04 11:07:24 +080058acpi-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o
Srinivas Pandruvadac55d6282015-01-28 11:56:46 -080059acpi-y += acpi_lpat.o
Srinivas Pandruvadaeeb2d802017-10-05 16:24:03 -070060acpi-$(CONFIG_ACPI_LPIT) += acpi_lpit.o
Agustin Vega-Friasd44fa3d2017-02-02 18:23:58 -050061acpi-$(CONFIG_ACPI_GENERIC_GSI) += irq.o
Mika Westerberg058dfc72016-09-20 15:30:51 +030062acpi-$(CONFIG_ACPI_WATCHDOG) += acpi_watchdog.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070063
Tony Luck4cf841e32018-10-15 16:11:31 -070064# Address translation
65acpi-$(CONFIG_ACPI_ADXL) += acpi_adxl.o
66
Rusty Russell5b5d9112009-03-12 09:07:19 +103067# These are (potentially) separate modules
Matthew Garrett40337412012-10-16 15:53:37 -050068
69# IPMI may be used by other drivers, so it has to initialise before them
70obj-$(CONFIG_ACPI_IPMI) += acpi_ipmi.o
71
Linus Torvalds1da177e2005-04-16 15:20:36 -070072obj-$(CONFIG_ACPI_AC) += ac.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070073obj-$(CONFIG_ACPI_BUTTON) += button.o
Josh Tripletta1b93e82020-02-11 15:38:06 -080074obj-$(CONFIG_ACPI_TINY_POWER_BUTTON) += tiny-power-button.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070075obj-$(CONFIG_ACPI_FAN) += fan.o
Kristen Carlson Accardi01b57e72006-10-20 14:30:25 -070076obj-$(CONFIG_ACPI_VIDEO) += video.o
Rafael J. Wysocki95c513e2018-03-16 13:51:01 +010077obj-$(CONFIG_ACPI_TAD) += acpi_tad.o
Alex Chiang8344b562008-06-10 15:30:42 -060078obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070079obj-$(CONFIG_ACPI_PROCESSOR) += processor.o
Javier Martinez Canillas08dc7c72015-11-20 14:35:02 -030080obj-$(CONFIG_ACPI) += container.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070081obj-$(CONFIG_ACPI_THERMAL) += thermal.o
Dan Williamsbdf97012016-07-23 21:24:19 -070082obj-$(CONFIG_ACPI_NFIT) += nfit/
Dan Williamsc710fcc2019-11-06 17:42:55 -080083obj-$(CONFIG_ACPI_NUMA) += numa/
Javier Martinez Canillas08dc7c72015-11-20 14:35:02 -030084obj-$(CONFIG_ACPI) += acpi_memhotplug.o
Jiang Liuc1836192015-02-05 13:44:49 +080085obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
Arjan van de Ven0f66af52009-01-10 14:19:05 -050086obj-$(CONFIG_ACPI_BATTERY) += battery.o
Alexey Starikovskiy91087df2007-09-26 19:43:28 +040087obj-$(CONFIG_ACPI_SBS) += sbshc.o
Alexey Starikovskiybbafbec2008-02-09 03:22:13 -050088obj-$(CONFIG_ACPI_SBS) += sbs.o
Huang Ying801eab82010-05-18 14:35:17 +080089obj-$(CONFIG_ACPI_HED) += hed.o
Thomas Renninger1195a092010-07-16 13:11:31 +020090obj-$(CONFIG_ACPI_EC_DEBUGFS) += ec_sys.o
Thomas Renninger526b4af2011-05-26 12:26:24 +020091obj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
Matthew Garrettd1ff4b12012-01-31 13:19:20 -050092obj-$(CONFIG_ACPI_BGRT) += bgrt.o
Ashwin Chaugule337aadf2015-10-02 10:01:19 -040093obj-$(CONFIG_ACPI_CPPC_LIB) += cppc_acpi.o
Aleksey Makarovad1696f2016-09-27 23:54:13 +030094obj-$(CONFIG_ACPI_SPCR_TABLE) += spcr.o
Lv Zheng836d083012015-12-03 10:43:14 +080095obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
Jeremy Linton0ce82232018-05-11 18:58:01 -050096obj-$(CONFIG_ACPI_PPTT) += pptt.o
Rusty Russell5b5d9112009-03-12 09:07:19 +103097
Len Brownae7d5152009-04-02 22:49:43 -040098# processor has its own "processor." module_param namespace
Ashwin Chaugule5f055862015-08-05 09:40:26 -040099processor-y := processor_driver.o
100processor-$(CONFIG_ACPI_PROCESSOR_IDLE) += processor_idle.o
Ashwin Chaugule239708a2015-08-05 09:40:25 -0400101processor-$(CONFIG_ACPI_CPU_FREQ_PSS) += processor_throttling.o \
102 processor_thermal.o
Len Brownae7d5152009-04-02 22:49:43 -0400103processor-$(CONFIG_CPU_FREQ) += processor_perflib.o
Shaohua Li8e0af512009-07-27 18:11:02 -0400104
105obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
Huang Yinga643ce22010-05-18 14:35:12 +0800106
107obj-$(CONFIG_ACPI_APEI) += apei/
Chen, Gong4b3db702013-10-21 14:29:25 -0700108
109obj-$(CONFIG_ACPI_EXTLOG) += acpi_extlog.o
Aaron Lub1eea852014-11-24 17:21:54 +0800110
111obj-$(CONFIG_PMIC_OPREGION) += pmic/intel_pmic.o
Hans de Goedeed852cd2019-10-24 23:38:25 +0200112obj-$(CONFIG_BYTCRC_PMIC_OPREGION) += pmic/intel_pmic_bytcrc.o
Hans de Goedecefe6aa2019-10-24 23:38:26 +0200113obj-$(CONFIG_CHTCRC_PMIC_OPREGION) += pmic/intel_pmic_chtcrc.o
Aaron Lud8139f62014-11-24 17:24:47 +0800114obj-$(CONFIG_XPOWER_PMIC_OPREGION) += pmic/intel_pmic_xpower.o
Bin Gao9b928c72016-06-23 17:48:51 -0700115obj-$(CONFIG_BXT_WC_PMIC_OPREGION) += pmic/intel_pmic_bxtwc.o
Hans de Goedeac2c4932017-04-19 15:06:59 +0200116obj-$(CONFIG_CHT_WC_PMIC_OPREGION) += pmic/intel_pmic_chtwc.o
Takashi Iwai31374972017-09-04 16:43:40 +0200117obj-$(CONFIG_CHT_DC_TI_PMIC_OPREGION) += pmic/intel_pmic_chtdc_ti.o
Hans de Goede14ca7a472015-06-16 16:27:47 +0200118
Mika Westerbergfafe5302016-07-11 15:13:36 +0200119obj-$(CONFIG_ACPI_CONFIGFS) += acpi_configfs.o
Hans de Goede14ca7a472015-06-16 16:27:47 +0200120
Rajmohan Manie13452a2017-07-28 17:30:26 -0700121obj-$(CONFIG_TPS68470_PMIC_OPREGION) += pmic/tps68470_pmic.o
122
Hans de Goede14ca7a472015-06-16 16:27:47 +0200123video-objs += acpi_video.o video_detect.o
Srinivas Pandruvada6256ebd2016-07-17 13:45:32 -0700124obj-y += dptf/
Tomasz Nowicki88ef16d2016-09-12 20:54:20 +0200125
126obj-$(CONFIG_ARM64) += arm64/