| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 | <?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [  <!ENTITY % general-entities SYSTEM "../general.ent">  %general-entities;]><sect1 id="ch-tools-kernel-headers" role="wrap"><title>Linux-&linux-version; headers</title><?dbhtml filename="kernel-headers.html"?><indexterm zone="ch-tools-kernel-headers"><primary sortas="a-Linux">Linux</primary><secondary>tools, headers</secondary></indexterm><sect2 role="package"><title/><segmentedlist><segtitle>&buildtime;</segtitle><segtitle>&diskspace;</segtitle><seglistitem><seg>0.1 SBU</seg><seg>186 MB</seg></seglistitem></segmentedlist></sect2><sect2 role="installation"><title>Installation of the kernel headers</title><para>As some packages need to refer to the kernel header files, we're goingto unpack the kernel archive now, set it up, and copy the required files to aplace where <command>gcc</command> can later find them.</para><para>Prepare for the header installation with:</para><screen><userinput>make mrproper</userinput></screen><para>This ensures that the kernel tree is absolutely clean. The kernel teamrecommends that this command be issued prior to <emphasis>each</emphasis>kernel compilation. You shouldn't rely on the source tree being clean afterun-tarring.</para><para>Create the <filename>include/linux/version.h</filename> file:</para><screen><userinput>make include/linux/version.h</userinput></screen><para>Create the platform-specific <filename class="symlink">include/asm</filename>symlink:</para><screen><userinput>make include/asm</userinput></screen><para>Install the platform-specific header files:</para><screen><userinput>mkdir /tools/glibc-kernheaderscp -HR include/asm /tools/glibc-kernheaderscp -R include/asm-generic /tools/glibc-kernheaders</userinput></screen><para>Finally, install the cross-platform kernel header files:</para><screen><userinput>cp -R include/linux /tools/glibc-kernheaders</userinput></screen></sect2></sect1>
 |