Ignore:
Timestamp:
02/05/2004 10:17:48 PM (21 years ago)
Author:
Alex Gronenwoud <alex@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
0dda614
Parents:
2309b72
Message:

Simplifying the second copying of the kernel headers.

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

File:
1 moved

Legend:

Unmodified
Added
Removed
  • chapter06/kernel-headers.xml

    r2309b72 r2081905  
     1<sect1 id="ch-system-kernel-headers">
     2<title>Installing Linux-&kernel-version; headers</title>
     3<?dbhtml filename="kernelheaders.html" dir="chapter06"?>
     4
     5<screen>&buildtime; &kernel-time-headers;
     6&diskspace; &kernel-compsize-headers;</screen>
     7
    18<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
    29
    310<sect2>
    4 <title>Why we copy the kernel headers and don't symlink them</title>
     11<title>Installation of the kernel headers</title>
     12
     13<para>We won't be compiling a new kernel yet -- we'll do that when we have
     14finished the installation of all the packages. But the libraries installed in
     15the next section need to refer to the kernel header files in order to know how
     16to interface with the kernel. Instead of unpacking the kernel sources again,
     17making the version file and the symlinks and so on, we will simply copy the
     18headers from the temporary tools directory in one swoop:</para>
     19
     20<screen><userinput>cp -a /tools/include/{asm,asm-generic,linux} /usr/include</userinput></screen>
     21
     22<para>A few kernel header files refer to the <filename>autoconf.h</filename>
     23header file. Since we have not yet configured the kernel, we need to create
     24this file ourselves in order to avoid a compilation failure of Sysklogd.
     25Create an empty <filename>autoconf.h</filename> file with:</para>
     26
     27<screen><userinput>touch /usr/include/linux/autoconf.h</userinput></screen>
     28
     29</sect2>
     30
     31<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
     32
     33<sect2>
     34<title>Why we copy the kernel headers</title>
    535
    636<para>In the past it was common practice to symlink the
     
    4171</sect2>
    4272
     73</sect1>
     74
Note: See TracChangeset for help on using the changeset viewer.