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 <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
Geert Uytterhoeven 2015-02-23 17:08:48 +01:00 • committed by Sebastian Reichel
commit 213feb51e5

View 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