[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" |
---|
[5b4806a] | 21 | xpointer="xpointer(//*[@os='b'])"/> |
---|
[99fc891] | 22 | |
---|
[6533111] | 23 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 24 | href="../x86/variables.xml" |
---|
| 25 | xpointer="xpointer(//*[@os='c'])"/> |
---|
| 26 | |
---|
[4a7d6ee] | 27 | <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/mips64/mips/')</userinput></screen> |
---|
[6533111] | 28 | |
---|
[0dad5b9] | 29 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 30 | href="../x86/variables.xml" |
---|
| 31 | xpointer="xpointer(//*[@os='e'])"/> |
---|
[6533111] | 32 | |
---|
[2804a96] | 33 | <screen os="f"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/mipsel/LITTLE/' -e 's/mips/BIG/') |
---|
[5746df3] | 34 | if [ "${CLFS_ENDIAN}" = "LITTLE" ]; then |
---|
[0dad5b9] | 35 | export CLFS_NOT_ENDIAN=BIG |
---|
| 36 | else |
---|
| 37 | export CLFS_NOT_ENDIAN=LITTLE |
---|
| 38 | fi</userinput></screen> |
---|
[6533111] | 39 | |
---|
[5b4806a] | 40 | <para os="m1">Now you will need to set the MIPS LEVEL. This determines how your |
---|
[c14754c] | 41 | uClibc is built. There are currently 5 MIPS ISA Levels. To keep things simple |
---|
| 42 | we are only using 2. For more information, go to |
---|
| 43 | <ulink url="http://www.linux-mips.org/wiki/Instruction_Set_Architecture"/></para> |
---|
| 44 | |
---|
[5b4806a] | 45 | <screen os="m2"><userinput>export CLFS_MIPS_LEVEL="{mips level}"</userinput></screen> |
---|
[c14754c] | 46 | |
---|
[33bc2cb] | 47 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" |
---|
| 48 | href="../x86/variables.xml" |
---|
[0dad5b9] | 49 | xpointer="xpointer(//*[@os='g'])"/> |
---|
[99fc891] | 50 | |
---|
[e269c28] | 51 | <screen os="h"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc |
---|
| 52 | echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc |
---|
[6533111] | 53 | echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc |
---|
| 54 | echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc |
---|
[0dad5b9] | 55 | echo export CLFS_NOT_ENDIAN=\""${CLFS_NOT_ENDIAN}\"" >> ~/.bashrc |
---|
[c14754c] | 56 | echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" >> ~/.bashrc</userinput></screen> |
---|
[99fc891] | 57 | |
---|
[0dad5b9] | 58 | <table os="i"> |
---|
[99fc891] | 59 | <title>Processor Type and Target Triplets</title> |
---|
[3ca2208] | 60 | <?dbfo table-width="5.5in" ?> |
---|
| 61 | |
---|
| 62 | <tgroup cols="2"> |
---|
| 63 | |
---|
| 64 | <colspec colnum="1" colwidth="2in" colname="Processor"/> |
---|
| 65 | <colspec colnum="2" colwidth="2.5in" colname="Triplet"/> |
---|
| 66 | <colspec colnum="3" colwidth="1in" colname="MIPS Level"/> |
---|
| 67 | |
---|
[99fc891] | 68 | <thead> |
---|
| 69 | <row> |
---|
| 70 | <entry>Processor</entry> |
---|
| 71 | <entry>Target Triplet</entry> |
---|
[1261c88] | 72 | <entry>MIPS Level</entry> |
---|
[99fc891] | 73 | </row> |
---|
| 74 | </thead> |
---|
[3ca2208] | 75 | |
---|
[99fc891] | 76 | <tbody> |
---|
| 77 | <row> |
---|
| 78 | <entry>MIPS 32 bits Little Endian</entry> |
---|
| 79 | <entry>mipsel-unknown-linux-uclibc</entry> |
---|
[c14754c] | 80 | <entry>1</entry> |
---|
[99fc891] | 81 | </row> |
---|
| 82 | <row> |
---|
| 83 | <entry>MIPS 32 bits Big Endian</entry> |
---|
| 84 | <entry>mips-unknown-linux-uclibc</entry> |
---|
[c14754c] | 85 | <entry>1</entry> |
---|
[99fc891] | 86 | </row> |
---|
| 87 | <row> |
---|
| 88 | <entry>MIPS 64 bits Little Endian</entry> |
---|
| 89 | <entry>mips64el-unknown-linux-uclibc</entry> |
---|
[c14754c] | 90 | <entry>3</entry> |
---|
[99fc891] | 91 | </row> |
---|
| 92 | <row> |
---|
| 93 | <entry>MIPS 64 bits Big Endian</entry> |
---|
| 94 | <entry>mips64-unknown-linux-uclibc</entry> |
---|
[c14754c] | 95 | <entry>3</entry> |
---|
[99fc891] | 96 | </row> |
---|
| 97 | </tbody> |
---|
[3ca2208] | 98 | |
---|
[99fc891] | 99 | </tgroup> |
---|
[3ca2208] | 100 | |
---|
[99fc891] | 101 | </table> |
---|
| 102 | |
---|
| 103 | </sect1> |
---|