Changeset e67fb9b in clfs-embedded for BOOK/cross-tools
- Timestamp:
- Feb 10, 2011, 3:44:59 PM (14 years ago)
- Branches:
- master
- Children:
- 7003296
- Parents:
- a9cb92d (diff), 49c9bc5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- BOOK/cross-tools
- Files:
-
- 4 added
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/arm/abi.xml
ra9cb92d re67fb9b 11 11 <title>ABI Variables</title> 12 12 13 <para os="a">On the ARM architecture, there are two major ABI types to choose 14 from: EABI and OABI. There is also a Thumb ABI and an Intel IWMMX specific 15 ABI.</para> 16 17 <para os="b">The EABI (Embedded ABI) is newer and supports additional 18 features, faster software floating point operations, and Thumb interworking, 19 but is only compatible with ARMv4t and newer cores. The EABI has 20 sub-ABIs of: aapcs-linux and aapcs. aapcs-linux has standard Linux 4 byte 21 enums while aapcs has variable length enums.</para> 22 23 <para os="c">The OABI (old ABI) is called apcs-gnu and supports ARMv4 and 24 older cores.</para> 25 13 26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 14 href="../ x86/abi.xml"27 href="../common/abi.xml" 15 28 xpointer="xpointer(//*[@os='a'])"/> 16 29 17 30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 18 href="../ x86/abi.xml"31 href="../common/abi.xml" 19 32 xpointer="xpointer(//*[@os='b'])"/> 20 33 21 34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../ x86/abi.xml"35 href="../common/abi.xml" 23 36 xpointer="xpointer(//*[@os='c'])"/> 24 37 … … 36 49 <row> 37 50 <entry>ABI</entry> 38 <entry> BUILD=Value</entry>51 <entry>CLFS_ABI=Value</entry> 39 52 <entry>Note</entry> 40 53 </row> … … 44 57 <row> 45 58 <entry>apcs-gnu</entry> 46 <entry> -mabi=apcs-gnu</entry>59 <entry>apcs-gnu</entry> 47 60 <entry>Legacy ABI, arm4 and older</entry> 48 61 </row> 49 62 <row> 50 63 <entry>atpcs</entry> 51 <entry> -mabi=atpcs</entry>64 <entry>atpcs</entry> 52 65 <entry>Thumb ABI</entry> 53 66 </row> 54 67 <row> 55 68 <entry>aapcs</entry> 56 <entry> -mabi=aapcs</entry>69 <entry>aapcs</entry> 57 70 <entry>EABI w/ variable size enums</entry> 58 71 </row> 59 72 <row> 60 73 <entry>aapcs-linux</entry> 61 <entry> -mabi=aapcs-linux</entry>74 <entry>aapcs-linux</entry> 62 75 <entry>EABI w/ standard Linux 32 bit (int) enums</entry> 63 76 </row> 64 77 <row> 65 78 <entry>iwmmxt</entry> 66 <entry> -mabi=iwmmxt</entry>79 <entry>iwmmxt</entry> 67 80 <entry>Supports Intel XScale MMX extensions</entry> 68 81 </row> -
BOOK/cross-tools/arm/variables.xml
ra9cb92d re67fb9b 13 13 <bridgehead renderas="sect4">Setting Host and Target</bridgehead> 14 14 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 16 href="../x86/variables.xml" 17 xpointer="xpointer(//*[@os='a'])"/> 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> 18 21 19 22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 20 href="../ x86/variables.xml"23 href="../common/variables.xml" 21 24 xpointer="xpointer(//*[@os='b'])"/> 22 25 23 26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../ x86/variables.xml"27 href="../common/variables.xml" 25 28 xpointer="xpointer(//*[@os='c'])"/> 26 29 … … 29 32 30 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 31 href="../ x86/variables.xml"34 href="../common/variables.xml" 32 35 xpointer="xpointer(//*[@os='g'])"/> 33 36 34 37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 35 href="../ x86/variables.xml"38 href="../common/variables.xml" 36 39 xpointer="xpointer(//*[@os='h'])"/> 37 40 38 41 <table os="i"> 39 <title>Processor Type and Target Triplets</title>40 <?dbfo table-width=" 5in" ?>42 <title>Processor Type, ABI, and Target Triplets</title> 43 <?dbfo table-width="7in" ?> 41 44 42 45 <tgroup cols="2"> 43 46 44 47 <colspec colnum="1" colwidth="2.5in" colname="Processor"/> 45 <colspec colnum="2" colwidth="2.5in" colname="Triplet"/> 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"/> 46 51 47 52 <thead> 48 53 <row> 49 54 <entry>Processor</entry> 50 <entry>Endianess</entry> 55 <entry>Endian</entry> 56 <entry>ABI</entry> 51 57 <entry>Target Triplet</entry> 52 58 </row> … … 57 63 <entry>Generic arm</entry> 58 64 <entry>little</entry> 65 <entry>OABI</entry> 59 66 <entry>arm-unknown-linux-uclibc</entry> 67 </row> 68 <row> 69 <entry>Generic arm, version 4</entry> 70 <entry>little</entry> 71 <entry>OABI</entry> 72 <entry>armv4-unknown-linux-uclibc</entry> 60 73 </row> 61 74 <row> 62 75 <entry>Generic arm, version 5</entry> 63 76 <entry>little</entry> 64 <entry>armv5l-unknown-linux-uclibc</entry> 77 <entry>EABI</entry> 78 <entry>armv5l-unknown-linux-uclibcgnueabi</entry> 65 79 </row> 66 80 <row> 67 81 <entry>Generic arm, version 5</entry> 68 82 <entry>big</entry> 69 <entry>armv5b-unknown-linux-uclibc</entry> 83 <entry>EABI</entry> 84 <entry>armv5b-unknown-linux-uclibcgnueabi</entry> 85 </row> 86 <row> 87 <entry>Generic arm</entry> 88 <entry>little</entry> 89 <entry>EABI</entry> 90 <entry>arm-unknown-linux-uclibcgnueabi</entry> 91 </row> 92 <row> 93 <entry>Generic arm, version 7-a </entry> 94 <entry>little</entry> 95 <entry>EABI</entry> 96 <entry>armv7a-unknown-linux-uclibcgnueabi</entry> 70 97 </row> 71 98 </tbody> -
BOOK/cross-tools/common/gcc-final.xml
ra9cb92d re67fb9b 40 40 --with-sysroot=${CLFS} --disable-nls --enable-shared \ 41 41 --enable-languages=c --enable-c99 --enable-long-long \ 42 --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools</userinput></screen> 42 --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \ 43 --with-mpc=${CLFS}/cross-tools --with-abi=${CLFS_ABI}</userinput></screen> 43 44 44 45 <variablelist os="af"> 45 <title>The meaning of the new configure options:</title>46 <title>The meaning of the configure options not used previously:</title> 46 47 47 48 <varlistentry os="af1"> 48 <term><parameter>--enable- languages=c</parameter></term>49 <term><parameter>--enable-shared</parameter></term> 49 50 <listitem> 50 <para> This option ensures that only the C compiler is built.</para>51 <para>Enables the creation of the shared libraries.</para> 51 52 </listitem> 52 53 </varlistentry> -
BOOK/cross-tools/common/gcc-static.xml
ra9cb92d re67fb9b 43 43 --with-mpc=${CLFS}/cross-tools --without-headers --with-newlib \ 44 44 --disable-decimal-float --disable-libgomp --disable-libmudflap \ 45 --disable-libssp --disable-threads --enable-languages=c</userinput></screen> 45 --disable-libssp --disable-threads --enable-languages=c \ 46 --with-abi=${CLFS_ABI}</userinput></screen> 46 47 47 48 <variablelist os="af"> … … 206 207 </varlistentry> 207 208 209 <varlistentry os="af19"> 210 <term><parameter>--with-abi=${CLFS_ABI}</parameter></term> 211 <listitem> 212 <para>This option sets the ABI selected earlier.</para> 213 </listitem> 214 </varlistentry> 215 208 216 </variablelist> 209 217 -
BOOK/cross-tools/common/gmp.xml
ra9cb92d re67fb9b 36 36 <screen os="d"><userinput>make</userinput></screen> 37 37 38 <para os="e">Install the package:</para> 38 <note os="e"> 39 <para>Some versions of GCC (notably 4.3.2 which ships with Debian 40 5) will compile GMP without errors but in a subtly broken way. To ensure 41 GMP is compiled and functioning correctly, optionally run the test suite:</para> 39 42 40 <screen os="f"><userinput>make install</userinput></screen> 43 <screen><userinput>make check</userinput></screen> 44 </note> 45 46 <para os="f">Install the package:</para> 47 48 <screen os="g"><userinput>make install</userinput></screen> 41 49 42 50 </sect2> -
BOOK/cross-tools/mips/abi.xml
ra9cb92d re67fb9b 12 12 13 13 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 14 href="../ x86/abi.xml"14 href="../common/abi.xml" 15 15 xpointer="xpointer(//*[@os='a'])"/> 16 16 17 17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 18 href="../ x86/abi.xml"18 href="../common/abi.xml" 19 19 xpointer="xpointer(//*[@os='b'])"/> 20 20 21 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 22 href="../ x86/abi.xml"22 href="../common/abi.xml" 23 23 xpointer="xpointer(//*[@os='c'])"/> 24 24 … … 35 35 <row> 36 36 <entry>ABI</entry> 37 <entry> BUILD=Value</entry>37 <entry>CLFS_ABI=Value</entry> 38 38 </row> 39 39 </thead> … … 42 42 <row> 43 43 <entry>32-Bit</entry> 44 <entry> -mabi=32</entry>44 <entry>32</entry> 45 45 </row> 46 46 <row> 47 47 <entry>N32</entry> 48 <entry> -mabi=n32</entry>48 <entry>n32</entry> 49 49 </row> 50 50 <row> 51 51 <entry>64-Bit</entry> 52 <entry> -mabi=64</entry>52 <entry>64</entry> 53 53 </row> 54 54 </tbody> -
BOOK/cross-tools/mips/variables.xml
ra9cb92d re67fb9b 13 13 <bridgehead renderas="sect4">Setting Host and Target</bridgehead> 14 14 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 16 href="../x86/variables.xml" 17 xpointer="xpointer(//*[@os='a'])"/> 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, the MIPS 18 level, and CPU endianess. If you do not know what triplet or level 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> 18 21 19 22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 20 href="../ x86/variables.xml"23 href="../common/variables.xml" 21 24 xpointer="xpointer(//*[@os='b'])"/> 22 25 23 26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../ x86/variables.xml"27 href="../common/variables.xml" 25 28 xpointer="xpointer(//*[@os='c'])"/> 26 29 … … 36 39 37 40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 38 href="../ x86/variables.xml"41 href="../common/variables.xml" 39 42 xpointer="xpointer(//*[@os='g'])"/> 40 43 -
BOOK/cross-tools/x86-chapter.xml
ra9cb92d re67fb9b 14 14 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/> 15 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/> 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/abi.xml"/>17 16 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/variables.xml"/> 18 17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/linux-headers.xml"/> … … 21 20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpc.xml"/> 22 21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/> 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/gcc-static.xml"/>22 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/gcc-static.xml"/> 24 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/uclibc.xml"/> 25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href=" common/gcc-final.xml"/>24 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/gcc-final.xml"/> 26 25 27 26 </chapter> -
BOOK/cross-tools/x86/variables.xml
ra9cb92d re67fb9b 15 15 <para os="a">During the building of the cross-compile tools you will need to 16 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 . As well18 as the CPUs type and endianess. If you do not know what tripletyou want,17 You will need to set the target triplet for the target architecture, the CPU 18 type, and CPU endianess. If you do not know what triplet or CPU type you want, 19 19 you can use the table at the bottom of this page as a reference. Set 20 20 the command using the method listed below:</para> 21 21 22 22 <screen os="b"><userinput>export CLFS_HOST=$(echo ${MACHTYPE} | sed "s/-[^-]*/-cross/") 23 export CLFS_TARGET=<replaceable>[target triplet]</replaceable></userinput></screen> 23 export CLFS_TARGET=<replaceable>[target triplet]</replaceable> 24 export CLFS_CPU=<replaceable>[cpu type]</replaceable></userinput></screen> 24 25 25 26 <para os="c">Now we will set the architecture and endianess of the CPU based … … 35 36 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 36 37 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 37 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc</userinput></screen> 38 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc 39 echo export CLFS_ENDIAN=\""${CLFS_CPU}\"" >> ~/.bashrc</userinput></screen> 38 40 39 41 <table os="i"> 40 42 <title>Processor Type and Target Triplets</title> 41 <?dbfo table-width=" 4.5in" ?>43 <?dbfo table-width="7.5in" ?> 42 44 43 45 <tgroup cols="2"> … … 45 47 <colspec colnum="1" colwidth="2.5in" colname="Processor"/> 46 48 <colspec colnum="2" colwidth="2in" colname="Triplet"/> 49 <colspec colnum="3" colwidth="0.5in" colname="CPU Type"/> 50 <colspec colnum="4" colwidth="2.5in" colname="Note"/> 47 51 48 52 <thead> … … 50 54 <entry>Processor</entry> 51 55 <entry>Target Triplet</entry> 56 <entry>CPU Type</entry> 57 <entry>Note</entry> 52 58 </row> 53 59 </thead> … … 57 63 <entry>486 Compatibles</entry> 58 64 <entry>i486-pc-linux-uclibc</entry> 65 <entry>i486</entry> 66 <entry>Intel's i486</entry> 59 67 </row> 60 68 <row> 61 69 <entry>Pentium, K6, 586 Compatibles</entry> 62 70 <entry>i586-pc-linux-uclibc</entry> 71 <entry>i586</entry> 72 <entry>Intel Pentium without MMX</entry> 63 73 </row> 64 74 <row> 65 75 <entry>Pentium II, Pentium III, Pentium 4</entry> 66 76 <entry>i686-pc-linux-uclibc</entry> 77 <entry>i686</entry> 78 <entry>PentiumPro instruction set</entry> 67 79 </row> 68 80 <row> 69 <entry>Athlon , Duron</entry>81 <entry>Athlon</entry> 70 82 <entry>i686-pc-linux-uclibc</entry> 83 <entry>athlon</entry> 84 <entry>AMD 32 bit Athlon</entry> 71 85 </row> 72 86 <row> 73 <entry> x86_64</entry>87 <entry>Opteron</entry> 74 88 <entry>x86_64-unknown-linux-uclibc</entry> 89 <entry>k8</entry> 90 <entry>AMD K8 processors with x86-64</entry> 75 91 </row> 76 92 </tbody>
Note:
See TracChangeset
for help on using the changeset viewer.