Results 1 to 4 of 4

Thread: Do i really need the kernel source?

  1. #1
    Join Date
    Jun 2010
    Location
    Loznica Serbia
    Beans
    126
    Distro
    Ubuntu 12.04 Precise Pangolin

    Do i really need the kernel source?

    I'm writing some modules and instructions say that i need the entire source code to compile them, but the modules compile even if i point it to /usr/src/linux-headers-(uname -r) instead of source tree. Why do they say I need the source?
    Windows is not user friendly,it's just user familiar

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Do i really need the kernel source?

    Since you didn't get any responses ....

    If you aren't in a hurry, try it without the source, just the headers, and see if it works. Really, this should work until some dependency in your code fails to locate a library at link time, right?

    It isn't like the kernel source is really all that large by file size for today, though it is pretty large and deep for pure-text files.

    This article http://www.cyberciti.biz/tips/build-...urce-tree.html from 2008 says you don't need the entire source code, just the headers, but that you'll have to edit a makefile. The edit looks minor.

  3. #3
    Join Date
    Nov 2005
    Location
    Sendai, Japan
    Beans
    11,296
    Distro
    Kubuntu

    Re: Do i really need the kernel source?

    That's because normally, the headers are part of the source and are not distributed separately. They are in Debian/Ubuntu, so you only need the headers, not the full source.
    「明後日の夕方には帰ってるからね。」


  4. #4
    Join Date
    Jun 2010
    Location
    Loznica Serbia
    Beans
    126
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Do i really need the kernel source?

    So I guess I could just stick with the headers unless it fails to compile. Thanks!
    Windows is not user friendly,it's just user familiar

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •