1 | <sect2>
|
---|
2 | <title>Command explanations</title>
|
---|
3 |
|
---|
4 | <para><userinput>ln -s /static/bin/pwd /bin/pwd</userinput>: The kernel
|
---|
5 | source hard-wires the path to <filename>pwd</filename> to be
|
---|
6 | <filename>/bin/pwd</filename> so we create a temporary symlink to deal with
|
---|
7 | it.</para>
|
---|
8 |
|
---|
9 | <para><userinput>make mrproper:</userinput> This will ensure that the kernel
|
---|
10 | tree is absolutely clean. We do this because the kernel team recommend
|
---|
11 | that this is done prior to <emphasis>each</emphasis> kernel compilation,
|
---|
12 | and that we shouldn't rely on the source tree being automatically clean
|
---|
13 | after untarring.</para>
|
---|
14 |
|
---|
15 | <para><userinput>make include/linux/version.h</userinput> and
|
---|
16 | <userinput>make symlinks</userinput>: This creates the
|
---|
17 | <filename>include/linux/version.h</filename>, as well as the <filename
|
---|
18 | class="symlink">include/asm</filename> symlink.</para>
|
---|
19 |
|
---|
20 | <para><userinput>mkdir /usr/include/asm</userinput>
|
---|
21 | , <userinput>cp include/asm/* /usr/include/asm</userinput> and
|
---|
22 | <userinput>cp include/asm-generic /usr/include</userinput>:
|
---|
23 | This copies the platform-specific assembler kernel header files to
|
---|
24 | <filename class="directory">/usr/include/asm</filename> and <filename
|
---|
25 | class="directory">/usr/include/asm-generic</filename></para>
|
---|
26 |
|
---|
27 | <para><userinput>cp -R include/linux /usr/include</userinput>:
|
---|
28 | This command copies the cross-platform kernel header files to
|
---|
29 | <filename>/usr/include</filename></para>
|
---|
30 |
|
---|
31 | <para><userinput>touch /usr/include/linux/autoconf.h</userinput>: Some
|
---|
32 | kernel header files include this <filename>autoconf.h</filename> file, but
|
---|
33 | outside the Linux source tree, that file has no meaning so we just create
|
---|
34 | an empty one so we don't get compile errors whenever it happens to be a
|
---|
35 | dependency of another kernel header file.</para>
|
---|
36 |
|
---|
37 | </sect2>
|
---|
38 |
|
---|