source: clfs-sysroot/BOOK/cross-tools/arm/linux-headers.xml@ cc09e9f

Last change on this file since cc09e9f was 586feb7, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Updated the bootscripts package and make LFS to CLFS updates.

  • Property mode set to 100644
File size: 3.2 KB
Line 
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-headers-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 package contains the
21 <quote>sanitized</quote> kernel headers.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Linux-Headers</title>
27
28 <para os="a">For years it has been common practice to use
29 <quote>raw</quote> kernel headers (straight from a kernel tarball) in
30 <filename class="directory">/usr/include</filename>, but over the last few
31 years, the kernel developers have taken a strong stance that this
32 should not be done. This gave birth to the Linux-Libc-Headers Project,
33 which was designed to maintain an API stable version of the Linux
34 headers. Recently this project stopped producing updates, so the Cross-LFS
35 team started development on our own project to sanitize the headers.</para>
36
37 <para os="b">Install the header files that are common to all architectures:</para>
38
39<screen os="c"><userinput>install -dv ${CLFS}/usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound}
40cp -av include/asm-generic/* ${CLFS}/usr/include/asm-generic
41cp -av include/linux/* ${CLFS}/usr/include/linux
42cp -av include/mtd/* ${CLFS}/usr/include/mtd
43cp -av include/net/* ${CLFS}/usr/include/net
44cp -av include/scsi/* ${CLFS}/usr/include/scsi
45cp -av include/sound/* ${CLFS}/usr/include/sound</userinput></screen>
46
47 <para os="d">Install the header files that are specific to this architecture:</para>
48
49<screen><userinput>cp -av include/asm-arm/* ${CLFS}/usr/include/asm</userinput></screen>
50
51 <para os="e">Make sure the users can read the headers:</para>
52
53<screen os="f"><userinput>find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \;
54find ${CLFS}/usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;</userinput></screen>
55
56 </sect2>
57
58 <sect2 id="contents-linux-headers" role="content">
59 <title>Contents of Linux-Headers</title>
60
61 <segmentedlist>
62 <segtitle>Installed headers</segtitle>
63
64 <seglistitem>
65 <seg>/usr/include/{asm,linux}/*.h</seg>
66 </seglistitem>
67 </segmentedlist>
68
69 <variablelist>
70 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
71 <?dbfo list-presentation="list"?>
72 <?dbhtml list-presentation="table"?>
73
74 <varlistentry id="linux-headers">
75 <term><filename
76 class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
77 <listitem>
78 <para>The Linux API headers</para>
79 <indexterm zone="ch-system-linux-headers linux-headers">
80 <primary
81 sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
82 </indexterm>
83 </listitem>
84 </varlistentry>
85
86 </variablelist>
87
88 </sect2>
89
90</sect1>
Note: See TracBrowser for help on using the repository browser.