]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
leds: Only descend into leds directory when CONFIG_NEW_LEDS is set
authorAndrew F. Davis <afd@ti.com>
Tue, 21 Jun 2016 12:35:07 +0000 (14:35 +0200)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 27 Jun 2016 06:58:43 +0000 (08:58 +0200)
When CONFIG_NEW_LEDS is not set make will still descend into the leds
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: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/Makefile

index 0b6f3d60193dcc2f2cdfaabe2f37e23a0b8f48a9..6e7d458ac7d4f8953b870b5d5dc1732c12169e51 100644 (file)
@@ -122,7 +122,7 @@ obj-$(CONFIG_CPU_FREQ)              += cpufreq/
 obj-$(CONFIG_CPU_IDLE)         += cpuidle/
 obj-y                          += mmc/
 obj-$(CONFIG_MEMSTICK)         += memstick/
-obj-y                          += leds/
+obj-$(CONFIG_NEW_LEDS)         += leds/
 obj-$(CONFIG_INFINIBAND)       += infiniband/
 obj-$(CONFIG_SGI_SN)           += sn/
 obj-y                          += firmware/