kernel source, /lib/modules and symlinks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  can someone explain how the kernel source, header files and /lib/modules
directories work together?

  i recall reading something about this once upon a time, but as i recall,
one is never supposed to refer to the kernel source directory directly, as
in /usr/src/linux-???.

  instead (at least recently), the *official* way to do this is to refer
to the symlink /lib/modules/2.5.xx/build, which is always created via
"make modules_install" to point back to the kernel source/build directory
itself.

  so (and i'm not even sure how to ask the question properly), what
is the overall structure of how the kernel source and build and
modules and header files fit together?

rday,
founding member of the international organization of ADD-afflicted ... 
  hey, let's go ride our bikes!

p.s.  the above is in aid of a current discussion on the FHS mailing
list regarding the appropriate location for the kernel source/build
directory, and why /usr/src is not a great idea.

one aspect of that discussion is the necessity for some of the
header files in the kernel source directory.  i'm wondering if
this is addressed either in the upcoming FHS or in the LSB docs.
  

--

Robert P. J. Day
Eno River Technologies
Unix, Linux and Open Source training
Waterloo, Ontario

www.enoriver.com




[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux