Installing Linux-&kernel-version; headers
&buildtime; &kernel-time-headers;
&diskspace; &kernel-compsize-headers;
Installation of the kernel headers
As some packages need to refer to the kernel header files, we're going
to unpack the kernel archive now, set it up, and copy the required files to a
place where gcc can later find them.
Prepare for the header installation with:
make mrproper
This ensures that the kernel tree is absolutely clean. The kernel team
recommends that this command be issued prior to each
kernel compilation. You shouldn't rely on the source tree being clean after
untarring.
Create the include/linux/version.h file:
make include/linux/version.h
Create the platform-specific include/asm
symlink:
make symlinks
Install the platform-specific header files:
mkdir /tools/include/asm
cp include/asm/* /tools/include/asm
cp -R include/asm-generic /tools/include
And finally install the cross-platform kernel header files:
cp -R include/linux /tools/include