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