kernel-exp.xml 1.6 KB

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