Browse Source

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>
Geert Uytterhoeven 10 years ago
parent
commit
213feb51e5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/power/Makefile

+ 1 - 1
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