Changeset 4b05af9 in clfs-embedded for BOOK/cross-tools/x86


Ignore:
Timestamp:
Jan 24, 2009, 10:41:03 AM (15 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
35d6f00
Parents:
e1b2402
Message:

Updated Linux and Linux Headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/x86/linux-headers.xml

    re1b2402 r4b05af9  
    66]>
    77
    8 <sect1 id="ch-system-linux-headers" role="wrap">
     8<sect1 id="ch-cross-tools-linux-headers" role="wrap">
    99  <?dbhtml filename="linux-headers.html"?>
    1010
    11   <title>Linux-Headers-&linux-headers-version;</title>
     11  <title>Linux-Headers-&linux-version;</title>
    1212
    13   <indexterm zone="ch-system-linux-headers">
     13  <indexterm zone="ch-cross-tools-linux-headers">
    1414    <primary sortas="a-Linux-Headers">Linux-Headers</primary>
    1515  </indexterm>
     
    1818    <title/>
    1919
    20     <para>The Linux Headers package contains the
     20    <para>The Linux Kernel contains a make target that installs
    2121    <quote>sanitized</quote> kernel headers.</para>
    2222
     
    2626    <title>Installation of Linux Headers</title>
    2727
    28     <para os="a">For years it has been common practice to use
    29     <quote>raw</quote> kernel headers (straight from a kernel tarball) in
    30     <filename class="directory">/usr/include</filename>, but over the last few
    31     years, the kernel developers have taken a strong stance that this
    32     should not be done. This gave birth to the Linux-Libc-Headers Project,
    33     which was designed to maintain an API stable version of the Linux
    34     headers. Recently this project stopped producing updates, so the Cross-LFS
    35     team started development on our own project to sanitize the headers.</para>
     28    <para os="a">For this step you will need the kernel tarball.</para>
     29
     30    <para os="p1">The following patch contains a fix for a header that will prevent
     31    kbd from compiling properly:</para>
     32
     33<screen os="p2"><userinput>patch -Np1 -i ../&linux-serial-patch;</userinput></screen>
    3634
    3735    <para os="b">Install the header files that are common to all architectures:</para>
    3836
    3937<screen os="c"><userinput>install -dv ${CLFS}/usr/include
    40 cp -av include/{asm-generic,linux,mtd,scsi,sound} ${CLFS}/usr/include</userinput></screen>
    41 
    42     <para os="d">Install the header files that are specific to this architecture:</para>
    43 
    44 <screen><userinput>cp -av include/asm-i386 ${CLFS}/usr/include/asm</userinput></screen>
     38make mrproper
     39make ARCH=i386 headers_check
     40make ARCH=i386 INSTALL_HDR_PATH=dest headers_install
     41cp -rv dest/include/* ${CLFS}/usr/include</userinput></screen>
    4542
    4643  </sect2>
     
    5350
    5451      <seglistitem>
    55         <seg>/usr/include/{asm,linux}/*.h</seg>
     52        <seg>/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,sound,video}/*.h</seg>
    5653      </seglistitem>
    5754    </segmentedlist>
     
    6461      <varlistentry id="linux-headers">
    6562        <term><filename
    66         class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
     63        class="headerfile">/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,sound,video}/*.h</filename></term>
    6764        <listitem>
    6865          <para>The Linux API headers</para>
    69           <indexterm zone="ch-system-linux-headers linux-headers">
     66          <indexterm zone="ch-cross-tools-linux-headers linux-headers">
    7067            <primary
    7168            sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
Note: See TracChangeset for help on using the changeset viewer.