| 1234567891011121314151617181920212223242526272829303132333435363738 | <sect2><title>Command explanations</title><para><userinput>ln -s /static/bin/pwd /bin/pwd</userinput>: The kernelsource hard-wires the path to <filename>pwd</filename> to be<filename>/bin/pwd</filename> so we create a temporary symlink to deal withit.</para><para><userinput>make mrproper:</userinput> This will ensure that the kerneltree is absolutely clean.  We do this because the kernel team recommendthat this is done prior to <emphasis>each</emphasis> kernel compilation,and that we shouldn't rely on the source tree being automatically cleanafter untarring.</para><para><userinput>make include/linux/version.h</userinput> and<userinput>make symlinks</userinput>: This creates the<filename>include/linux/version.h</filename>, as well as the <filenameclass="symlink">include/asm</filename> symlink.</para><para><userinput>mkdir /usr/include/asm</userinput>, <userinput>cp include/asm/* /usr/include/asm</userinput> and<userinput>cp include/asm-generic /usr/include</userinput>:This copies the platform-specific assembler kernel header files to<filename class="directory">/usr/include/asm</filename> and <filenameclass="directory">/usr/include/asm-generic</filename></para><para><userinput>cp -R include/linux /usr/include</userinput>:This command copies the cross-platform kernel header files to<filename>/usr/include</filename></para><para><userinput>touch /usr/include/linux/autoconf.h</userinput>: Somekernel header files include this <filename>autoconf.h</filename> file, butoutside the Linux source tree, that file has no meaning so we just createan empty one so we don't get compile errors whenever it happens to be adependency of another kernel header file.</para></sect2>
 |