power: Use subdir-ccflags-* to inherit debug flag
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 23 Feb 2015 16:08:48 +0000 (17:08 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 25 Feb 2015 20:38:22 +0000 (21:38 +0100)
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>
drivers/power/Makefile

index 2888bb0..7b604f4 100644 (file)
@@ -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