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