blob: 0d36fa1afef071e820c34c4f60a2768aece03672 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<sect2>
<title>Installation of Linux Kernel</title>
<para>
We won't be compiling a new kernel image yet. We'll do that after we
have finished the installation of the basic system software in this
chapter. But because certain software need the kernel header files, we're
going to unpack the kernel archive now and set it up so that we can
compile package that need the kernel.
</para>
<para>
Create the kernel configuration file by running the following command:
</para>
<blockquote><literallayout>
<userinput>yes "" | make config</userinput>
</literallayout></blockquote>
<para>
Ignore the warning <emphasis>Broken pipe</emphasis> you might see at the
end. Now run the following commands to set up all the dependencies correctly:
</para>
<blockquote><literallayout>
<userinput>make dep</userinput>
</literallayout></blockquote>
<para>
Now that that's done, we need to create the <filename class="symlink">
$LFS/usr/include/linux</filename> and the <filename class="symlink">
$LFS/usr/include/asm</filename> symlinks. Create them by running the
following commands:
</para>
<blockquote><literallayout>
<userinput>cd $LFS/usr/include &&</userinput>
<userinput>ln -s ../src/linux/include/linux linux &&</userinput>
<userinput>ln -s ../src/linux/include/asm asm</userinput>
</literallayout></blockquote>
</sect2>
|