<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-cross-tools-linux-headers" role="wrap">
  <?dbhtml filename="linux-headers.html"?>

  <title>Linux-&linux-version2; Headers</title>

  <indexterm zone="ch-cross-tools-linux-headers">
    <primary sortas="a-Linux Headers">Linux Headers</primary>
    <secondary>cross tools</secondary>
  </indexterm>

  <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
  href="../../final-system/common/linux-headers.xml"
  xpointer="xpointer(//*[@role='package'])"/>

  <sect2 role="installation">
    <title>Installation of Linux Headers</title>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../../final-system/common/linux-headers.xml"
    xpointer="xpointer(//*[@os='a'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../../bootable/x86/kernel.xml"
    xpointer="xpointer(//*[@os='p1'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../../bootable/x86/kernel.xml"
    xpointer="xpointer(//*[@os='p2'])"/>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../../final-system/common/linux-headers.xml"
    xpointer="xpointer(//*[@os='b'])"/>

<screen os="c"><userinput>make mrproper
make ARCH=powerpc headers_check
make ARCH=powerpc INSTALL_HDR_PATH=/tools headers_install</userinput></screen>

    <variablelist os="d">
      <title>The meaning of the make commands:</title>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../../final-system/common/linux-headers.xml"
    xpointer="xpointer(//*[@os='d1'])"/>

      <varlistentry os="d2">
        <term><parameter>make ARCH=powerpc headers_check</parameter></term>
        <listitem>
          <para>Sanitizes the raw kernel headers so that they can be used
          by userspace programs.</para>
        </listitem>
      </varlistentry>

      <varlistentry os="d3">
        <term><parameter>make ARCH=powerpc INSTALL_HDR_PATH=/tools headers_install</parameter></term>
        <listitem>
          <para>This will install the kernel headers into
          <filename class="directory">/tools/include</filename>.</para>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

  <sect2 role="content">
    <title/>

    <para>Details on this package are located in <xref
    linkend="contents-linux-headers" role="."/></para>

  </sect2>

</sect1>
