From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andrew F. Davis" Subject: [PATCH v2 0/6] Remove unneeded build directory traversals Date: Thu, 5 Jan 2017 15:01:52 -0600 Message-ID: <20170105210158.14204-1-afd@ti.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+glppe-linuxppc-embedded-2=m.gmane.org@lists.ozlabs.org Sender: "Linuxppc-dev" To: Russell King , Miguel Ojeda Sandonis , Wolfram Sang , Richard Purdie , Benjamin Herrenschmidt , Mauro Carvalho Chehab , Ulf Hansson , Lauro Ramos Venancio , Aloisio Almeida Jr , Samuel Ortiz , Ingo Molnar Cc: linux-pwm@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, "Andrew F . Davis" , linuxppc-dev@lists.ozlabs.org, linux-media@vger.kernel.org List-Id: linux-pwm@vger.kernel.org Hello all, I was building a kernel for x86 and noticed Make still descended into directories like drivers/gpu/drm/hisilicon, this seems kind of odd given nothing will be built here. It looks to be due to some directories being included in obj-y unconditionally instead of only when the relevant CONFIG_ is set. These patches are split by subsystem in-case, for some reason, a file in a directory does need to be built, I believe I have checked for all instances of this, but a quick review from some maintainers would be nice. Thanks, Andrew Changes from v1: - Removed patches already taken by maintainers - Rebased on v4.10-rc1 (no changes needed) Andrew F. Davis (6): pwm: Only descend into pwm directory when CONFIG_PWM is set amba: Only descend into amba directory when CONFIG_ARM_AMBA is set NFC: Only descend into nfc directory when CONFIG_NFC is set macintosh: Only descend into directory when CONFIG_MACINTOSH_DRIVERS is set auxdisplay: Only descend into directory when CONFIG_AUXDISPLAY is set [media] Only descend into directory when CONFIG_MEDIA_SUPPORT is set drivers/Makefile | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) -- 2.11.0