Changeset 4b05af9 in clfs-embedded for BOOK/cross-tools/x86/linux-headers.xml
- Timestamp:
- Jan 24, 2009, 10:41:03 AM (16 years ago)
- Branches:
- master
- Children:
- 35d6f00
- Parents:
- e1b2402
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/x86/linux-headers.xml
re1b2402 r4b05af9 6 6 ]> 7 7 8 <sect1 id="ch- system-linux-headers" role="wrap">8 <sect1 id="ch-cross-tools-linux-headers" role="wrap"> 9 9 <?dbhtml filename="linux-headers.html"?> 10 10 11 <title>Linux-Headers-&linux- headers-version;</title>11 <title>Linux-Headers-&linux-version;</title> 12 12 13 <indexterm zone="ch- system-linux-headers">13 <indexterm zone="ch-cross-tools-linux-headers"> 14 14 <primary sortas="a-Linux-Headers">Linux-Headers</primary> 15 15 </indexterm> … … 18 18 <title/> 19 19 20 <para>The Linux Headers package contains the20 <para>The Linux Kernel contains a make target that installs 21 21 <quote>sanitized</quote> kernel headers.</para> 22 22 … … 26 26 <title>Installation of Linux Headers</title> 27 27 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> 36 34 37 35 <para os="b">Install the header files that are common to all architectures:</para> 38 36 39 37 <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> 38 make mrproper 39 make ARCH=i386 headers_check 40 make ARCH=i386 INSTALL_HDR_PATH=dest headers_install 41 cp -rv dest/include/* ${CLFS}/usr/include</userinput></screen> 45 42 46 43 </sect2> … … 53 50 54 51 <seglistitem> 55 <seg>/usr/include/{asm, linux}/*.h</seg>52 <seg>/usr/include/{asm,asm-generic,drm,linux,mtd,rdma,sound,video}/*.h</seg> 56 53 </seglistitem> 57 54 </segmentedlist> … … 64 61 <varlistentry id="linux-headers"> 65 62 <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> 67 64 <listitem> 68 65 <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"> 70 67 <primary 71 68 sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
Note:
See TracChangeset
for help on using the changeset viewer.