source: BOOK/final-system/common/linux-headers.xml@ 48e58ea

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 48e58ea was 080f66f, checked in by William Harrington <kb0iic@…>, 11 years ago

Update linux headers install commands for final-system.

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[760721c]11 <title>Linux-Headers-&linux-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
[37a0da5]20 <para>The Linux Kernel contains a make target that installs
[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
[902b794]28 <para os="a">For this step you will need the kernel tarball.</para>
29
[b512295]30 <para os="b">Install the kernel header files:</para>
[3f8be484]31
[080f66f]32<screen os="c"><userinput>make headers_check
33make INSTALL_HDR_PATH=/usr headers_install
[e6f9c21]34find /usr/include -name .install -or -name ..install.cmd | xargs rm -fv</userinput></screen>
[7a3ea39]35
36 <variablelist os="d">
37 <title>The meaning of the make commands:</title>
38
39 <varlistentry os="d1">
40 <term><parameter>make mrproper</parameter></term>
41 <listitem>
42 <para>Ensures that the kernel source dir is clean.</para>
43 </listitem>
44 </varlistentry>
45
46 <varlistentry os="d2">
47 <term><parameter>make headers_check</parameter></term>
48 <listitem>
49 <para>Sanitizes the raw kernel headers so that they can be used
50 by userspace programs.</para>
51 </listitem>
52 </varlistentry>
53
54 <varlistentry os="d3">
[080f66f]55 <term><parameter>make INSTALL_HDR_PATH=/usr headers_install</parameter></term>
[7a3ea39]56 <listitem>
[080f66f]57 <para>This will install the kernel headers into
58 <filename class="directory">/usr/include</filename>.</para>
[7a3ea39]59 </listitem>
60 </varlistentry>
61
[12ce7b9]62 <varlistentry os="d4">
63 <term><parameter>find /usr/include -name .install -or -name ..install.cmd | xargs rm -fv</parameter></term>
64 <listitem>
65 <para>Removes a number of unneeded debugging files that were installed.</para>
66 </listitem>
67 </varlistentry>
68
[7a3ea39]69 </variablelist>
[91f60dc]70
[3f8be484]71 </sect2>
72
[f097f3e]73 <sect2 id="contents-linux-headers" role="content">
74 <title>Contents of Linux-Headers</title>
[3f8be484]75
76 <segmentedlist>
77 <segtitle>Installed headers</segtitle>
[61ad0b7f]78 <segtitle>Installed directories</segtitle>
[3f8be484]79
80 <seglistitem>
[2b220db9]81 <seg>/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,scsi,sound,video,xen}/*.h</seg>
[61ad0b7f]82 <seg>/usr/include/asm, /usr/include/asm-generic, /usr/include/drm,
83 /usr/include/linux, /usr/include/mtd, /usr/include/rdma,
84 /usr/include/scsi, /usr/include/sound, /usr/include/video, /usr/include/xen</seg>
[3f8be484]85 </seglistitem>
86 </segmentedlist>
87
88 <variablelist>
89 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
90 <?dbfo list-presentation="list"?>
91 <?dbhtml list-presentation="table"?>
92
[f097f3e]93 <varlistentry id="linux-headers">
[3f8be484]94 <term><filename
[d31ff94]95 class="headerfile">/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,sound,video}/*.h</filename></term>
[3f8be484]96 <listitem>
97 <para>The Linux API headers</para>
[f097f3e]98 <indexterm zone="ch-system-linux-headers linux-headers">
[3f8be484]99 <primary
100 sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
101 </indexterm>
102 </listitem>
103 </varlistentry>
104
105 </variablelist>
106
107 </sect2>
108
109</sect1>
Note: See TracBrowser for help on using the repository browser.