2003-05-02 19:20:20 +01:00
|
|
|
<sect2><title> </title><para> </para></sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of the kernel headers</title>
|
|
|
|
|
2003-06-03 23:25:25 +01:00
|
|
|
<para>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 <userinput>gcc</userinput> can later find them.</para>
|
|
|
|
|
|
|
|
<para>Prepare for the header installation with:</para>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
|
|
|
<para><screen><userinput>make mrproper</userinput></screen></para>
|
|
|
|
|
|
|
|
<para>This ensures that the kernel tree is absolutely clean. The kernel team
|
|
|
|
recommends that this command be issued prior to <emphasis>each</emphasis> kernel
|
|
|
|
compilation. You shouldn't rely on the source tree being clean after
|
|
|
|
untarring.</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>
|
|
|
|
|
2003-06-03 23:25:25 +01:00
|
|
|
<para>Install the platform-specific header files:</para>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
2003-09-02 23:03:51 +01:00
|
|
|
<para><screen><userinput>mkdir /tools/include/asm
|
|
|
|
cp include/asm/* /tools/include/asm
|
|
|
|
cp -R include/asm-generic /tools/include</userinput></screen></para>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
|
|
|
<para>Install the cross-platform kernel header files:</para>
|
|
|
|
|
2003-09-02 23:03:51 +01:00
|
|
|
<para><screen><userinput>cp -R include/linux /tools/include</userinput></screen></para>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
|
|
|
<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 the
|
|
|
|
kernel, we need to create this file ourselves in order to avoid compilation
|
|
|
|
failures. Create an empty <filename>autoconf.h</filename> file:</para>
|
|
|
|
|
2003-09-02 23:03:51 +01:00
|
|
|
<para><screen><userinput>touch /tools/include/linux/autoconf.h</userinput></screen></para>
|
2003-05-02 19:20:20 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|