summaryrefslogtreecommitdiffstats
path: root/drivers/Makefile
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2016-06-13 15:02:00 -0500
committerLinus Walleij <linus.walleij@linaro.org>2016-06-14 08:58:06 +0200
commit6b891a2647337554f4b5cdff98d843f5e25b70af (patch)
treeea8dd62750e472f076be50950c44ed8edd149d96 /drivers/Makefile
parent3a0000f0cabba5e6e1d61e969250fc31e33f18bc (diff)
downloadlinux-6b891a2647337554f4b5cdff98d843f5e25b70af.tar.gz
linux-6b891a2647337554f4b5cdff98d843f5e25b70af.tar.bz2
linux-6b891a2647337554f4b5cdff98d843f5e25b70af.zip
gpio: Only descend into gpio directory when CONFIG_GPIOLIB is set
When CONFIG_GPIOLIB is not set make will still descend into the gpio directory but nothing will be built. This produces unneeded build artifacts and messages in addition to slowing the build. Fix this here. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/Makefile')
-rw-r--r--drivers/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/Makefile b/drivers/Makefile
index 0b6f3d60193d..50f6131430e8 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -12,7 +12,7 @@ obj-$(CONFIG_GENERIC_PHY) += phy/
# GPIO must come after pinctrl as gpios may need to mux pins etc
obj-$(CONFIG_PINCTRL) += pinctrl/
-obj-y += gpio/
+obj-$(CONFIG_GPIOLIB) += gpio/
obj-y += pwm/
obj-$(CONFIG_PCI) += pci/
obj-$(CONFIG_PARISC) += parisc/