xref: /openbmc/linux/drivers/acpi/Makefile (revision 8851b9f1)
1#
2# Makefile for the Linux ACPI interpreter
3#
4
5ccflags-y			:= -Os
6ccflags-$(CONFIG_ACPI_DEBUG)	+= -DACPI_DEBUG_OUTPUT
7
8#
9# ACPI Boot-Time Table Parsing
10#
11obj-y				+= tables.o
12obj-$(CONFIG_X86)		+= blacklist.o
13
14#
15# ACPI Core Subsystem (Interpreter)
16#
17obj-y				+= acpi.o \
18					acpica/
19
20# All the builtin files are in the "acpi." module_param namespace.
21acpi-y				+= osl.o utils.o reboot.o
22acpi-y				+= nvs.o
23
24# Power management related files
25acpi-y				+= wakeup.o
26acpi-y				+= sleep.o
27acpi-y				+= device_pm.o
28acpi-$(CONFIG_ACPI_SLEEP)	+= proc.o
29
30
31#
32# ACPI Bus and Device Drivers
33#
34acpi-y				+= bus.o glue.o
35acpi-y				+= scan.o
36acpi-y				+= resource.o
37acpi-y				+= acpi_processor.o
38acpi-y				+= processor_core.o
39acpi-y				+= ec.o
40acpi-$(CONFIG_ACPI_DOCK)	+= dock.o
41acpi-y				+= pci_root.o pci_link.o pci_irq.o
42acpi-$(CONFIG_X86_INTEL_LPSS)	+= acpi_lpss.o
43acpi-y				+= acpi_platform.o
44acpi-y				+= power.o
45acpi-y				+= event.o
46acpi-y				+= sysfs.o
47acpi-$(CONFIG_X86)		+= acpi_cmos_rtc.o
48acpi-$(CONFIG_DEBUG_FS)		+= debugfs.o
49acpi-$(CONFIG_ACPI_NUMA)	+= numa.o
50acpi-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o
51ifdef CONFIG_ACPI_VIDEO
52acpi-y				+= video_detect.o
53endif
54
55# These are (potentially) separate modules
56
57# IPMI may be used by other drivers, so it has to initialise before them
58obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
59
60obj-$(CONFIG_ACPI_AC) 		+= ac.o
61obj-$(CONFIG_ACPI_BUTTON)	+= button.o
62obj-$(CONFIG_ACPI_FAN)		+= fan.o
63obj-$(CONFIG_ACPI_VIDEO)	+= video.o
64obj-$(CONFIG_ACPI_PCI_SLOT)	+= pci_slot.o
65obj-$(CONFIG_ACPI_PROCESSOR)	+= processor.o
66obj-$(CONFIG_ACPI_CONTAINER)	+= container.o
67obj-$(CONFIG_ACPI_THERMAL)	+= thermal.o
68obj-$(CONFIG_ACPI_HOTPLUG_MEMORY) += acpi_memhotplug.o
69obj-$(CONFIG_ACPI_BATTERY)	+= battery.o
70obj-$(CONFIG_ACPI_SBS)		+= sbshc.o
71obj-$(CONFIG_ACPI_SBS)		+= sbs.o
72obj-$(CONFIG_ACPI_HED)		+= hed.o
73obj-$(CONFIG_ACPI_EC_DEBUGFS)	+= ec_sys.o
74obj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
75obj-$(CONFIG_ACPI_BGRT)		+= bgrt.o
76obj-$(CONFIG_ACPI_I2C)		+= acpi_i2c.o
77
78# processor has its own "processor." module_param namespace
79processor-y			:= processor_driver.o processor_throttling.o
80processor-y			+= processor_idle.o processor_thermal.o
81processor-$(CONFIG_CPU_FREQ)	+= processor_perflib.o
82
83obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
84
85obj-$(CONFIG_ACPI_APEI)		+= apei/
86