-   Linux From Scratch (
-   -   Installing kernel header files for old kernel (

skibud2 01-13-2008 10: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 :).


gilead 01-13-2008 11:11 PM

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-13-2008 11:31 PM

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 07:41 PM.