Makefile 3.7 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
L
Linus Torvalds 已提交
2 3
#
# Makefile for the Linux ACPI interpreter
4
#
L
Linus Torvalds 已提交
5

L
Len Brown 已提交
6
ccflags-$(CONFIG_ACPI_DEBUG)	+= -DACPI_DEBUG_OUTPUT
L
Linus Torvalds 已提交
7 8 9 10

#
# ACPI Boot-Time Table Parsing
#
11 12 13 14 15
ifeq ($(CONFIG_ACPI_CUSTOM_DSDT),y)
tables.o: $(src)/../../include/$(subst $\",,$(CONFIG_ACPI_CUSTOM_DSDT_FILE)) ;

endif

16
obj-$(CONFIG_ACPI)		+= tables.o
17
obj-$(CONFIG_X86)		+= blacklist.o
L
Linus Torvalds 已提交
18 19 20 21

#
# ACPI Core Subsystem (Interpreter)
#
22
obj-$(CONFIG_ACPI)		+= acpi.o \
L
Len Brown 已提交
23 24
					acpica/

25
# All the builtin files are in the "acpi." module_param namespace.
26
acpi-y				+= osi.o osl.o utils.o reboot.o
H
Huang Ying 已提交
27
acpi-y				+= nvs.o
28

29
# Power management related files
30
acpi-y				+= wakeup.o
31
acpi-$(CONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT) += sleep.o
32
acpi-y				+= device_sysfs.o device_pm.o
H
Huang Ying 已提交
33
acpi-$(CONFIG_ACPI_SLEEP)	+= proc.o
L
Len Brown 已提交
34

L
Linus Torvalds 已提交
35 36 37 38

#
# ACPI Bus and Device Drivers
#
39 40
acpi-y				+= bus.o glue.o
acpi-y				+= scan.o
41
acpi-y				+= resource.o
42
acpi-y				+= acpi_processor.o
43
acpi-y				+= processor_core.o
44
acpi-$(CONFIG_ARCH_MIGHT_HAVE_ACPI_PDC) += processor_pdc.o
45 46
acpi-y				+= ec.o
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 50
acpi-$(CONFIG_PCI)		+= acpi_lpss.o
acpi-y				+= acpi_apd.o
51
acpi-y				+= acpi_platform.o
52
acpi-y				+= acpi_pnp.o
53
acpi-$(CONFIG_ARM_AMBA)	+= acpi_amba.o
54
acpi-y				+= power.o
55
acpi-y				+= event.o
A
Arjan van de Ven 已提交
56
acpi-y				+= evged.o
Z
Zhang Rui 已提交
57
acpi-y				+= sysfs.o
58
acpi-y				+= property.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
64
acpi-y				+= acpi_lpat.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
L
Linus Torvalds 已提交
71

72 73 74
# Address translation
acpi-$(CONFIG_ACPI_ADXL)	+= acpi_adxl.o

75
# These are (potentially) separate modules
76 77 78 79

# IPMI may be used by other drivers, so it has to initialise before them
obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o

L
Linus Torvalds 已提交
80 81
obj-$(CONFIG_ACPI_AC) 		+= ac.o
obj-$(CONFIG_ACPI_BUTTON)	+= button.o
82
obj-$(CONFIG_ACPI_TINY_POWER_BUTTON)	+= tiny-power-button.o
L
Linus Torvalds 已提交
83
obj-$(CONFIG_ACPI_FAN)		+= fan.o
84
obj-$(CONFIG_ACPI_VIDEO)	+= video.o
85
obj-$(CONFIG_ACPI_TAD)		+= acpi_tad.o
86
obj-$(CONFIG_ACPI_PCI_SLOT)	+= pci_slot.o
L
Linus Torvalds 已提交
87
obj-$(CONFIG_ACPI_PROCESSOR)	+= processor.o
88
obj-$(CONFIG_ACPI)		+= container.o
L
Linus Torvalds 已提交
89
obj-$(CONFIG_ACPI_THERMAL)	+= thermal.o
90
obj-$(CONFIG_ACPI_PLATFORM_PROFILE) 	+= platform_profile.o
D
Dan Williams 已提交
91
obj-$(CONFIG_ACPI_NFIT)		+= nfit/
92
obj-$(CONFIG_ACPI_NUMA)		+= numa/
93
obj-$(CONFIG_ACPI)		+= acpi_memhotplug.o
94
obj-$(CONFIG_ACPI_HOTPLUG_IOAPIC) += ioapic.o
95
obj-$(CONFIG_ACPI_BATTERY)	+= battery.o
96
obj-$(CONFIG_ACPI_SBS)		+= sbshc.o
97
obj-$(CONFIG_ACPI_SBS)		+= sbs.o
98
obj-$(CONFIG_ACPI_HED)		+= hed.o
99
obj-$(CONFIG_ACPI_EC_DEBUGFS)	+= ec_sys.o
100
obj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
101
obj-$(CONFIG_ACPI_BGRT)		+= bgrt.o
102
obj-$(CONFIG_ACPI_CPPC_LIB)	+= cppc_acpi.o
103
obj-$(CONFIG_ACPI_SPCR_TABLE)	+= spcr.o
104
obj-$(CONFIG_ACPI_DEBUGGER_USER) += acpi_dbg.o
105
obj-$(CONFIG_ACPI_PPTT) 	+= pptt.o
106
obj-$(CONFIG_ACPI_PFRUT)	+= pfr_update.o pfr_telemetry.o
107

108
# processor has its own "processor." module_param namespace
109 110
processor-y			:= processor_driver.o
processor-$(CONFIG_ACPI_PROCESSOR_IDLE) += processor_idle.o
111 112
processor-$(CONFIG_ACPI_CPU_FREQ_PSS)	+= processor_throttling.o	\
	processor_thermal.o
113
processor-$(CONFIG_CPU_FREQ)	+= processor_perflib.o
114 115

obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
116 117

obj-$(CONFIG_ACPI_APEI)		+= apei/
118 119

obj-$(CONFIG_ACPI_EXTLOG)	+= acpi_extlog.o
120

121
obj-$(CONFIG_ACPI_CONFIGFS)	+= acpi_configfs.o
122

123
obj-y				+= pmic/
124

125
video-objs			+= acpi_video.o video_detect.o
126
obj-y				+= dptf/
127 128

obj-$(CONFIG_ARM64)		+= arm64/
129 130

obj-$(CONFIG_ACPI_VIOT)		+= viot.o