2002-05-25 01:21:12 +01:00
|
|
|
<sect2>
|
|
|
|
<title>Command explanations</title>
|
|
|
|
|
2002-09-22 15:22:43 +01:00
|
|
|
<para><userinput>ln -s /static/bin/pwd /bin/pwd</userinput>: In the kernel
|
|
|
|
source, the path to the <filename>pwd</filename> program is hard-wired as
|
|
|
|
<filename>/bin/pwd</filename>, so we create a temporary symlink to account
|
|
|
|
for that. At the end we remove it again.</para>
|
2002-05-25 01:21:12 +01:00
|
|
|
|
2002-09-22 15:22:43 +01:00
|
|
|
<para><userinput>make mrproper</userinput>: This ensures that the kernel
|
|
|
|
tree is absolutely clean. The kernel team recommends that this command be
|
2002-09-28 22:08:29 +01:00
|
|
|
issued prior to <emphasis>each</emphasis> kernel compilation and that you
|
2002-09-22 15:22:43 +01:00
|
|
|
shouldn't rely on the source tree being clean after untarring.</para>
|
2002-05-25 01:21:12 +01:00
|
|
|
|
|
|
|
<para><userinput>make include/linux/version.h</userinput> and
|
|
|
|
<userinput>make symlinks</userinput>: This creates the
|
2002-09-22 15:22:43 +01:00
|
|
|
<filename>include/linux/version.h</filename> file and the platform-specific
|
|
|
|
<filename class="symlink">include/asm</filename> symlink.</para>
|
2002-05-25 01:21:12 +01:00
|
|
|
|
2002-05-26 02:07:46 +01:00
|
|
|
<para><userinput>mkdir /usr/include/asm</userinput>
|
2002-08-08 18:29:45 +01:00
|
|
|
, <userinput>cp include/asm/* /usr/include/asm</userinput> and
|
2002-09-22 15:22:43 +01:00
|
|
|
<userinput>cp -R include/asm-generic /usr/include</userinput>:
|
|
|
|
These commands copy the platform-specific assembler kernel header files to
|
2002-08-08 18:29:45 +01:00
|
|
|
<filename class="directory">/usr/include/asm</filename> and <filename
|
2002-09-22 15:22:43 +01:00
|
|
|
class="directory">/usr/include/asm-generic</filename>.</para>
|
2002-05-25 01:21:12 +01:00
|
|
|
|
2002-05-26 02:07:46 +01:00
|
|
|
<para><userinput>cp -R include/linux /usr/include</userinput>:
|
2002-05-25 01:21:12 +01:00
|
|
|
This command copies the cross-platform kernel header files to
|
2002-09-22 15:22:43 +01:00
|
|
|
<filename>/usr/include</filename>.</para>
|
2002-05-25 01:21:12 +01:00
|
|
|
|
2002-09-22 15:22:43 +01:00
|
|
|
<para><userinput>touch /usr/include/linux/autoconf.h</userinput>: This
|
|
|
|
creates an empty <filename>autoconf.h</filename> file. As we do not yet
|
|
|
|
configure the kernel, we have to create this file ourselves for those few
|
|
|
|
kernel header files that make use of it, to avoid compilation failures.</para>
|
2002-05-25 01:21:12 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|