[bf8c11f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[e85011e4] | 8 | <sect1 id="ch-system-linux-headers" role="wrap">
|
---|
| 9 | <?dbhtml filename="linux-headers.html"?>
|
---|
[bf8c11f] | 10 |
|
---|
[e85011e4] | 11 | <title>Linux-Headers-&linux-headers-version;</title>
|
---|
[bf8c11f] | 12 |
|
---|
[e85011e4] | 13 | <indexterm zone="ch-system-linux-headers">
|
---|
| 14 | <primary sortas="a-Linux-Headers">Linux-Headers</primary>
|
---|
[bf8c11f] | 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
[e85011e4] | 20 | <para>The Linux Headers package contains the
|
---|
[bf8c11f] | 21 | <quote>sanitized</quote> kernel headers.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
[e85011e4] | 26 | <title>Installation of Linux-Headers</title>
|
---|
[bf8c11f] | 27 |
|
---|
[1e59f09] | 28 | <para os="a">For years it has been common practice to use
|
---|
| 29 | <quote>raw</quote> kernel headers (straight from a kernel tarball) in
|
---|
| 30 | <filename class="directory">/usr/include</filename>, but over the last few
|
---|
[bf8c11f] | 31 | years, the kernel developers have taken a strong stance that this
|
---|
[3992491] | 32 | should not be done. This gave birth to the Linux-Libc-Headers Project,
|
---|
[bf8c11f] | 33 | which was designed to maintain an API stable version of the Linux
|
---|
[1e59f09] | 34 | headers. Recently this project stopped producing updates, so the Cross-LFS
|
---|
| 35 | team started development on our own project to sanitize the headers.</para>
|
---|
[bf8c11f] | 36 |
|
---|
[4677eac] | 37 | <para os="b">Install the header files that are common to all architectures:</para>
|
---|
[bf8c11f] | 38 |
|
---|
[9402395] | 39 | <screen os="c"><userinput>install -dv /usr/include
|
---|
| 40 | cp -av include/{asm-generic,linux,mtd,scsi,sound} /usr/include/</userinput></screen>
|
---|
[bf8c11f] | 41 |
|
---|
[4677eac] | 42 | <para os="d">Install the header files that are specific to this architecture:</para>
|
---|
| 43 |
|
---|
[9402395] | 44 | <screen><userinput>cp -av include/asm-i386 /usr/include/asm</userinput></screen>
|
---|
[4677eac] | 45 |
|
---|
[bf8c11f] | 46 | </sect2>
|
---|
| 47 |
|
---|
[e85011e4] | 48 | <sect2 id="contents-linux-headers" role="content">
|
---|
| 49 | <title>Contents of Linux-Headers</title>
|
---|
[bf8c11f] | 50 |
|
---|
| 51 | <segmentedlist>
|
---|
| 52 | <segtitle>Installed headers</segtitle>
|
---|
| 53 |
|
---|
| 54 | <seglistitem>
|
---|
[57adee3] | 55 | <seg>/usr/include/{asm,asm-generic,linux,mtd,scsi,sound}/*.h</seg>
|
---|
[bf8c11f] | 56 | </seglistitem>
|
---|
| 57 | </segmentedlist>
|
---|
| 58 |
|
---|
| 59 | <variablelist>
|
---|
| 60 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 61 | <?dbfo list-presentation="list"?>
|
---|
| 62 | <?dbhtml list-presentation="table"?>
|
---|
| 63 |
|
---|
[e85011e4] | 64 | <varlistentry id="linux-headers">
|
---|
[bf8c11f] | 65 | <term><filename
|
---|
[57adee3] | 66 | class="headerfile">/usr/include/{asm,asm-generic,linux,mtd,scsi,sound}/*.h</filename></term>
|
---|
[bf8c11f] | 67 | <listitem>
|
---|
| 68 | <para>The Linux API headers</para>
|
---|
[e85011e4] | 69 | <indexterm zone="ch-system-linux-headers linux-headers">
|
---|
[bf8c11f] | 70 | <primary
|
---|
| 71 | sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
|
---|
| 72 | </indexterm>
|
---|
| 73 | </listitem>
|
---|
| 74 | </varlistentry>
|
---|
| 75 |
|
---|
| 76 | </variablelist>
|
---|
| 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | </sect1>
|
---|