mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 21:49:13 +00:00
6370fa6cff
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@14 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
50 lines
1.3 KiB
Plaintext
50 lines
1.3 KiB
Plaintext
<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>
|
|
|