kbuild: install to a single directory

From: Jan Engelhardt
Date: Sun Jan 18 2009 - 16:17:28 EST


Hi,



This proposed change will collect all kernel modules in the
single directory, e.g. /lib/modules/2.6.29-rc2/kernel/, without
any further directory structure. About 475 inodes (with
almost-allmodconfig) less are used, which should result
in faster directory traversal (less seeks).

---8<---
parent 53c67f8b25a2e6b8b69ac235372cdda036070cfc (v2.6.29-rc2-22-g53c67f8)
commit 5e61b62737a2184742c4d63c9cdd6c5450ec4034
Author: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date: Sat Jan 17 20:58:58 2009 +0100

kbuild: install to a single directory

Most of the directory hierarchy in /lib/modules/$(uname -r)/kernel/
seems redundant to me, so just collapse it all and stuff all files in
that single directory. No module name can be used twice anyway, so no
collision will occur.

Signed-off-by: Jan Engelhardt <jengelh@xxxxxxxxxx>
---
scripts/Makefile.modinst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst
index 4c7c163..5b34e82 100644
--- a/scripts/Makefile.modinst
+++ b/scripts/Makefile.modinst
@@ -25,7 +25,7 @@ quiet_cmd_modules_install = INSTALL $@
INSTALL_MOD_DIR ?= extra
ext-mod-dir = $(INSTALL_MOD_DIR)$(subst $(patsubst %/,%,$(KBUILD_EXTMOD)),,$(@D))

-modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D))
+modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/)

$(modules):
$(call cmd,modules_install,$(MODLIB)/$(modinst_dir))
--
# Created with git-export-patch
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/