kernel-exp.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. , <userinput>cp include/asm/* /usr/include/asm</userinput> and
  18. <userinput>cp include/asm-generic /usr/include</userinput>:
  19. This copies the platform-specific assembler kernel header files to
  20. <filename class="directory">/usr/include/asm</filename> and <filename
  21. class="directory">/usr/include/asm-generic</filename></para>
  22. <para><userinput>cp -R include/linux /usr/include</userinput>:
  23. This command copies the cross-platform kernel header files to
  24. <filename>/usr/include</filename></para>
  25. <para><userinput>touch /usr/include/linux/autoconf.h</userinput>: Some
  26. kernel header files include this <filename>autoconf.h</filename> file, but
  27. outside the Linux source tree, that file has no meaning so we just create
  28. an empty one so we don't get compile errors whenever it happens to be a
  29. dependency of another kernel header file.</para>
  30. </sect2>