Commit:     9b213118fa4b79afe9a2718faca244ac581a96b6
Parent:     7998a731664ac4988b349e70669bac11e3b3a3ac
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 1 13:40:28 2008 +0100
Committer:  Sam Ravnborg <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 23:14:36 2008 +0100

    kbuild: fix installing external modules
    Eric Sandeen <[EMAIL PROTECTED]> reported:
      Installing external modules is supposed to put them in some path
      under /lib/modules/<version>/extra/subdir/, but this change:
      makes them go under /lib/modules/<version>/extrasubdir
     (for example, make M=fs/ext3 modules_install puts ext3.ko in
    This was the case only when specifying a trailing slash to M=..
    Fixed by removing trailing slash if present so
    we correctly match dir part of target.
    Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
    Cc: Eric Sandeen <[EMAIL PROTECTED]>
 scripts/Makefile.modinst |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/Makefile.modinst b/scripts/Makefile.modinst
index f0ff248..efa5d94 100644
--- a/scripts/Makefile.modinst
+++ b/scripts/Makefile.modinst
@@ -21,7 +21,7 @@ quiet_cmd_modules_install = INSTALL $@
 # Modules built outside the kernel source tree go into extra by default
-ext-mod-dir = $(INSTALL_MOD_DIR)$(subst $(KBUILD_EXTMOD),,$(@D))
+ext-mod-dir = $(INSTALL_MOD_DIR)$(subst $(patsubst 
 modinst_dir = $(if $(KBUILD_EXTMOD),$(ext-mod-dir),kernel/$(@D))
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to