lkml.org 
[lkml]   [2006]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] make: add modules_update target
    On Sat, Apr 15, 2006 at 11:02:08AM -0400, Theodore Ts'o wrote:
    > On Sat, Apr 15, 2006 at 10:40:58AM +0200, Sam Ravnborg wrote:
    > > The problem to be solved is the long time it takes to do
    > > "make modules_install" when working on a single module.
    > > Instead of bringing in more or less complex solutions what about
    > > extending "make dir/module.ko" to include the installation of the
    > > module.
    > >
    > > Something like:
    > > "make MI=1 dir/module.ko"
    > > where MI=1 tells us to install the said module.
    >
    > Um, wouldn't that imply that either (a) the compile is being done as
    > root, or (b) the /lib/modules/* is writeable by a non-root userid? I
    > suppose the install command could be prefixed by sudo, but that seems
    > awkward (and not everyone uses sudo).

    kbuild has support for the above scenario already - I just forgot.
    Say you are hacking ext3.
    Do a successfull make and install all modules.
    Manually remove the ext3 module from /lib/modules/...
    And use the external module support in kbuild like this:

    # Got to relevant directory
    $> cd fs/ext3

    # To build the module:
    $> make -C ../.. M=`pwd`

    # To install the module:
    $> make -C ../.. M=`pwd` modules_install

    Sam
    -
    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/

    \
     
     \ /
      Last update: 2006-04-16 20:28    [W:0.020 / U:0.096 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site