LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Installing kernel header files for old kernel (http://www.linuxquestions.org/questions/linux-from-scratch-13/installing-kernel-header-files-for-old-kernel-613388/)

skibud2 01-13-2008 11:26 PM

Installing kernel header files for old kernel
 
I am using the 2.6.10 version of the kernel. Is there a good way to install the kernel headers without doing a manual copy? Later kernels have the make headers_install option. I know I can download an RPM, but I was hoping that someone made a script or something :).

Thanks

gilead 01-14-2008 12:11 AM

I take it you're not doing an LFS (Linux From Scratch) build? There are instructions on downloading kernel and kernel header sources as well as installing them in the LFS docs.

If you're modifying another distribution and you're sure you need to modify the headers (searching here will reveal plenty of discussion on when this is really necessary), have a look in a later kernel at what the headers_install target does. As far as I know, most distros ship the headers that libc was compiled with and anything else you'll have to do manually.

skibud2 01-14-2008 12:31 AM

I was doing a CLFS build for an older kernel (different than the one in the instructions). I was trying to build glibc with older kernel headers. It turns out after reading the glibc documents, they recommend build glibc with the latest kernel headers even if you are running an older kernel (kind of interesting). Anyway, I am all set now.


All times are GMT -5. The time now is 09:13 AM.