]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
kbuild: fix installing external modules
authorSam Ravnborg <sam@ravnborg.org>
Tue, 1 Jan 2008 12:40:28 +0000 (13:40 +0100)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 28 Jan 2008 22:14:36 +0000 (23:14 +0100)
commit9b213118fa4b79afe9a2718faca244ac581a96b6
tree4d7dc9875a3d64b1da47ee2d8b95876791c6c15c
parent7998a731664ac4988b349e70669bac11e3b3a3ac
kbuild: fix installing external modules

Eric Sandeen <sandeen@redhat.com> reported:
  Installing external modules is supposed to put them in some path
  under /lib/modules/<version>/extra/subdir/, but this change:
  http://linux.bkbits.net:8080/linux-2.6/?PAGE=cset&REV=1.1982.9.23
  makes them go under /lib/modules/<version>/extrasubdir

 (for example, make M=fs/ext3 modules_install puts ext3.ko in
 /lib/modules/<version>/extrafs/ext3.ko)

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 <sam@ravnborg.org>
Cc: Eric Sandeen <sandeen@redhat.com>
scripts/Makefile.modinst