summaryrefslogtreecommitdiffstats
path: root/drivers/power/Makefile
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-02-23 17:08:48 +0100
committerSebastian Reichel <sre@kernel.org>2015-02-25 21:38:22 +0100
commit213feb51e5f5bc721fb1b2515a7493559c1a5112 (patch)
tree3131b69327cdeabc3d495d65ae82acd30329acac /drivers/power/Makefile
parent5cd0c76d69a1a4bef3a84c3177216b227a4d2448 (diff)
downloadlinux-213feb51e5f5bc721fb1b2515a7493559c1a5112.tar.bz2
power: Use subdir-ccflags-* to inherit debug flag
Use subdir-ccflags-* instead of ccflags-* to inherit the debug settings from Kconfig when traversing subdirectories. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/Makefile')
-rw-r--r--drivers/power/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/Makefile b/drivers/power/Makefile
index 2888bb0acadd..7b604f4926fc 100644
--- a/drivers/power/Makefile
+++ b/drivers/power/Makefile
@@ -1,4 +1,4 @@
-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
+subdir-ccflags-$(CONFIG_POWER_SUPPLY_DEBUG) := -DDEBUG
power_supply-y := power_supply_core.o
power_supply-$(CONFIG_SYSFS) += power_supply_sysfs.o