xref: /openbmc/linux/drivers/acpi/Makefile (revision 0f66af53)
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				+= osl.o utils.o reboot.o\
18					acpica/
19
20# sleep related files
21obj-y				+= wakeup.o
22obj-y				+= sleep.o
23obj-$(CONFIG_ACPI_SLEEP)	+= proc.o
24
25
26#
27# ACPI Bus and Device Drivers
28#
29processor-objs	+= processor_core.o processor_throttling.o \
30				processor_idle.o processor_thermal.o
31ifdef CONFIG_CPU_FREQ
32processor-objs	+= processor_perflib.o
33endif
34
35obj-y				+= bus.o glue.o
36obj-y				+= scan.o
37# Keep EC driver first. Initialization of others depend on it.
38obj-y				+= ec.o
39obj-$(CONFIG_ACPI_AC) 		+= ac.o
40obj-$(CONFIG_ACPI_BUTTON)	+= button.o
41obj-$(CONFIG_ACPI_FAN)		+= fan.o
42obj-$(CONFIG_ACPI_DOCK)		+= dock.o
43obj-$(CONFIG_ACPI_VIDEO)	+= video.o
44ifdef CONFIG_ACPI_VIDEO
45obj-y				+= video_detect.o
46endif
47
48obj-y				+= pci_root.o pci_link.o pci_irq.o pci_bind.o
49obj-$(CONFIG_ACPI_PCI_SLOT)	+= pci_slot.o
50obj-$(CONFIG_ACPI_PROCESSOR)	+= processor.o
51obj-$(CONFIG_ACPI_CONTAINER)	+= container.o
52obj-$(CONFIG_ACPI_THERMAL)	+= thermal.o
53obj-y				+= power.o
54obj-y				+= system.o event.o
55obj-$(CONFIG_ACPI_DEBUG)	+= debug.o
56obj-$(CONFIG_ACPI_NUMA)		+= numa.o
57obj-$(CONFIG_ACPI_HOTPLUG_MEMORY)	+= acpi_memhotplug.o
58obj-$(CONFIG_ACPI_PROCFS_POWER)	+= cm_sbs.o
59obj-$(CONFIG_ACPI_BATTERY)	+= battery.o
60obj-$(CONFIG_ACPI_SBS)		+= sbshc.o
61obj-$(CONFIG_ACPI_SBS)		+= sbs.o
62