source: clfs-embedded/BOOK/cross-tools/mips/variables.xml@ 12cd5ac

Last change on this file since 12cd5ac was 6533111, checked in by Jim Gifford <clfs@…>, 16 years ago

Toolchain Updates

  • Property mode set to 100644
File size: 3.1 KB
Line 
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/-.*//' -e 's/mips.*/mips/' -e 's/mipsel.*/mips/'</userinput></screen>
28
29 <para os="e1">Now we will setup out default endian needed we need to build:</para>
30
31<screen os="e2"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | sed -e 's/mipsel/LITTLE/' -e 's/mips/BIG/'</userinput></screen>
32
33 <para os="m1">Now you will need to set the MIPS LEVEL. This determines how your
34uClibc is built. There are currently 5 MIPS ISA Levels. To keep things simple
35we are only using 2. For more information, go to
36<ulink url="http://www.linux-mips.org/wiki/Instruction_Set_Architecture"/></para>
37
38<screen os="m2"><userinput>export CLFS_MIPS_LEVEL="{mips level}"</userinput></screen>
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../x86/variables.xml"
42 xpointer="xpointer(//*[@os='e'])"/>
43
44<screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc
45echo export CLFS_ARCH=\""${CLFS_ARCH}\"" &gt;&gt; ~/.bashrc
46echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc
47echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" &gt;&gt; ~/.bashrc</userinput></screen>
48
49 <table os="g">
50 <title>Processor Type and Target Triplets</title>
51 <?dbfo table-width="5.5in" ?>
52
53 <tgroup cols="2">
54
55 <colspec colnum="1" colwidth="2in" colname="Processor"/>
56 <colspec colnum="2" colwidth="2.5in" colname="Triplet"/>
57 <colspec colnum="3" colwidth="1in" colname="MIPS Level"/>
58
59 <thead>
60 <row>
61 <entry>Processor</entry>
62 <entry>Target Triplet</entry>
63 <entry>MIPS Level</entry>
64 </row>
65 </thead>
66
67 <tbody>
68 <row>
69 <entry>MIPS 32 bits Little Endian</entry>
70 <entry>mipsel-unknown-linux-uclibc</entry>
71 <entry>1</entry>
72 </row>
73 <row>
74 <entry>MIPS 32 bits Big Endian</entry>
75 <entry>mips-unknown-linux-uclibc</entry>
76 <entry>1</entry>
77 </row>
78 <row>
79 <entry>MIPS 64 bits Little Endian</entry>
80 <entry>mips64el-unknown-linux-uclibc</entry>
81 <entry>3</entry>
82 </row>
83 <row>
84 <entry>MIPS 64 bits Big Endian</entry>
85 <entry>mips64-unknown-linux-uclibc</entry>
86 <entry>3</entry>
87 </row>
88 </tbody>
89
90 </tgroup>
91
92 </table>
93
94</sect1>
Note: See TracBrowser for help on using the repository browser.