| 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
 | 
|---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
 | 
|---|
| 3 |   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 | 
|---|
| 4 |   <!ENTITY % general-entities SYSTEM "../../general.ent">
 | 
|---|
| 5 |   %general-entities;
 | 
|---|
| 6 | ]>
 | 
|---|
| 7 | 
 | 
|---|
| 8 | <sect1 id="ch-system-linux-headers" role="wrap">
 | 
|---|
| 9 |   <?dbhtml filename="linux-headers.html"?>
 | 
|---|
| 10 | 
 | 
|---|
| 11 |   <title>Linux-Headers-&linux-version;</title>
 | 
|---|
| 12 | 
 | 
|---|
| 13 |   <indexterm zone="ch-system-linux-headers">
 | 
|---|
| 14 |     <primary sortas="a-Linux-Headers">Linux-Headers</primary>
 | 
|---|
| 15 |   </indexterm>
 | 
|---|
| 16 | 
 | 
|---|
| 17 |   <sect2 role="package">
 | 
|---|
| 18 |     <title/>
 | 
|---|
| 19 | 
 | 
|---|
| 20 |     <para>The Linux Kernel contains a make target that installs
 | 
|---|
| 21 |     <quote>sanitized</quote> kernel headers.</para>
 | 
|---|
| 22 | 
 | 
|---|
| 23 |   </sect2>
 | 
|---|
| 24 | 
 | 
|---|
| 25 |   <sect2 role="installation">
 | 
|---|
| 26 |     <title>Installation of Linux-Headers</title>
 | 
|---|
| 27 | 
 | 
|---|
| 28 |     <para os="a">For this step you will need the kernel tarball.</para>
 | 
|---|
| 29 | 
 | 
|---|
| 30 |     <para os="b">Install the kernel header files:</para>
 | 
|---|
| 31 | 
 | 
|---|
| 32 | <screen os="c"><userinput>make mrproper
 | 
|---|
| 33 | make headers_check
 | 
|---|
| 34 | make INSTALL_HDR_PATH=/usr headers_install
 | 
|---|
| 35 | find /usr/include -name .install -or -name ..install.cmd | xargs rm -fv</userinput></screen>
 | 
|---|
| 36 | 
 | 
|---|
| 37 |     <variablelist os="d">
 | 
|---|
| 38 |       <title>The meaning of the make commands:</title>
 | 
|---|
| 39 | 
 | 
|---|
| 40 |       <varlistentry os="d1">
 | 
|---|
| 41 |         <term><parameter>make mrproper</parameter></term>
 | 
|---|
| 42 |         <listitem>
 | 
|---|
| 43 |           <para>Ensures that the kernel source dir is clean.</para>
 | 
|---|
| 44 |         </listitem>
 | 
|---|
| 45 |       </varlistentry>
 | 
|---|
| 46 | 
 | 
|---|
| 47 |       <varlistentry os="d2">
 | 
|---|
| 48 |         <term><parameter>make headers_check</parameter></term>
 | 
|---|
| 49 |         <listitem>
 | 
|---|
| 50 |           <para>Sanitizes the raw kernel headers so that they can be used
 | 
|---|
| 51 |           by userspace programs.</para>
 | 
|---|
| 52 |         </listitem>
 | 
|---|
| 53 |       </varlistentry>
 | 
|---|
| 54 | 
 | 
|---|
| 55 |       <varlistentry os="d3">
 | 
|---|
| 56 |         <term><parameter>make INSTALL_HDR_PATH=/usr headers_install</parameter></term>
 | 
|---|
| 57 |         <listitem>
 | 
|---|
| 58 |           <para>This will install the kernel headers into
 | 
|---|
| 59 |           <filename class="directory">/usr/include</filename>.</para>
 | 
|---|
| 60 |         </listitem>
 | 
|---|
| 61 |       </varlistentry>
 | 
|---|
| 62 | 
 | 
|---|
| 63 |       <varlistentry os="d4">
 | 
|---|
| 64 |         <term><parameter>find /usr/include -name .install -or -name ..install.cmd | xargs rm -fv</parameter></term>
 | 
|---|
| 65 |         <listitem>
 | 
|---|
| 66 |           <para>Removes a number of unneeded debugging files that were installed.</para>
 | 
|---|
| 67 |         </listitem>
 | 
|---|
| 68 |       </varlistentry>
 | 
|---|
| 69 | 
 | 
|---|
| 70 |     </variablelist>
 | 
|---|
| 71 | 
 | 
|---|
| 72 |   </sect2>
 | 
|---|
| 73 | 
 | 
|---|
| 74 |   <sect2 id="contents-linux-headers" role="content">
 | 
|---|
| 75 |     <title>Contents of Linux-Headers</title>
 | 
|---|
| 76 | 
 | 
|---|
| 77 |     <segmentedlist>
 | 
|---|
| 78 |       <segtitle>Installed headers</segtitle>
 | 
|---|
| 79 |       <segtitle>Installed directories</segtitle>
 | 
|---|
| 80 | 
 | 
|---|
| 81 |       <seglistitem>
 | 
|---|
| 82 |         <seg>/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,scsi,sound,video,xen}/*.h</seg>
 | 
|---|
| 83 |         <seg>/usr/include/asm, /usr/include/asm-generic, /usr/include/drm,
 | 
|---|
| 84 |         /usr/include/linux, /usr/include/mtd, /usr/include/rdma,
 | 
|---|
| 85 |         /usr/include/scsi, /usr/include/sound, /usr/include/video, /usr/include/xen</seg>
 | 
|---|
| 86 |       </seglistitem>
 | 
|---|
| 87 |     </segmentedlist>
 | 
|---|
| 88 | 
 | 
|---|
| 89 |     <variablelist>
 | 
|---|
| 90 |       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
 | 
|---|
| 91 |       <?dbfo list-presentation="list"?>
 | 
|---|
| 92 |       <?dbhtml list-presentation="table"?>
 | 
|---|
| 93 | 
 | 
|---|
| 94 |       <varlistentry id="linux-headers">
 | 
|---|
| 95 |         <term><filename
 | 
|---|
| 96 |         class="headerfile">/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,sound,video}/*.h</filename></term>
 | 
|---|
| 97 |         <listitem>
 | 
|---|
| 98 |           <para>The Linux API headers</para>
 | 
|---|
| 99 |           <indexterm zone="ch-system-linux-headers linux-headers">
 | 
|---|
| 100 |             <primary
 | 
|---|
| 101 |             sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
 | 
|---|
| 102 |           </indexterm>
 | 
|---|
| 103 |         </listitem>
 | 
|---|
| 104 |       </varlistentry>
 | 
|---|
| 105 | 
 | 
|---|
| 106 |     </variablelist>
 | 
|---|
| 107 | 
 | 
|---|
| 108 |   </sect2>
 | 
|---|
| 109 | 
 | 
|---|
| 110 | </sect1>
 | 
|---|