[a9e389d] | 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" [
|
---|
[a9e389d] | 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 | <para os="a">During the building of the cross-compile tools you will need to
|
---|
| 16 | set a few variables that will be dependent on your particular needs.
|
---|
[9dc5852] | 17 | You will need to set the target triplet for the target
|
---|
[a9e389d] | 18 | architecture. You can do this by running the same command as above, just
|
---|
| 19 | running it on the target machine. If you can't run the command on the
|
---|
| 20 | target machine, you can use the table at the bottom of this page. Set
|
---|
| 21 | the command using the method listed below:</para>
|
---|
| 22 |
|
---|
[e57d05e] | 23 | <screen os="d"><userinput>export CLFS_TARGET="{target triplet}"</userinput></screen>
|
---|
[a9e389d] | 24 |
|
---|
[9dc5852] | 25 | <para os="e">Now we will add this to <filename>~/.bashrc</filename>, just in
|
---|
[a9e389d] | 26 | case you have to exit and restart building later:</para>
|
---|
| 27 |
|
---|
[9dc5852] | 28 | <screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen>
|
---|
[a9e389d] | 29 |
|
---|
| 30 | <table os="g">
|
---|
| 31 | <title>Processor Type and Target Triplets</title>
|
---|
[3ca2208] | 32 | <?dbfo table-width="4.5in" ?>
|
---|
| 33 |
|
---|
| 34 | <tgroup cols="2">
|
---|
| 35 |
|
---|
| 36 | <colspec colnum="1" colwidth="2.5in" colname="Processor"/>
|
---|
| 37 | <colspec colnum="2" colwidth="2in" colname="Triplet"/>
|
---|
| 38 |
|
---|
[a9e389d] | 39 | <thead>
|
---|
| 40 | <row>
|
---|
| 41 | <entry>Processor</entry>
|
---|
| 42 | <entry>Target Triplet</entry>
|
---|
| 43 | </row>
|
---|
| 44 | </thead>
|
---|
[3ca2208] | 45 |
|
---|
[a9e389d] | 46 | <tbody>
|
---|
| 47 | <row>
|
---|
| 48 | <entry>486 Compatibles</entry>
|
---|
| 49 | <entry>i486-pc-linux-uclibc</entry>
|
---|
| 50 | </row>
|
---|
| 51 | <row>
|
---|
| 52 | <entry>Pentium, K6, 586 Compatibles</entry>
|
---|
| 53 | <entry>i586-pc-linux-uclibc</entry>
|
---|
| 54 | </row>
|
---|
| 55 | <row>
|
---|
| 56 | <entry>Pentium II, Pentium III, Pentium 4</entry>
|
---|
| 57 | <entry>i686-pc-linux-uclibc</entry>
|
---|
| 58 | </row>
|
---|
| 59 | <row>
|
---|
| 60 | <entry>Athlon, Duron</entry>
|
---|
| 61 | <entry>i686-pc-linux-uclibc</entry>
|
---|
| 62 | </row>
|
---|
| 63 | </tbody>
|
---|
[3ca2208] | 64 |
|
---|
[a9e389d] | 65 | </tgroup>
|
---|
[3ca2208] | 66 |
|
---|
[a9e389d] | 67 | </table>
|
---|
| 68 |
|
---|
| 69 | </sect1>
|
---|