lfs/chapter05/kernel-inst.xml
Gerard Beekmans 017a4f4aa2 Simplified symbolic link creation
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@275 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2001-03-10 04:27:56 +00:00

50 lines
1.3 KiB
XML

<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 &amp;&amp;</userinput>
<userinput>ln -s ../src/linux/include/linux &amp;&amp;</userinput>
<userinput>ln -s ../src/linux/include/asm</userinput>
</literallayout></blockquote>
</sect2>