kernel-exp.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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>cp -a ../src/linux/include/linux .</userinput> and
  27. <userinput>mkdir asm &amp;&amp; cp -a ../src/linux/include/asm/* .</userinput>:
  28. These commands copy the kernel headers in the
  29. <filename>$LFS/usr/include</filename> directory.
  30. </para>
  31. <para>
  32. <userinput>chown root.root $LFS/usr/include/linux -R </userinput> and
  33. <userinput>chown root.root $LFS/usr/include/asm -R </userinput>:
  34. These commands change the ownership of the
  35. <filename>$LFS/usr/include/linux</filename> and the
  36. <filename>$LFS/usr/include/asm</filename> directories to the user
  37. root and group root.
  38. </para>
  39. </sect2>