xref: /openbmc/linux/drivers/acpi/Makefile (revision 046d9ce6)
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# sleep related files
25acpi-y				+= wakeup.o
26acpi-y				+= sleep.o
27acpi-$(CONFIG_ACPI_SLEEP)	+= proc.o
28
29
30#
31# ACPI Bus and Device Drivers
32#
33acpi-y				+= bus.o glue.o
34acpi-y				+= scan.o
35acpi-y				+= resource.o
36acpi-y				+= processor_core.o
37acpi-y				+= ec.o
38acpi-$(CONFIG_ACPI_DOCK)	+= dock.o
39acpi-y				+= pci_root.o pci_link.o pci_irq.o pci_bind.o
40acpi-y				+= acpi_platform.o
41acpi-y				+= power.o
42acpi-y				+= event.o
43acpi-y				+= sysfs.o
44acpi-$(CONFIG_DEBUG_FS)		+= debugfs.o
45acpi-$(CONFIG_ACPI_NUMA)	+= numa.o
46acpi-$(CONFIG_ACPI_PROCFS_POWER) += cm_sbs.o
47ifdef CONFIG_ACPI_VIDEO
48acpi-y				+= video_detect.o
49endif
50
51# These are (potentially) separate modules
52
53# IPMI may be used by other drivers, so it has to initialise before them
54obj-$(CONFIG_ACPI_IPMI)		+= acpi_ipmi.o
55
56obj-$(CONFIG_ACPI_AC) 		+= ac.o
57obj-$(CONFIG_ACPI_BUTTON)	+= button.o
58obj-$(CONFIG_ACPI_FAN)		+= fan.o
59obj-$(CONFIG_ACPI_VIDEO)	+= video.o
60obj-$(CONFIG_ACPI_PCI_SLOT)	+= pci_slot.o
61obj-$(CONFIG_ACPI_PROCESSOR)	+= processor.o
62obj-$(CONFIG_ACPI_CONTAINER)	+= container.o
63obj-$(CONFIG_ACPI_THERMAL)	+= thermal.o
64obj-$(CONFIG_ACPI_HOTPLUG_MEMORY) += acpi_memhotplug.o
65obj-$(CONFIG_ACPI_BATTERY)	+= battery.o
66obj-$(CONFIG_ACPI_SBS)		+= sbshc.o
67obj-$(CONFIG_ACPI_SBS)		+= sbs.o
68obj-$(CONFIG_ACPI_HED)		+= hed.o
69obj-$(CONFIG_ACPI_EC_DEBUGFS)	+= ec_sys.o
70obj-$(CONFIG_ACPI_CUSTOM_METHOD)+= custom_method.o
71obj-$(CONFIG_ACPI_BGRT)		+= bgrt.o
72
73# processor has its own "processor." module_param namespace
74processor-y			:= processor_driver.o processor_throttling.o
75processor-y			+= processor_idle.o processor_thermal.o
76processor-$(CONFIG_CPU_FREQ)	+= processor_perflib.o
77
78obj-$(CONFIG_ACPI_PROCESSOR_AGGREGATOR) += acpi_pad.o
79
80obj-$(CONFIG_ACPI_APEI)		+= apei/
81