[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[9652249] | 6 | <sect1 id="ch-tools-kernel-headers" role="wrap">
|
---|
[69993f4] | 7 | <title>Linux-&linux-version; Headers</title>
|
---|
[673b0d8] | 8 | <?dbhtml filename="kernel-headers.html"?>
|
---|
[bc82645e] | 9 |
|
---|
[673b0d8] | 10 | <indexterm zone="ch-tools-kernel-headers">
|
---|
| 11 | <primary sortas="a-Linux">Linux</primary>
|
---|
| 12 | <secondary>tools, headers</secondary></indexterm>
|
---|
| 13 |
|
---|
[9652249] | 14 | <sect2 role="package"><title/>
|
---|
[69993f4] | 15 | <para>The Linux kernel package contains the kernel source as well as
|
---|
| 16 | the header files used by Glibc.</para>
|
---|
[bc82645e] | 17 |
|
---|
[9652249] | 18 | <segmentedlist>
|
---|
| 19 | <segtitle>&buildtime;</segtitle>
|
---|
| 20 | <segtitle>&diskspace;</segtitle>
|
---|
| 21 | <seglistitem><seg>0.1 SBU</seg><seg>186 MB</seg></seglistitem>
|
---|
| 22 | </segmentedlist>
|
---|
[73aedd1d] | 23 |
|
---|
[6e41459] | 24 | <segmentedlist>
|
---|
| 25 | <segtitle>Linux Headers installation depends on</segtitle>
|
---|
[69993f4] | 26 | <seglistitem><seg>Coreutils and Make</seg></seglistitem>
|
---|
[6e41459] | 27 | </segmentedlist>
|
---|
| 28 |
|
---|
[9652249] | 29 | </sect2>
|
---|
| 30 |
|
---|
| 31 | <sect2 role="installation">
|
---|
[69993f4] | 32 | <title>Installation of the Kernel Headers</title>
|
---|
[73aedd1d] | 33 |
|
---|
[6e41459] | 34 | <para>Because some packages need to refer to the kernel header files,
|
---|
| 35 | now is a good time to unpack the kernel archive, set it up, and copy
|
---|
| 36 | the required files to a place where <command>gcc</command> can locate
|
---|
| 37 | them later.</para>
|
---|
[73aedd1d] | 38 |
|
---|
| 39 | <para>Prepare for the header installation with:</para>
|
---|
| 40 |
|
---|
| 41 | <screen><userinput>make mrproper</userinput></screen>
|
---|
| 42 |
|
---|
[6e41459] | 43 | <para>This ensures that the kernel tree is absolutely clean. It is
|
---|
| 44 | recommended that this command be issued prior to
|
---|
| 45 | <emphasis>each</emphasis> kernel compilation. Do not assume that the
|
---|
| 46 | source tree is automatically clean after un-tarring.</para>
|
---|
[73aedd1d] | 47 |
|
---|
[e097438] | 48 | <para>Create the <filename class="headerfile">include/linux/version.h</filename>
|
---|
| 49 | file:</para>
|
---|
[73aedd1d] | 50 |
|
---|
| 51 | <screen><userinput>make include/linux/version.h</userinput></screen>
|
---|
| 52 |
|
---|
[2256873] | 53 | <beginpage/>
|
---|
| 54 |
|
---|
[574b0ea] | 55 | <para>Create the platform-specific <filename class="symlink">include/asm</filename>
|
---|
[73aedd1d] | 56 | symlink:</para>
|
---|
| 57 |
|
---|
[9dfc02f] | 58 | <screen><userinput>make include/asm</userinput></screen>
|
---|
[73aedd1d] | 59 |
|
---|
| 60 | <para>Install the platform-specific header files:</para>
|
---|
| 61 |
|
---|
[9dfc02f] | 62 | <screen><userinput>mkdir /tools/glibc-kernheaders
|
---|
| 63 | cp -HR include/asm /tools/glibc-kernheaders
|
---|
| 64 | cp -R include/asm-generic /tools/glibc-kernheaders</userinput></screen>
|
---|
[73aedd1d] | 65 |
|
---|
[673b0d8] | 66 | <para>Finally, install the cross-platform kernel header files:</para>
|
---|
[73aedd1d] | 67 |
|
---|
[9dfc02f] | 68 | <screen><userinput>cp -R include/linux /tools/glibc-kernheaders</userinput></screen>
|
---|
[73aedd1d] | 69 |
|
---|
| 70 | </sect2>
|
---|
[bc82645e] | 71 |
|
---|
[69993f4] | 72 | <sect2 role="content"><title/>
|
---|
[c17fc85] | 73 | <para>Details on this package are located in <xref
|
---|
| 74 | linkend="contents-kernel" role="."/></para>
|
---|
[69993f4] | 75 | </sect2>
|
---|
| 76 |
|
---|
[bc82645e] | 77 | </sect1>
|
---|
[6e41459] | 78 |
|
---|