lkml.org 
[lkml]   [2004]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 5/5] kbuild: external module build doc
    Date
    From
    Sam Ravnborg <sam@ravnborg.org> said:
    > # This is a BitKeeper generated diff -Nru style patch.
    > #
    > # ChangeSet
    > # 2004/06/14 22:21:46+02:00 sam@mars.ravnborg.org

    [...]

    > --- /dev/null Wed Dec 31 16:00:00 196900
    > +++ b/Documentation/kbuild/extmodules.txt 2004-06-14 22:25:21 +02:00
    > @@ -0,0 +1,168 @@
    > +Building external modules
    > +=========================
    > +kbuild offers functionality to build external modules, with the
    > +prerequisite that there is a pre-built kernel avialable with full source.

    No. It should be enough to have run "make modules_prepare".

    > +A subset of the targets available when building the kernel is available
    > +when building an external module.
    > +
    > +
    > +Building the module
    > +-------------------
    > +The command looks like his:
    > +
    > + make -C <path to kernel src> M=`pwd`

    For me, it works with:

    make -C <path to kernel src> SUBDIRS=<path to module source> modules
    # Builds
    make -C <path to kernel src> SUBDIRS=<path to module source> modules_install
    # Installs

    Besides, IMHO this belongs in Documentation/kbuild/modules.txt.
    --
    Dr. Horst H. von Brand User #22616 counter.li.org
    Departamento de Informatica Fono: +56 32 654431
    Universidad Tecnica Federico Santa Maria +56 32 654239
    Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
    -
    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: 2005-03-22 14:03    [W:0.019 / U:61.496 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site