kernel-exp.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <sect2>
  2. <title>Command explanations</title>
  3. <para><userinput>ln -s /static/bin/pwd /bin/pwd</userinput>: The kernel
  4. source hard-wires the path to <filename>pwd</filename> to be
  5. <filename>/bin/pwd</filename> so we create a temporary symlink to deal with
  6. it.</para>
  7. <para><userinput>make mrproper:</userinput> This will ensure that the kernel
  8. tree is absolutely clean. We do this because the kernel team recommend
  9. that this is done prior to <emphasis>each</emphasis> kernel compilation,
  10. and that we shouldn't rely on the source tree being automatically clean
  11. after untarring.</para>
  12. <para><userinput>make include/linux/version.h</userinput> and
  13. <userinput>make symlinks</userinput>: This creates the
  14. <filename>include/linux/version.h</filename>, as well as the <filename
  15. class="symlink">include/asm</filename> symlink.</para>
  16. <para><userinput>mkdir /usr/include/asm</userinput>
  17. and <userinput>cp include/asm/* /usr/include/asm</userinput>:
  18. This copies the platform-specific assembler kernel header files to
  19. <filename>/usr/include/asm</filename></para>
  20. <para><userinput>cp -R include/linux /usr/include</userinput>:
  21. This command copies the cross-platform kernel header files to
  22. <filename>/usr/include</filename></para>
  23. <para><userinput>touch /usr/include/linux/autoconf.h</userinput>: Some
  24. kernel header files include this <filename>autoconf.h</filename> file, but
  25. outside the Linux source tree, that file has no meaning so we just create
  26. an empty one so we don't get compile errors whenever it happens to be a
  27. dependency of another kernel header file.</para>
  28. </sect2>