| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 | <sect1 id="ch-tools-kernel-headers"><title>Installing Linux-&kernel-version; headers</title><?dbhtml filename="kernel-headers.html" dir="chapter05"?><screen>&buildtime; &kernel-time-headers;&diskspace; &kernel-compsize-headers;</screen><sect2><title> </title><para> </para></sect2><sect2><title>Installation of the kernel headers</title><para>As some packages need to refer to the kernel header files, we're goingto unpack the kernel archive now, set it up, and copy the required files to aplace where <command>gcc</command> can later find them.</para><para>Prepare for the header installation with:</para><screen><userinput>make mrproper</userinput></screen><para>This ensures that the kernel tree is absolutely clean. The kernel teamrecommends that this command be issued prior to <emphasis>each</emphasis> kernelcompilation. You shouldn't rely on the source tree being clean afteruntarring.</para><para>Create the <filename>include/linux/version.h</filename> file:</para><screen><userinput>make include/linux/version.h</userinput></screen><para>Create the platform-specific <filename>include/asm</filename>symlink:</para><screen><userinput>make symlinks</userinput></screen><para>Install the platform-specific header files:</para><screen><userinput>mkdir /tools/include/asmcp include/asm/* /tools/include/asmcp -R include/asm-generic /tools/include</userinput></screen><para>Install the cross-platform kernel header files:</para><screen><userinput>cp -R include/linux /tools/include</userinput></screen></sect2></sect1>
 |