[ad36f39] | 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" [
|
---|
[ad36f39] | 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 |
|
---|
[7926af1] | 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.
|
---|
| 17 | You will need to set the target triplet for the target architecture and CPU
|
---|
| 18 | endianess. If you do not know what triplet or endianess you want,
|
---|
| 19 | you can use the table at the bottom of this page as a reference. Set
|
---|
| 20 | the command using the method listed below:</para>
|
---|
[ad36f39] | 21 |
|
---|
| 22 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[7926af1] | 23 | href="../common/variables.xml"
|
---|
[5b4806a] | 24 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
[ad36f39] | 25 |
|
---|
| 26 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[7926af1] | 27 | href="../common/variables.xml"
|
---|
[5b4806a] | 28 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
[ad36f39] | 29 |
|
---|
[a9bbc46] | 30 | <screen os="d"><userinput>export CLFS_ARCH=arm
|
---|
| 31 | export CLFS_ENDIAN=<replaceable>[endianess]</replaceable></userinput></screen>
|
---|
[6533111] | 32 |
|
---|
[5b4806a] | 33 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[7926af1] | 34 | href="../common/variables.xml"
|
---|
[0dad5b9] | 35 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
[6533111] | 36 |
|
---|
[0dad5b9] | 37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
[7926af1] | 38 | href="../common/variables.xml"
|
---|
[0dad5b9] | 39 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
[ad36f39] | 40 |
|
---|
[0dad5b9] | 41 | <table os="i">
|
---|
[d44503cc] | 42 | <title>Processor Type, ABI, and Target Triplets</title>
|
---|
| 43 | <?dbfo table-width="7in" ?>
|
---|
[3ca2208] | 44 |
|
---|
| 45 | <tgroup cols="2">
|
---|
| 46 |
|
---|
| 47 | <colspec colnum="1" colwidth="2.5in" colname="Processor"/>
|
---|
[d44503cc] | 48 | <colspec colnum="2" colwidth="1in" colname="Endian"/>
|
---|
| 49 | <colspec colnum="3" colwidth="1in" colname="ABI"/>
|
---|
| 50 | <colspec colnum="4" colwidth="2.5in" colname="Triplet"/>
|
---|
[3ca2208] | 51 |
|
---|
[ad36f39] | 52 | <thead>
|
---|
| 53 | <row>
|
---|
| 54 | <entry>Processor</entry>
|
---|
[d44503cc] | 55 | <entry>Endian</entry>
|
---|
| 56 | <entry>ABI</entry>
|
---|
[ad36f39] | 57 | <entry>Target Triplet</entry>
|
---|
| 58 | </row>
|
---|
| 59 | </thead>
|
---|
[3ca2208] | 60 |
|
---|
[ad36f39] | 61 | <tbody>
|
---|
| 62 | <row>
|
---|
[a9bbc46] | 63 | <entry>Generic arm</entry>
|
---|
| 64 | <entry>little</entry>
|
---|
[d44503cc] | 65 | <entry>OABI</entry>
|
---|
[ad36f39] | 66 | <entry>arm-unknown-linux-uclibc</entry>
|
---|
| 67 | </row>
|
---|
| 68 | <row>
|
---|
[ff29c76] | 69 | <entry>Generic arm, version 4</entry>
|
---|
[a9bbc46] | 70 | <entry>little</entry>
|
---|
[d44503cc] | 71 | <entry>OABI</entry>
|
---|
[ff29c76] | 72 | <entry>armv4-unknown-linux-uclibc</entry>
|
---|
| 73 | </row>
|
---|
| 74 | <row>
|
---|
| 75 | <entry>Generic arm, version 5</entry>
|
---|
| 76 | <entry>little</entry>
|
---|
| 77 | <entry>EABI</entry>
|
---|
[885ee0e] | 78 | <entry>armv5l-unknown-linux-uclibceabi</entry>
|
---|
[ad36f39] | 79 | </row>
|
---|
| 80 | <row>
|
---|
[a9bbc46] | 81 | <entry>Generic arm, version 5</entry>
|
---|
| 82 | <entry>big</entry>
|
---|
[ff29c76] | 83 | <entry>EABI</entry>
|
---|
[885ee0e] | 84 | <entry>armv5b-unknown-linux-uclibceabi</entry>
|
---|
[ad36f39] | 85 | </row>
|
---|
[d44503cc] | 86 | <row>
|
---|
| 87 | <entry>Generic arm</entry>
|
---|
| 88 | <entry>little</entry>
|
---|
| 89 | <entry>EABI</entry>
|
---|
[885ee0e] | 90 | <entry>arm-unknown-linux-uclibceabi</entry>
|
---|
[d44503cc] | 91 | </row>
|
---|
[ff29c76] | 92 | <row>
|
---|
| 93 | <entry>Generic arm, version 7-a </entry>
|
---|
| 94 | <entry>little</entry>
|
---|
| 95 | <entry>EABI</entry>
|
---|
[885ee0e] | 96 | <entry>armv7a-unknown-linux-uclibceabi</entry>
|
---|
[ff29c76] | 97 | </row>
|
---|
[ad36f39] | 98 | </tbody>
|
---|
[3ca2208] | 99 |
|
---|
[ad36f39] | 100 | </tgroup>
|
---|
[3ca2208] | 101 |
|
---|
[ad36f39] | 102 | </table>
|
---|
| 103 |
|
---|
| 104 | </sect1>
|
---|