linux-headers.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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-system-linux-headers" role="wrap">
  8. <?dbhtml filename="linux-headers.html"?>
  9. <title>Linux-Headers-&linux-version;</title>
  10. <indexterm zone="ch-system-linux-headers">
  11. <primary sortas="a-Linux-Headers">Linux-Headers</primary>
  12. </indexterm>
  13. <sect2 role="package">
  14. <title/>
  15. <para>The Linux-Headers expose the kernel's API for use by Glibc.</para>
  16. <segmentedlist>
  17. <segtitle>&buildtime;</segtitle>
  18. <segtitle>&diskspace;</segtitle>
  19. <seglistitem>
  20. <seg>&linux-headers-ch6-sbu;</seg>
  21. <seg>&linux-headers-ch6-du;</seg>
  22. </seglistitem>
  23. </segmentedlist>
  24. </sect2>
  25. <sect2 role="installation">
  26. <title>Installation of Linux-Headers</title>
  27. <para>The Linux kernel needs to expose an Application Programming Interface
  28. (API) for the system's C library (Glibc in LFS) to utilize. This is done
  29. by way of sanitizing various C header files that are shipped in the Linux
  30. kernel source tarball.</para>
  31. <para>Install the header files:</para>
  32. <screen><userinput>make mrproper
  33. make headers_check
  34. make INSTALL_HDR_PATH=/usr headers_install</userinput></screen>
  35. <para>Ensure that all the headers are owned by root:</para>
  36. <screen><userinput>chown -Rv root:root /usr/include/{asm,linux}</userinput></screen>
  37. <para>Make sure the users can read the headers:</para>
  38. <screen><userinput>find /usr/include/{asm,linux} -type d -exec chmod -v 755 {} \;
  39. find /usr/include/{asm,linux} -type f -exec chmod -v 644 {} \;</userinput></screen>
  40. </sect2>
  41. <sect2 id="contents-linux-headers" role="content">
  42. <title>Contents of Linux-Headers</title>
  43. <segmentedlist>
  44. <segtitle>Installed headers</segtitle>
  45. <seglistitem>
  46. <seg>/usr/include/{asm,linux}/*.h</seg>
  47. </seglistitem>
  48. </segmentedlist>
  49. <variablelist>
  50. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  51. <?dbfo list-presentation="list"?>
  52. <?dbhtml list-presentation="table"?>
  53. <varlistentry id="linux-headers">
  54. <term><filename class="headerfile">/usr/include/{asm,linux}/*.h</filename></term>
  55. <listitem>
  56. <para>The Linux API headers</para>
  57. <indexterm zone="ch-system-linux-headers linux-headers">
  58. <primary sortas="e-/usr/include/{asm,linux}/*.h">/usr/include/{asm,linux}/*.h</primary>
  59. </indexterm>
  60. </listitem>
  61. </varlistentry>
  62. </variablelist>
  63. </sect2>
  64. </sect1>