linux-headers.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-tools-linux-headers" role="wrap">
  8. <?dbhtml filename="linux-headers.html"?>
  9. <title>Linux-Headers-&linux-version;</title>
  10. <indexterm zone="ch-tools-linux-headers">
  11. <primary sortas="a-Linux-Headers">Linux-Headers</primary>
  12. <secondary>tools, headers</secondary>
  13. </indexterm>
  14. <sect2 role="package">
  15. <title/>
  16. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  17. href="../chapter06/linux-headers.xml"
  18. xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  19. <segmentedlist>
  20. <segtitle>&buildtime;</segtitle>
  21. <segtitle>&diskspace;</segtitle>
  22. <seglistitem>
  23. <seg>&linux-headers-ch5-sbu;</seg>
  24. <seg>&linux-headers-ch5-du;</seg>
  25. </seglistitem>
  26. </segmentedlist>
  27. </sect2>
  28. <sect2 role="installation">
  29. <title>Installation of Linux-Headers</title>
  30. <para>The Linux kernel needs to expose an Application Programming Interface
  31. (API) for the system's C library (Glibc in LFS) to utilize. This is done
  32. by way of sanitizing various C header files that are shipped in the Linux
  33. kernel source tarball.</para>
  34. <para>Apply the following patch to provide <command>unifdef</command>, which
  35. the installation of the kernel headers requires:</para>
  36. <screen><userinput>patch -Np1 -i ../linux-&linux-version;-unifdef-1.patch</userinput></screen>
  37. <para>Install the header files:</para>
  38. <screen><userinput>make mrproper
  39. make headers_check
  40. cp -av usr/include/* /tools/include</userinput></screen>
  41. </sect2>
  42. <sect2 role="content">
  43. <title/>
  44. <para>Details on this package are located in
  45. <xref linkend="contents-linux-headers" role="."/></para>
  46. </sect2>
  47. </sect1>