2004-05-03 22:28:58 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 22:28:58 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<sect1 id="ch-system-linux-headers" role="wrap">
|
|
|
|
<?dbhtml filename="linux-headers.html"?>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2007-02-24 15:09:44 +00:00
|
|
|
<title>Linux-&linux-version; API Headers</title>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<indexterm zone="ch-system-linux-headers">
|
2007-02-24 15:09:44 +00:00
|
|
|
<primary sortas="a-Linux">Linux</primary>
|
|
|
|
<secondary>API headers</secondary>
|
2006-02-05 13:17:43 +00:00
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title/>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2007-02-24 15:09:44 +00:00
|
|
|
<para>The Linux API Headers expose the kernel's API for use by Glibc.</para>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<seglistitem>
|
2006-10-04 18:15:25 +01:00
|
|
|
<seg>&linux-headers-ch6-sbu;</seg>
|
|
|
|
<seg>&linux-headers-ch6-du;</seg>
|
2006-02-05 13:17:43 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect2>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<sect2 role="installation">
|
2007-02-24 15:09:44 +00:00
|
|
|
<title>Installation of Linux API Headers</title>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<para>The Linux kernel needs to expose an Application Programming Interface
|
|
|
|
(API) for the system's C library (Glibc in LFS) to utilize. This is done
|
|
|
|
by way of sanitizing various C header files that are shipped in the Linux
|
|
|
|
kernel source tarball.</para>
|
2006-02-05 13:17:43 +00:00
|
|
|
|
2007-03-23 22:08:26 +00:00
|
|
|
<para>Apply a <command>sed</command> subsitution to suppress the
|
|
|
|
installation of header files in <filename
|
|
|
|
class='directory'>/usr/include/scsi</filename>. The versions provided by
|
|
|
|
Glibc will be used instead:</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed -i '/scsi/d' include/Kbuild</userinput></screen>
|
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<para>Install the header files:</para>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<screen><userinput>make mrproper
|
|
|
|
make headers_check
|
|
|
|
make INSTALL_HDR_PATH=/usr headers_install</userinput></screen>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect2>
|
2004-05-03 22:28:58 +01:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<sect2 id="contents-linux-headers" role="content">
|
2007-02-24 15:09:44 +00:00
|
|
|
<title>Contents of Linux API Headers</title>
|
2004-06-19 13:04:20 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed headers</segtitle>
|
2004-06-19 13:04:20 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<seglistitem>
|
2007-05-13 09:29:32 +01:00
|
|
|
<seg>/usr/include/{asm-generic,asm,linux,mtd,rdma,sound}/*.h</seg>
|
2006-02-05 13:17:43 +00:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-10-04 18:15:25 +01:00
|
|
|
<varlistentry id="linux-headers">
|
2007-05-13 09:29:32 +01:00
|
|
|
<term><filename class="headerfile">/usr/include/{asm-generic,asm,linux,mtd,rdma,sound}/*.h</filename></term>
|
2006-02-05 13:17:43 +00:00
|
|
|
<listitem>
|
|
|
|
<para>The Linux API headers</para>
|
2006-10-04 18:15:25 +01:00
|
|
|
<indexterm zone="ch-system-linux-headers linux-headers">
|
2007-05-12 21:45:29 +01:00
|
|
|
<primary sortas="e-/usr/include/{asm-generic,asm,linux,mtd,rdma,sound}/*.h">/usr/include/{asm-generic,asm,linux,mtd,rdma,sound}/*.h</primary>
|
2006-02-05 13:17:43 +00:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2004-06-19 13:04:20 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</variablelist>
|
2004-06-19 13:04:20 +01:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect2>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-05 13:17:43 +00:00
|
|
|
</sect1>
|