diff mbox

[resend] power: Use subdir-ccflags-* to inherit debug flag

Message ID 1424707728-27716-1-git-send-email-geert+renesas@glider.be (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Geert Uytterhoeven Feb. 23, 2015, 4:08 p.m. UTC
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>
---
 drivers/power/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Sebastian Reichel Feb. 25, 2015, 8:40 p.m. UTC | #1
Hi Geert,

On Mon, Feb 23, 2015 at 05:08:48PM +0100, Geert Uytterhoeven wrote:
> 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>

Thanks, pulled into battery-2.6.git.

-- Sebastian
diff mbox

Patch

diff --git a/drivers/power/Makefile b/drivers/power/Makefile
index 36f9e0d10111f3b6..8a8ff95b99c2d11f 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