From: Geert Uytterhoeven Date: Mon, 23 Feb 2015 16:08:48 +0000 (+0100) Subject: power: Use subdir-ccflags-* to inherit debug flag X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=213feb51e5f5bc721fb1b2515a7493559c1a5112;p=linux-beck.git 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 Signed-off-by: Sebastian Reichel --- 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