kernel-exp.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para>
  4. <userinput>yes "" | make config:</userinput> This runs make config and
  5. answers with the default answer to every question the config script asks
  6. the user (it does this by simply doing the equivalent of hitting the
  7. Enter key, thus accepting the default Y and N answers to the questions).
  8. We're not configuring the real kernel here, we just need to have some sort
  9. of configure file created so that we can run make dep next that will
  10. create a few files in $LFS/usr/src/linux/include/linux, like version.h,
  11. among others, that we will need to compile Glibc and other packages later
  12. in chroot.
  13. </para>
  14. <para>
  15. <userinput>make dep:</userinput> make dep checks dependencies and sets
  16. up the dependencies file. We don't really care about the dependency
  17. checks, but what we do care about is that make dep creates those
  18. aforementioned files in $LFS/usr/src/linux/include/linux we will be
  19. needing later on.
  20. </para>
  21. <para>
  22. <userinput>ln -s ../src/linux/include/linux</userinput> and
  23. <userinput>ln -s ../src/linux/include/asm:</userinput> These
  24. commands create the linux and asm symlinks in the $LFS/usr/include
  25. directory that point to the proper directories in the Linux source tree.
  26. Packages that need kernel headers include them with lines like #include
  27. &lt;linux/errno.h&gt;. These paths are relative to the /usr/include
  28. directory so the /usr/include/linux link points to the directory
  29. containing the Linux kernel header files. The same goes for the asm
  30. symlink.
  31. </para>
  32. </sect2>