Skip to content

Commit

Permalink
power: Use subdir-ccflags-* to inherit debug flag
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Sebastian Reichel committed Feb 25, 2015
1 parent 5cd0c76 commit 213feb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 213feb5

Please sign in to comment.