source: BOOK/final-system/x86/linux-headers.xml@ 6f890b7

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 6f890b7 was e1153ea, checked in by Jim Gifford <clfs@…>, 19 years ago

r3371@server (orig r1554): chris | 2006-05-10 14:03:44 -0700
Removed dependency info from individual package instructions

  • Property mode set to 100644
File size: 3.4 KB
RevLine 
[3f8be484]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
[f097f3e]8<sect1 id="ch-system-linux-headers" role="wrap">
9 <?dbhtml filename="linux-headers.html"?>
[3f8be484]10
[f097f3e]11 <title>Linux-Headers-&linux-headers-version;</title>
[3f8be484]12
[f097f3e]13 <indexterm zone="ch-system-linux-headers">
14 <primary sortas="a-Linux-Headers">Linux-Headers</primary>
[3f8be484]15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
[f097f3e]20 <para>The Linux Headers package contains the
[3f8be484]21 <quote>sanitized</quote> kernel headers.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
[f097f3e]26 <title>Installation of Linux-Headers</title>
[3f8be484]27
28 <para os="a">For years it has been common practice to use <quote>raw</quote>
29 kernel headers (straight from a kernel tarball) in <filename
30 class="directory">/usr/include</filename>, but over the last few
31 years, the kernel developers have taken a strong stance that this
[4f049972]32 should not be done. This gave birth to the Linux-Libc-Headers Project,
[3f8be484]33 which was designed to maintain an API stable version of the Linux
[f097f3e]34 headers. But recently this project stopped producing updates. Cross-LFS
35 decided to come up with our own santized headers and placed them in
36 the book.</para>
[3f8be484]37
[91f60dc]38 <para os="b">Install the header files that are common to all architectures:</para>
[3f8be484]39
[91f60dc]40<screen os="c"><userinput>install -dv /usr/include/{asm,asm-generic,linux,net,mtd,scsi,sound}
41cp -av include/asm-generic/* /usr/include/asm-generic
[2df03f3]42cp -av include/linux/* /usr/include/linux
43cp -av include/mtd/* /usr/include/mtd
[f097f3e]44cp -av include/net/* /usr/include/net
45cp -av include/scsi/* /usr/include/scsi
46cp -av include/sound/* /usr/include/sound</userinput></screen>
[3f8be484]47
[91f60dc]48 <para os="d">Install the header files that are specific to this architecture:</para>
49
50<screen><userinput>cp -av include/asm-i386/* /usr/include/asm</userinput></screen>
51
52 <para os="e">Ensure that all the headers are owned by
[3f8be484]53 <systemitem class="username">root</systemitem>:</para>
54
[f8f8bd0]55<screen os="f"><userinput>chown -Rv root:root /usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound}</userinput></screen>
[3f8be484]56
[91f60dc]57 <para os="g">Make sure the users can read the headers:</para>
[3f8be484]58
[e75365c]59<screen os="h"><userinput>find /usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type d -exec chmod -v 755 {} \;
[91f60dc]60find /usr/include/{asm,asm-generic,linux,mtd,net,scsi,sound} -type f -exec chmod -v 644 {} \;</userinput></screen>
[3f8be484]61
62 </sect2>
63
[f097f3e]64 <sect2 id="contents-linux-headers" role="content">
65 <title>Contents of Linux-Headers</title>
[3f8be484]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
[f097f3e]80 <varlistentry id="linux-headers">
[3f8be484]81 <term><filename
82 class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
83 <listitem>
84 <para>The Linux API headers</para>
[f097f3e]85 <indexterm zone="ch-system-linux-headers linux-headers">
[3f8be484]86 <primary
87 sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
88 </indexterm>
89 </listitem>
90 </varlistentry>
91
92 </variablelist>
93
94 </sect2>
95
96</sect1>
Note: See TracBrowser for help on using the repository browser.