Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757555AbZARVR1 (ORCPT ); Sun, 18 Jan 2009 16:17:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755979AbZARVRT (ORCPT ); Sun, 18 Jan 2009 16:17:19 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:53543 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755204AbZARVRT (ORCPT ); Sun, 18 Jan 2009 16:17:19 -0500 Date: Sun, 18 Jan 2009 22:17:16 +0100 (CET) From: Jan Engelhardt To: sam@ravnborg.org cc: Linux Kernel Mailing List Subject: kbuild: install to a single directory Message-ID: User-Agent: Alpine 2.00 (LSU 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1718 Lines: 48 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 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 --- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/