[a9e389d] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[a9e389d] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
[4b05af9] | 8 | <sect1 id="ch-cross-tools-linux-headers" role="wrap">
|
---|
[a9e389d] | 9 | <?dbhtml filename="linux-headers.html"?>
|
---|
| 10 |
|
---|
[4b05af9] | 11 | <title>Linux-Headers-&linux-version;</title>
|
---|
[a9e389d] | 12 |
|
---|
[4b05af9] | 13 | <indexterm zone="ch-cross-tools-linux-headers">
|
---|
[a9e389d] | 14 | <primary sortas="a-Linux-Headers">Linux-Headers</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
[4b05af9] | 20 | <para>The Linux Kernel contains a make target that installs
|
---|
[a9e389d] | 21 | <quote>sanitized</quote> kernel headers.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Linux Headers</title>
|
---|
| 27 |
|
---|
[4b05af9] | 28 | <para os="a">For this step you will need the kernel tarball.</para>
|
---|
[a9e389d] | 29 |
|
---|
[4b05af9] | 30 | <para os="p1">The following patch contains a fix for a header that will prevent
|
---|
| 31 | kbd from compiling properly:</para>
|
---|
[a9e389d] | 32 |
|
---|
[4b05af9] | 33 | <screen os="p2"><userinput>patch -Np1 -i ../&linux-serial-patch;</userinput></screen>
|
---|
[a9e389d] | 34 |
|
---|
[4b05af9] | 35 | <para os="b">Install the header files that are common to all architectures:</para>
|
---|
[a9e389d] | 36 |
|
---|
[4b05af9] | 37 | <screen os="c"><userinput>install -dv ${CLFS}/usr/include
|
---|
| 38 | make mrproper
|
---|
| 39 | make ARCH=i386 headers_check
|
---|
| 40 | make ARCH=i386 INSTALL_HDR_PATH=dest headers_install
|
---|
| 41 | cp -rv dest/include/* ${CLFS}/usr/include</userinput></screen>
|
---|
[a9e389d] | 42 |
|
---|
| 43 | </sect2>
|
---|
| 44 |
|
---|
| 45 | <sect2 id="contents-linux-headers" role="content">
|
---|
| 46 | <title>Contents of Linux-Headers</title>
|
---|
| 47 |
|
---|
| 48 | <segmentedlist>
|
---|
| 49 | <segtitle>Installed headers</segtitle>
|
---|
| 50 |
|
---|
| 51 | <seglistitem>
|
---|
[4b05af9] | 52 | <seg>/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,sound,video}/*.h</seg>
|
---|
[a9e389d] | 53 | </seglistitem>
|
---|
| 54 | </segmentedlist>
|
---|
| 55 |
|
---|
| 56 | <variablelist>
|
---|
| 57 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 58 | <?dbfo list-presentation="list"?>
|
---|
| 59 | <?dbhtml list-presentation="table"?>
|
---|
| 60 |
|
---|
| 61 | <varlistentry id="linux-headers">
|
---|
| 62 | <term><filename
|
---|
[4b05af9] | 63 | class="headerfile">/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,sound,video}/*.h</filename></term>
|
---|
[a9e389d] | 64 | <listitem>
|
---|
| 65 | <para>The Linux API headers</para>
|
---|
[4b05af9] | 66 | <indexterm zone="ch-cross-tools-linux-headers linux-headers">
|
---|
[a9e389d] | 67 | <primary
|
---|
| 68 | sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
|
---|
| 69 | </indexterm>
|
---|
| 70 | </listitem>
|
---|
| 71 | </varlistentry>
|
---|
| 72 |
|
---|
| 73 | </variablelist>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | </sect1>
|
---|