source: clfs-embedded/BOOK/cross-tools/common/linux-headers.xml@ 288ef52

Last change on this file since 288ef52 was e970dfa, checked in by Andrew Bradford <andrew@…>, 11 years ago

linux-headers: Install headers without a cp

The copy of headers from a dest/ dir to the final include directory is
due to 'make headers_install' deleting everything else in the
INSTALL_HDR_PATH directory before doing the install of the headers in
older kernels. This seems to not be a problem any more, but regardless,
the kernel headers are the first thing installed into
${CLFS}/usr/include anyway so even if it did delete it's not a
problem.

This is 1 less step.

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[a9e389d]1<?xml version="1.0" encoding="ISO-8859-1"?>
[bd48e48]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[a9e389d]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
[4b05af9]8<sect1 id="ch-cross-tools-linux-headers" role="wrap">
[a9e389d]9 <?dbhtml filename="linux-headers.html"?>
10
[4b05af9]11 <title>Linux-Headers-&linux-version;</title>
[a9e389d]12
[4b05af9]13 <indexterm zone="ch-cross-tools-linux-headers">
[a9e389d]14 <primary sortas="a-Linux-Headers">Linux-Headers</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
[4b05af9]20 <para>The Linux Kernel contains a make target that installs
[a9e389d]21 <quote>sanitized</quote> kernel headers.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Linux Headers</title>
27
[4b05af9]28 <para os="a">For this step you will need the kernel tarball.</para>
[a9e389d]29
[4b05af9]30 <para os="b">Install the header files that are common to all architectures:</para>
[a9e389d]31
[dc5342b]32<screen os="c"><userinput>make mrproper
[6533111]33make ARCH=${CLFS_ARCH} headers_check
[e970dfa]34make ARCH=${CLFS_ARCH} INSTALL_HDR_PATH=${CLFS}/usr headers_install</userinput></screen>
[a9e389d]35
36 </sect2>
37
38 <sect2 id="contents-linux-headers" role="content">
39 <title>Contents of Linux-Headers</title>
40
41 <segmentedlist>
42 <segtitle>Installed headers</segtitle>
43
44 <seglistitem>
[de8c34a]45 <seg>/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,scsi,sound,video,xen}/*.h</seg>
[a9e389d]46 </seglistitem>
47 </segmentedlist>
48
49 <variablelist>
50 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
51 <?dbfo list-presentation="list"?>
52 <?dbhtml list-presentation="table"?>
53
54 <varlistentry id="linux-headers">
[de8c34a]55 <term><filename
56 class="headerfile">/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,scsi,sound,video,xen}/*.h</filename></term>
[a9e389d]57 <listitem>
58 <para>The Linux API headers</para>
[4b05af9]59 <indexterm zone="ch-cross-tools-linux-headers linux-headers">
[a9e389d]60 <primary
61 sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
62 </indexterm>
63 </listitem>
64 </varlistentry>
65
66 </variablelist>
67
68 </sect2>
69
70</sect1>
Note: See TracBrowser for help on using the repository browser.