kernel-inst.xml 1.0 KB

123456789101112131415161718192021222324
  1. <sect2>
  2. <title>Installation of the Linux Kernel</title>
  3. <para>We won't be compiling a new kernel image yet. We'll do that after we
  4. have finished the installation of the basic system software in this
  5. chapter. But because certain software needs the kernel header files, we're
  6. going to unpack the kernel archive now and set it up so that we can
  7. compile the packages that need the kernel.</para>
  8. <para>The kernel configuration file is created by running the following
  9. command:</para>
  10. <para><screen><userinput>make mrproper &amp;&amp;</userinput>
  11. <userinput>yes "" | make config &amp;&amp;</userinput>
  12. <userinput>make dep &amp;&amp;</userinput>
  13. <userinput>cd $LFS/usr/include &amp;&amp;</userinput>
  14. <userinput>cp -a ../src/linux/include/linux . &amp;&amp;</userinput>
  15. <userinput>chown -R root.root $LFS/usr/include/linux &amp;&amp;</userinput>
  16. <userinput>mkdir asm &amp;&amp;</userinput>
  17. <userinput>cp -a ../src/linux/include/asm/* asm &amp;&amp;</userinput>
  18. <userinput>chown -R root.root $LFS/usr/include/asm</userinput></screen></para>
  19. </sect2>