From: Andrew F. Davis Date: Tue, 21 Jun 2016 12:35:07 +0000 (+0200) Subject: leds: Only descend into leds directory when CONFIG_NEW_LEDS is set X-Git-Tag: v4.8-rc1~136^2~5 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=b1ae40a5db6191c42e2e45d726407096f030ee08;p=linux.git leds: Only descend into leds directory when CONFIG_NEW_LEDS is set 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 Signed-off-by: Jacek Anaszewski --- diff --git a/drivers/Makefile b/drivers/Makefile index 0b6f3d60193d..6e7d458ac7d4 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -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/