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 |
|
---|
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-Headers expose the kernel's API for use by Glibc.</para>
|
---|
21 |
|
---|
22 | <segmentedlist>
|
---|
23 | <segtitle>&buildtime;</segtitle>
|
---|
24 | <segtitle>&diskspace;</segtitle>
|
---|
25 |
|
---|
26 | <seglistitem>
|
---|
27 | <seg>&linux-headers-ch6-sbu;</seg>
|
---|
28 | <seg>&linux-headers-ch6-du;</seg>
|
---|
29 | </seglistitem>
|
---|
30 | </segmentedlist>
|
---|
31 |
|
---|
32 | </sect2>
|
---|
33 |
|
---|
34 | <sect2 role="installation">
|
---|
35 | <title>Installation of Linux-Headers</title>
|
---|
36 |
|
---|
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>
|
---|
41 |
|
---|
42 | <para>Apply the following patch to provide <command>unifdef</command>, which
|
---|
43 | the installation of the kernel headers requires:</para>
|
---|
44 |
|
---|
45 | <screen><userinput>patch -Np1 -i ../linux-&linux-version;-unifdef-1.patch</userinput></screen>
|
---|
46 |
|
---|
47 | <para>Install the header files:</para>
|
---|
48 |
|
---|
49 | <screen><userinput>make mrproper
|
---|
50 | make headers_check
|
---|
51 | make INSTALL_HDR_PATH=/usr headers_install</userinput></screen>
|
---|
52 |
|
---|
53 | <para>Ensure that all the headers are owned by root:</para>
|
---|
54 |
|
---|
55 | <screen><userinput>chown -Rv root:root /usr/include/{asm,linux}</userinput></screen>
|
---|
56 |
|
---|
57 | <para>Make sure the users can read the headers:</para>
|
---|
58 |
|
---|
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>
|
---|
61 |
|
---|
62 | </sect2>
|
---|
63 |
|
---|
64 | <sect2 id="contents-linux-headers" role="content">
|
---|
65 | <title>Contents of Linux-Headers</title>
|
---|
66 |
|
---|
67 | <segmentedlist>
|
---|
68 | <segtitle>Installed headers</segtitle>
|
---|
69 |
|
---|
70 | <seglistitem>
|
---|
71 | <seg>/usr/include/{asm,linux}/*.h</seg>
|
---|
72 | </seglistitem>
|
---|
73 | </segmentedlist>
|
---|
74 |
|
---|
75 | <variablelist>
|
---|
76 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
77 | <?dbfo list-presentation="list"?>
|
---|
78 | <?dbhtml list-presentation="table"?>
|
---|
79 |
|
---|
80 | <varlistentry id="linux-headers">
|
---|
81 | <term><filename class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
|
---|
82 | <listitem>
|
---|
83 | <para>The Linux API headers</para>
|
---|
84 | <indexterm zone="ch-system-linux-headers linux-headers">
|
---|
85 | <primary sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
|
---|
86 | </indexterm>
|
---|
87 | </listitem>
|
---|
88 | </varlistentry>
|
---|
89 |
|
---|
90 | </variablelist>
|
---|
91 |
|
---|
92 | </sect2>
|
---|
93 |
|
---|
94 | </sect1>
|
---|