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 c030b3d..c7139ba 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