kernel-exp.xml 1.3 KB

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