source: chapter05/kernel-headers.xml@ ef13657

6.0
Last change on this file since ef13657 was 6e41459, checked in by Gerard Beekmans <gerard@…>, 20 years ago

Completed global edits for upcoming 6.0 release

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@3999 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-tools-kernel-headers" role="wrap">
7<title>Linux-&linux-version; headers</title>
8<?dbhtml filename="kernel-headers.html"?>
9
10<indexterm zone="ch-tools-kernel-headers">
11<primary sortas="a-Linux">Linux</primary>
12<secondary>tools, headers</secondary></indexterm>
13
14<sect2 role="package"><title/>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>186 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>Linux Headers installation depends on</segtitle>
24<seglistitem><seg>Coreutils, Make</seg></seglistitem>
25</segmentedlist>
26
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of the kernel headers</title>
31
32<para>Because some packages need to refer to the kernel header files,
33now is a good time to unpack the kernel archive, set it up, and copy
34the required files to a place where <command>gcc</command> can locate
35them later.</para>
36
37<para>Prepare for the header installation with:</para>
38
39<screen><userinput>make mrproper</userinput></screen>
40
41<para>This ensures that the kernel tree is absolutely clean. It is
42recommended that this command be issued prior to
43<emphasis>each</emphasis> kernel compilation. Do not assume that the
44source tree is automatically clean after un-tarring.</para>
45
46<para>Create the <filename>include/linux/version.h</filename> file:</para>
47
48<screen><userinput>make include/linux/version.h</userinput></screen>
49
50<para>Create the platform-specific <filename class="symlink">include/asm</filename>
51symlink:</para>
52
53<screen><userinput>make include/asm</userinput></screen>
54
55<para>Install the platform-specific header files:</para>
56
57<screen><userinput>mkdir /tools/glibc-kernheaders
58cp -HR include/asm /tools/glibc-kernheaders
59cp -R include/asm-generic /tools/glibc-kernheaders</userinput></screen>
60
61<para>Finally, install the cross-platform kernel header files:</para>
62
63<screen><userinput>cp -R include/linux /tools/glibc-kernheaders</userinput></screen>
64
65</sect2>
66
67</sect1>
68
Note: See TracBrowser for help on using the repository browser.