| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | <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 <userinput>gcc</userinput> can later find them.</para><para>Prepare for the header installation with:</para><para><screen><userinput>make mrproper</userinput></screen></para><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><para><screen><userinput>make include/linux/version.h</userinput></screen></para><para>Create the platform-specific <filename>include/asm</filename>symlink:</para><para><screen><userinput>make symlinks</userinput></screen></para><para>Install the platform-specific header files:</para><para><screen><userinput>mkdir /stage1/include/asmcp include/asm/* /stage1/include/asmcp -R include/asm-generic /stage1/include</userinput></screen></para><para>Install the cross-platform kernel header files:</para><para><screen><userinput>cp -R include/linux /stage1/include</userinput></screen></para><para>There are a few kernel header files which make use of the<filename>autoconf.h</filename> header file. Since we do not yet configure thekernel, we need to create this file ourselves in order to avoid compilationfailures. Create an empty <filename>autoconf.h</filename> file:</para><para><screen><userinput>touch /stage1/include/linux/autoconf.h</userinput></screen></para></sect2>
 |