]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pinctrl: pass -DDEBUG in subdirs
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 10 Jan 2015 21:47:56 +0000 (22:47 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 10 Jan 2015 21:52:01 +0000 (22:52 +0100)
When drivers are compiled in subdirectories the -DDEBUG flag need
to be passed in the individual Makefiles.

Reported-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Suggested-by: Yingjoe Chen <yingjoe.chen@mediatek.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Makefile

index c030b3db80348478d41a23564db0e078f4ad13f1..c7139ba195fece175674e5ab1c5955cbb467da6e 100644 (file)
@@ -1,6 +1,6 @@
 # generic pinmux support
 
-ccflags-$(CONFIG_DEBUG_PINCTRL)        += -DDEBUG
+subdir-ccflags-$(CONFIG_DEBUG_PINCTRL) += -DDEBUG
 
 obj-$(CONFIG_PINCTRL)          += core.o pinctrl-utils.o
 obj-$(CONFIG_PINMUX)           += pinmux.o