1 | <sect2>
|
---|
2 | <title>Command explanations</title>
|
---|
3 |
|
---|
4 | <para><userinput>ln -s /static/bin/pwd /bin/pwd</userinput>: In the kernel
|
---|
5 | source, the path to the <filename>pwd</filename> program is hard-wired as
|
---|
6 | <filename>/bin/pwd</filename>, so we create a temporary symlink to account
|
---|
7 | for that. At the end we remove it again.</para>
|
---|
8 |
|
---|
9 | <para><userinput>make mrproper</userinput>: This ensures that the kernel
|
---|
10 | tree is absolutely clean. The kernel team recommends that this command be
|
---|
11 | issued prior to <emphasis>each</emphasis> kernel compilation and that you
|
---|
12 | shouldn't rely on the source tree being clean after untarring.</para>
|
---|
13 |
|
---|
14 | <para><userinput>make include/linux/version.h</userinput> and
|
---|
15 | <userinput>make symlinks</userinput>: This creates the
|
---|
16 | <filename>include/linux/version.h</filename> file and the platform-specific
|
---|
17 | <filename class="symlink">include/asm</filename> symlink.</para>
|
---|
18 |
|
---|
19 | <para><userinput>mkdir /usr/include/asm</userinput>
|
---|
20 | , <userinput>cp include/asm/* /usr/include/asm</userinput> and
|
---|
21 | <userinput>cp -R include/asm-generic /usr/include</userinput>:
|
---|
22 | These commands copy the platform-specific assembler kernel header files to
|
---|
23 | <filename class="directory">/usr/include/asm</filename> and <filename
|
---|
24 | class="directory">/usr/include/asm-generic</filename>.</para>
|
---|
25 |
|
---|
26 | <para><userinput>cp -R include/linux /usr/include</userinput>:
|
---|
27 | This command copies the cross-platform kernel header files to
|
---|
28 | <filename>/usr/include</filename>.</para>
|
---|
29 |
|
---|
30 | <para><userinput>touch /usr/include/linux/autoconf.h</userinput>: This
|
---|
31 | creates an empty <filename>autoconf.h</filename> file. As we do not yet
|
---|
32 | configure the kernel, we have to create this file ourselves for those few
|
---|
33 | kernel header files that make use of it, to avoid compilation failures.</para>
|
---|
34 |
|
---|
35 | </sect2>
|
---|
36 |
|
---|