<?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-boot-silo-build" role="wrap">
  <?dbhtml filename="silo-build.html"?>

  <title>Silo-&silo-version;</title>

  <indexterm zone="ch-boot-silo-build">
    <primary sortas="a-Silo">Silo</primary>
    <secondary>boot</secondary>
  </indexterm>

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

  <sect2 role="installation">
    <title>Installation of Silo</title>

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

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

<para os="ae">This sed allows us to compile the bin2h binary separately.</para>

<screen os="ad"><userinput>sed -i -e 's@\$(PROGRAMS)$@programs\n\nprograms: &amp;@' common/Makefile</userinput></screen>

<para os="af">Compile the bin2h and util binaries for the host.</para>

<screen os="aa"><userinput>make -C common programs CC=cc
make -C second util CC=cc</userinput></screen>

    <variablelist>
      <varlistentry>
        <term><parameter>CC=cc</parameter></term>
        <listitem>
          <para>Overwrites the default value of <command>gcc -m32</command> which will fail 
to compile on 64 bit targets. This is not to be confused with <command>CC=${CC}</command> below.</para>
        </listitem>
      </varlistentry>
    </variablelist>

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

<screen os="ac"><userinput>make CC=${CC} AS=${AS} LD=${LD} STRIP=${STRIP}</userinput></screen>

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

<screen os="ab"><userinput>make DESTDIR=${CLFS} install</userinput></screen>

  </sect2>

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

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

  </sect2>

</sect1>
