xref: /openbmc/linux/drivers/acpi/Makefile (revision 4d387043)
1#
2# Makefile for the Linux ACPI interpreter
3#
4
5export ACPI_CFLAGS
6
7ACPI_CFLAGS	:= -Os
8
9ifdef CONFIG_ACPI_DEBUG
10  ACPI_CFLAGS	+= -DACPI_DEBUG_OUTPUT
11endif
12
13EXTRA_CFLAGS	+= $(ACPI_CFLAGS)
14
15#
16# ACPI Boot-Time Table Parsing
17#
18obj-y				+= tables.o
19obj-$(CONFIG_X86)		+= blacklist.o
20
21#
22# ACPI Core Subsystem (Interpreter)
23#
24obj-y				+= osl.o utils.o reboot.o\
25				   dispatcher/ events/ executer/ hardware/ \
26				   namespace/ parser/ resources/ tables/ \
27				   utilities/
28
29#
30# ACPI Bus and Device Drivers
31#
32processor-objs	+= processor_core.o processor_throttling.o \
33				processor_idle.o processor_thermal.o
34ifdef CONFIG_CPU_FREQ
35processor-objs	+= processor_perflib.o
36endif
37
38obj-y				+= sleep/
39obj-y				+= bus.o glue.o
40obj-y				+= scan.o
41# Keep EC driver first. Initialization of others depend on it.
42obj-$(CONFIG_ACPI_EC)		+= ec.o
43obj-$(CONFIG_ACPI_AC) 		+= ac.o
44obj-$(CONFIG_ACPI_BATTERY)	+= battery.o
45obj-$(CONFIG_ACPI_BUTTON)	+= button.o
46obj-$(CONFIG_ACPI_FAN)		+= fan.o
47obj-$(CONFIG_ACPI_DOCK)		+= dock.o
48obj-$(CONFIG_ACPI_BAY)		+= bay.o
49obj-$(CONFIG_ACPI_VIDEO)	+= video.o
50obj-y				+= pci_root.o pci_link.o pci_irq.o pci_bind.o
51obj-$(CONFIG_ACPI_POWER)	+= power.o
52obj-$(CONFIG_ACPI_PROCESSOR)	+= processor.o
53obj-$(CONFIG_ACPI_CONTAINER)	+= container.o
54obj-$(CONFIG_ACPI_THERMAL)	+= thermal.o
55obj-$(CONFIG_ACPI_SYSTEM)	+= system.o event.o
56obj-$(CONFIG_ACPI_DEBUG)	+= debug.o
57obj-$(CONFIG_ACPI_NUMA)		+= numa.o
58obj-$(CONFIG_ACPI_WMI)		+= wmi.o
59obj-$(CONFIG_ACPI_ASUS)		+= asus_acpi.o
60obj-$(CONFIG_ACPI_TOSHIBA)	+= toshiba_acpi.o
61obj-$(CONFIG_ACPI_HOTPLUG_MEMORY)	+= acpi_memhotplug.o
62obj-$(CONFIG_ACPI_PROCFS_POWER)	+= cm_sbs.o
63obj-$(CONFIG_ACPI_SBS)		+= sbshc.o
64obj-$(CONFIG_ACPI_SBS)		+= sbs.o
65