[99fc891] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[bd48e48] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[99fc891] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-cross-tools-variables">
|
---|
| 9 | <?dbhtml filename="variables.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Build Variables</title>
|
---|
| 12 |
|
---|
| 13 | <bridgehead renderas="sect4">Setting Host and Target</bridgehead>
|
---|
| 14 |
|
---|
[33bc2cb] | 15 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 16 | href="../x86/variables.xml"
|
---|
| 17 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
[99fc891] | 18 |
|
---|
[33bc2cb] | 19 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 20 | href="../x86/variables.xml"
|
---|
| 21 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
[99fc891] | 22 |
|
---|
[33bc2cb] | 23 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 24 | href="../x86/variables.xml"
|
---|
| 25 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
[99fc891] | 26 |
|
---|
[33bc2cb] | 27 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 28 | href="../x86/variables.xml"
|
---|
| 29 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
[99fc891] | 30 |
|
---|
[c14754c] | 31 | <para os="d1">Now you will need to set the MIPS LEVEL. This determines how your
|
---|
| 32 | uClibc is built. There are currently 5 MIPS ISA Levels. To keep things simple
|
---|
| 33 | we are only using 2. For more information, go to
|
---|
| 34 | <ulink url="http://www.linux-mips.org/wiki/Instruction_Set_Architecture"/></para>
|
---|
| 35 |
|
---|
| 36 | <screen os="d2"><userinput>export CLFS_MIPS_LEVEL="{mips level}"</userinput></screen>
|
---|
| 37 |
|
---|
[33bc2cb] | 38 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 39 | href="../x86/variables.xml"
|
---|
| 40 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
[99fc891] | 41 |
|
---|
[c14754c] | 42 | <screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc
|
---|
| 43 | echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
|
---|
| 44 | echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" >> ~/.bashrc</userinput></screen>
|
---|
[99fc891] | 45 |
|
---|
| 46 | <table os="g">
|
---|
| 47 | <title>Processor Type and Target Triplets</title>
|
---|
[3ca2208] | 48 | <?dbfo table-width="5.5in" ?>
|
---|
| 49 |
|
---|
| 50 | <tgroup cols="2">
|
---|
| 51 |
|
---|
| 52 | <colspec colnum="1" colwidth="2in" colname="Processor"/>
|
---|
| 53 | <colspec colnum="2" colwidth="2.5in" colname="Triplet"/>
|
---|
| 54 | <colspec colnum="3" colwidth="1in" colname="MIPS Level"/>
|
---|
| 55 |
|
---|
[99fc891] | 56 | <thead>
|
---|
| 57 | <row>
|
---|
| 58 | <entry>Processor</entry>
|
---|
| 59 | <entry>Target Triplet</entry>
|
---|
[1261c88] | 60 | <entry>MIPS Level</entry>
|
---|
[99fc891] | 61 | </row>
|
---|
| 62 | </thead>
|
---|
[3ca2208] | 63 |
|
---|
[99fc891] | 64 | <tbody>
|
---|
| 65 | <row>
|
---|
| 66 | <entry>MIPS 32 bits Little Endian</entry>
|
---|
| 67 | <entry>mipsel-unknown-linux-uclibc</entry>
|
---|
[c14754c] | 68 | <entry>1</entry>
|
---|
[99fc891] | 69 | </row>
|
---|
| 70 | <row>
|
---|
| 71 | <entry>MIPS 32 bits Big Endian</entry>
|
---|
| 72 | <entry>mips-unknown-linux-uclibc</entry>
|
---|
[c14754c] | 73 | <entry>1</entry>
|
---|
[99fc891] | 74 | </row>
|
---|
| 75 | <row>
|
---|
| 76 | <entry>MIPS 64 bits Little Endian</entry>
|
---|
| 77 | <entry>mips64el-unknown-linux-uclibc</entry>
|
---|
[c14754c] | 78 | <entry>3</entry>
|
---|
[99fc891] | 79 | </row>
|
---|
| 80 | <row>
|
---|
| 81 | <entry>MIPS 64 bits Big Endian</entry>
|
---|
| 82 | <entry>mips64-unknown-linux-uclibc</entry>
|
---|
[c14754c] | 83 | <entry>3</entry>
|
---|
[99fc891] | 84 | </row>
|
---|
| 85 | </tbody>
|
---|
[3ca2208] | 86 |
|
---|
[99fc891] | 87 | </tgroup>
|
---|
[3ca2208] | 88 |
|
---|
[99fc891] | 89 | </table>
|
---|
| 90 |
|
---|
| 91 | </sect1>
|
---|