aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/power/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/power/Makefile')
-rw-r--r--drivers/base/power/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/base/power/Makefile b/drivers/base/power/Makefile
index a803733c839..911208b8925 100644
--- a/drivers/base/power/Makefile
+++ b/drivers/base/power/Makefile
@@ -1,10 +1,6 @@
-obj-y := shutdown.o
-obj-$(CONFIG_PM_SLEEP) += main.o sysfs.o
-obj-$(CONFIG_PM_TRACE) += trace.o
+obj-$(CONFIG_PM) += sysfs.o
+obj-$(CONFIG_PM_SLEEP) += main.o
+obj-$(CONFIG_PM_TRACE_RTC) += trace.o
-ifeq ($(CONFIG_DEBUG_DRIVER),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
-ifeq ($(CONFIG_PM_VERBOSE),y)
-EXTRA_CFLAGS += -DDEBUG
-endif
+ccflags-$(CONFIG_DEBUG_DRIVER) := -DDEBUG
+ccflags-$(CONFIG_PM_VERBOSE) += -DDEBUG