Skip to content

Remove unneeded build directory traversals

Andrew F. Davis linux-pwm linuxppc-dev 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest5 patches 0 repliesNew
  2. v37 patches 4 repliesSuperseded
  3. v26 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v112 patches5 repliesApplied

Changes in v4 from the cover letter

- Removed patches already taken by maintainers
- Rebased on v4.15-rc1 (no changes needed)

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pwm: Only descend into pwm directory when CONFIG_PWM is setdrivers/Makefile+1 -10 replies
2/5amba: Only descend into amba directory when CONFIG_ARM_AMBA is setdrivers/Makefile+1 -10 replies
3/5NFC: Only descend into nfc directory when CONFIG_NFC is setdrivers/Makefile+5 -10 replies
4/5macintosh: Only descend into directory when CONFIG_MACINTOSH_DRIVERS is setdrivers/Makefile+1 -10 replies
5/5auxdisplay: Only descend into directory when CONFIG_AUXDISPLAY is setdrivers/Makefile+1 -10 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchMichael Ellerman
1/5
2/5
3/5
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/5] Remove unneeded build directory traversals

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 v3:
- Removed patches already taken by maintainers
- Rebased on v4.15-rc1 (no changes needed)

Changes from v2:
- Removed patches that would not work
- Rebased on v4.11-rc1 (no changes needed)

Changes from v1:
- Removed patches already taken by maintainers
- Rebased on v4.10-rc1 (no changes needed)

Andrew F. Davis (5):
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

 drivers/Makefile | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
Signature · 1 line
2.15.0