1 # SPDX-License-Identifier: GPL-2.0
3 ifeq ($(CONFIG_DYNAMIC_DEBUG), y)
4 CFLAGS_swap.o := -DDEBUG
5 CFLAGS_snapshot.o := -DDEBUG
6 CFLAGS_energy_model.o := -DDEBUG
9 KASAN_SANITIZE_snapshot.o := n
12 obj-$(CONFIG_PM) += main.o
13 obj-$(CONFIG_VT_CONSOLE_SLEEP) += console.o
14 obj-$(CONFIG_FREEZER) += process.o
15 obj-$(CONFIG_SUSPEND) += suspend.o
16 obj-$(CONFIG_PM_TEST_SUSPEND) += suspend_test.o
17 obj-$(CONFIG_HIBERNATION) += hibernate.o snapshot.o swap.o
18 obj-$(CONFIG_HIBERNATION_SNAPSHOT_DEV) += user.o
19 obj-$(CONFIG_PM_AUTOSLEEP) += autosleep.o
20 obj-$(CONFIG_PM_WAKELOCKS) += wakelock.o
22 obj-$(CONFIG_MAGIC_SYSRQ) += poweroff.o
24 obj-$(CONFIG_ENERGY_MODEL) += energy_model.o