[9dfc02f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bdea25ce] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[9dfc02f] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[bdea25ce] | 7 |
|
---|
[5bc82c5] | 8 | <sect1 id="ch-system-linux-headers" role="wrap">
|
---|
| 9 | <?dbhtml filename="linux-headers.html"?>
|
---|
[bdea25ce] | 10 |
|
---|
[5bc82c5] | 11 | <title>Linux-Headers-&linux-version;</title>
|
---|
[bdea25ce] | 12 |
|
---|
[5bc82c5] | 13 | <indexterm zone="ch-system-linux-headers">
|
---|
| 14 | <primary sortas="a-Linux-Headers">Linux-Headers</primary>
|
---|
[bdea25ce] | 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
[9dfc02f] | 19 |
|
---|
[5bc82c5] | 20 | <para>The Linux-Headers expose the kernel's API for use by Glibc.</para>
|
---|
[9dfc02f] | 21 |
|
---|
[bdea25ce] | 22 | <segmentedlist>
|
---|
| 23 | <segtitle>&buildtime;</segtitle>
|
---|
| 24 | <segtitle>&diskspace;</segtitle>
|
---|
[9dfc02f] | 25 |
|
---|
[bdea25ce] | 26 | <seglistitem>
|
---|
[5bc82c5] | 27 | <seg>&linux-headers-ch6-sbu;</seg>
|
---|
| 28 | <seg>&linux-headers-ch6-du;</seg>
|
---|
[bdea25ce] | 29 | </seglistitem>
|
---|
| 30 | </segmentedlist>
|
---|
[9dfc02f] | 31 |
|
---|
[bdea25ce] | 32 | </sect2>
|
---|
[9dfc02f] | 33 |
|
---|
[bdea25ce] | 34 | <sect2 role="installation">
|
---|
[5bc82c5] | 35 | <title>Installation of Linux-Headers</title>
|
---|
[81fd230] | 36 |
|
---|
[5bc82c5] | 37 | <para>The Linux kernel needs to expose an Application Programming Interface
|
---|
| 38 | (API) for the system's C library (Glibc in LFS) to utilize. This is done
|
---|
| 39 | by way of sanitizing various C header files that are shipped in the Linux
|
---|
| 40 | kernel source tarball.</para>
|
---|
[bdea25ce] | 41 |
|
---|
[5bc82c5] | 42 | <para>Apply the following patch to provide <command>unifdef</command>, which
|
---|
| 43 | the installation of the kernel headers requires:</para>
|
---|
[c226182] | 44 |
|
---|
[5bc82c5] | 45 | <screen><userinput>patch -Np1 -i ../linux-&linux-version;-unifdef-1.patch</userinput></screen>
|
---|
[c226182] | 46 |
|
---|
[bdea25ce] | 47 | <para>Install the header files:</para>
|
---|
[9dfc02f] | 48 |
|
---|
[5bc82c5] | 49 | <screen><userinput>make mrproper
|
---|
| 50 | make headers_check
|
---|
| 51 | make INSTALL_HDR_PATH=/usr headers_install</userinput></screen>
|
---|
[9dfc02f] | 52 |
|
---|
[bdea25ce] | 53 | <para>Ensure that all the headers are owned by root:</para>
|
---|
[9dfc02f] | 54 |
|
---|
[810deb9] | 55 | <screen><userinput>chown -Rv root:root /usr/include/{asm,linux}</userinput></screen>
|
---|
[9dfc02f] | 56 |
|
---|
[bdea25ce] | 57 | <para>Make sure the users can read the headers:</para>
|
---|
[9dfc02f] | 58 |
|
---|
[810deb9] | 59 | <screen><userinput>find /usr/include/{asm,linux} -type d -exec chmod -v 755 {} \;
|
---|
| 60 | find /usr/include/{asm,linux} -type f -exec chmod -v 644 {} \;</userinput></screen>
|
---|
[9dfc02f] | 61 |
|
---|
[bdea25ce] | 62 | </sect2>
|
---|
[9dfc02f] | 63 |
|
---|
[5bc82c5] | 64 | <sect2 id="contents-linux-headers" role="content">
|
---|
| 65 | <title>Contents of Linux-Headers</title>
|
---|
[ef57e3b] | 66 |
|
---|
[bdea25ce] | 67 | <segmentedlist>
|
---|
| 68 | <segtitle>Installed headers</segtitle>
|
---|
[ef57e3b] | 69 |
|
---|
[bdea25ce] | 70 | <seglistitem>
|
---|
| 71 | <seg>/usr/include/{asm,linux}/*.h</seg>
|
---|
| 72 | </seglistitem>
|
---|
| 73 | </segmentedlist>
|
---|
[81fd230] | 74 |
|
---|
[bdea25ce] | 75 | <variablelist>
|
---|
| 76 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 77 | <?dbfo list-presentation="list"?>
|
---|
| 78 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 79 |
|
---|
[5bc82c5] | 80 | <varlistentry id="linux-headers">
|
---|
[bdea25ce] | 81 | <term><filename class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
|
---|
| 82 | <listitem>
|
---|
| 83 | <para>The Linux API headers</para>
|
---|
[5bc82c5] | 84 | <indexterm zone="ch-system-linux-headers linux-headers">
|
---|
[bdea25ce] | 85 | <primary sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
|
---|
| 86 | </indexterm>
|
---|
| 87 | </listitem>
|
---|
| 88 | </varlistentry>
|
---|
[ef57e3b] | 89 |
|
---|
[bdea25ce] | 90 | </variablelist>
|
---|
[ef57e3b] | 91 |
|
---|
[bdea25ce] | 92 | </sect2>
|
---|
[81fd230] | 93 |
|
---|
[bdea25ce] | 94 | </sect1>
|
---|