<?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-final-preps-variables">
  <?dbhtml filename="variables.html"?>

  <title>Build Variables</title>

  <bridgehead renderas="sect4">Setting Host and Target</bridgehead>

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

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

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

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../mips/variables.xml"
    xpointer="xpointer(//*[@os='aa'])"/>

<screen os="ab"><userinput>export CLFS_TARGET="<replaceable>mips64el-unknown-linux-gnu</replaceable>"</userinput></screen>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../mips/variables.xml"
    xpointer="xpointer(//*[@os='ac'])"/>

<screen os="ad"><userinput>export CLFS_TARGET="<replaceable>mips64-unknown-linux-gnu</replaceable>"</userinput></screen>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../x86_64/variables.xml"
    xpointer="xpointer(//*[@os='e'])"/>

<screen os="f"><userinput>export CLFS_TARGET32="$(echo ${CLFS_TARGET}| sed -e 's/64//g')"</userinput></screen>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../x86_64/variables.xml"
    xpointer="xpointer(//*[@os='g'])"/>

<screen os="h"><userinput>export BUILD32="-mabi=32"
export BUILDN32="-mabi=n32"
export BUILD64="-mabi=64"</userinput></screen>

  <bridgehead renderas="sect4">Copy settings to Environment</bridgehead>

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
    href="../x86_64/variables.xml"
    xpointer="xpointer(//*[@os='i'])"/>

<screen os="j"><userinput>cat &gt;&gt; ~/.bashrc &lt;&lt; EOF
export CLFS_HOST="${CLFS_HOST}"
export CLFS_TARGET="${CLFS_TARGET}"
export CLFS_TARGET32="${CLFS_TARGET32}"
export BUILD32="${BUILD32}"
export BUILDN32="${BUILDN32}"
export BUILD64="${BUILD64}"
EOF</userinput></screen>

</sect1>
