[lkml]   [2006]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: How to check if kernel sources are installed on a system?

    On Mon, 29 May 2006, Arjan van de Ven wrote:
    > eh dude what are you thinking? Documentation/kbuild very much gives you
    > a FULLY standardized way of doing this. On all distributions.
    > The only tricky part is finding the build tree, for the current kernel
    > that is
    > /lib/modules/`uname -r`/build
    > (as per Linus' decree from like 4 to 5 years ago)
    > for non-current kernels that's a bit more complex, so just ask the user.
    > Once you have that the rest comes for free.

    kbuild is fine for small isolated kernel modules that export no symbols
    (esp. little ones that nobody supports any more or were recently kicked
    out of a kernel), but for building large subsystems of kernel modules
    and multiple interdependent packages that export symbols and headers it
    is rather lacking.

    An, of course, if you want to build kernel modules for 2.4 and 2.6 as
    well, kbuild does not help you.

    Also, while checking for kernel version on the fine kernels
    is quite sufficient, it is next to useless on hacked production distro
    kernels. Therefore, one has to locate configured sources and headers
    to perform checks to adapt to them.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-05-29 09:32    [W:0.020 / U:31.908 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site