[6370fa6] | 1 | <sect2>
|
---|
| 2 | <title>Installation of Linux Kernel</title>
|
---|
| 3 |
|
---|
| 4 | <para>
|
---|
| 5 | We won't be compiling a new kernel image yet. We'll do that after we
|
---|
| 6 | have finished the installation of the basic system software in this
|
---|
| 7 | chapter. But because certain software need the kernel header files, we're
|
---|
| 8 | going to unpack the kernel archive now and set it up so that we can
|
---|
| 9 | compile package that need the kernel.
|
---|
| 10 | </para>
|
---|
| 11 |
|
---|
| 12 | <para>
|
---|
[137bd50] | 13 | The kernel configuration file is created by running the following command:
|
---|
[6370fa6] | 14 | </para>
|
---|
| 15 |
|
---|
| 16 | <blockquote><literallayout>
|
---|
[05cfc7e3] | 17 | <userinput>make mrproper &&</userinput>
|
---|
[6d90100] | 18 | <userinput>yes "" | make config &&</userinput>
|
---|
[718f6b1] | 19 | <userinput>make dep &&</userinput>
|
---|
[6370fa6] | 20 | <userinput>cd $LFS/usr/include &&</userinput>
|
---|
[017a4f4] | 21 | <userinput>ln -s ../src/linux/include/linux &&</userinput>
|
---|
| 22 | <userinput>ln -s ../src/linux/include/asm</userinput>
|
---|
[6370fa6] | 23 | </literallayout></blockquote>
|
---|
| 24 |
|
---|
| 25 | </sect2>
|
---|
| 26 |
|
---|
[5aa8b71] | 27 | <sect2>
|
---|
| 28 | <title>FHS compliance notes</title>
|
---|
| 29 |
|
---|
| 30 | <para>
|
---|
| 31 | According to the FHS, the /usr/include/linux and /usr/include/asm should be
|
---|
| 32 | actual directories, not symbolic links to the ones belonging to the current
|
---|
| 33 | kernel. The major advantage is that programs will compile with the headers glibc
|
---|
| 34 | was compiled with, and this may prevent some compiling hell. Until now, in all
|
---|
| 35 | of LFS' history, no compiling problem has been reported by using symlinks. So if
|
---|
| 36 | you're tight on space, we recommend using symlinks. But if you want to be FHS
|
---|
| 37 | compliant, replace the two last lines from the commands above with those:
|
---|
| 38 | </para>
|
---|
| 39 |
|
---|
| 40 | <blockquote><literallayout>
|
---|
| 41 | <userinput>cp -r ../src/linux/include/linux . &&</userinput>
|
---|
| 42 | <userinput>cp -r ../src/linux/include/asm .</userinput>
|
---|
| 43 | </literallayout></blockquote>
|
---|
| 44 |
|
---|
| 45 | </sect2>
|
---|
| 46 |
|
---|