Changeset e67fb9b in clfs-embedded for BOOK/cross-tools


Ignore:
Timestamp:
Feb 10, 2011, 3:44:59 PM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
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.
Message:

Merge branch 'master' of git://git.cross-lfs.org/abradford/clfs-embedded.git

Location:
BOOK/cross-tools
Files:
4 added
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/arm/abi.xml

    ra9cb92d re67fb9b  
    1111  <title>ABI Variables</title>
    1212
     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
    1326  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    14   href="../x86/abi.xml"
     27  href="../common/abi.xml"
    1528  xpointer="xpointer(//*[@os='a'])"/>
    1629
    1730  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    18   href="../x86/abi.xml"
     31  href="../common/abi.xml"
    1932  xpointer="xpointer(//*[@os='b'])"/>
    2033
    2134  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    22   href="../x86/abi.xml"
     35  href="../common/abi.xml"
    2336  xpointer="xpointer(//*[@os='c'])"/>
    2437
     
    3649        <row>
    3750          <entry>ABI</entry>
    38           <entry>BUILD=Value</entry>
     51          <entry>CLFS_ABI=Value</entry>
    3952          <entry>Note</entry>
    4053        </row>
     
    4457        <row>
    4558          <entry>apcs-gnu</entry>
    46           <entry>-mabi=apcs-gnu</entry>
     59          <entry>apcs-gnu</entry>
    4760          <entry>Legacy ABI, arm4 and older</entry>
    4861        </row>
    4962        <row>
    5063          <entry>atpcs</entry>
    51           <entry>-mabi=atpcs</entry>
     64          <entry>atpcs</entry>
    5265          <entry>Thumb ABI</entry>
    5366        </row>
    5467        <row>
    5568          <entry>aapcs</entry>
    56           <entry>-mabi=aapcs</entry>
     69          <entry>aapcs</entry>
    5770          <entry>EABI w/ variable size enums</entry>
    5871        </row>
    5972        <row>
    6073          <entry>aapcs-linux</entry>
    61           <entry>-mabi=aapcs-linux</entry>
     74          <entry>aapcs-linux</entry>
    6275          <entry>EABI w/ standard Linux 32 bit (int) enums</entry>
    6376        </row>
    6477        <row>
    6578          <entry>iwmmxt</entry>
    66           <entry>-mabi=iwmmxt</entry>
     79          <entry>iwmmxt</entry>
    6780          <entry>Supports Intel XScale MMX extensions</entry>
    6881        </row>
  • BOOK/cross-tools/arm/variables.xml

    ra9cb92d re67fb9b  
    1313  <bridgehead renderas="sect4">Setting Host and Target</bridgehead>
    1414
    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>
    1821
    1922  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    20   href="../x86/variables.xml"
     23  href="../common/variables.xml"
    2124  xpointer="xpointer(//*[@os='b'])"/>
    2225
    2326  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    24   href="../x86/variables.xml"
     27  href="../common/variables.xml"
    2528  xpointer="xpointer(//*[@os='c'])"/>
    2629
     
    2932
    3033  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    31   href="../x86/variables.xml"
     34  href="../common/variables.xml"
    3235  xpointer="xpointer(//*[@os='g'])"/>
    3336
    3437  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    35   href="../x86/variables.xml"
     38  href="../common/variables.xml"
    3639  xpointer="xpointer(//*[@os='h'])"/>
    3740
    3841  <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" ?>
    4144
    4245    <tgroup cols="2">
    4346
    4447      <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"/>
    4651
    4752      <thead>
    4853        <row>
    4954          <entry>Processor</entry>
    50           <entry>Endianess</entry>
     55          <entry>Endian</entry>
     56          <entry>ABI</entry>
    5157          <entry>Target Triplet</entry>
    5258        </row>
     
    5763          <entry>Generic arm</entry>
    5864          <entry>little</entry>
     65          <entry>OABI</entry>
    5966          <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>
    6073        </row>
    6174        <row>
    6275          <entry>Generic arm, version 5</entry>
    6376          <entry>little</entry>
    64           <entry>armv5l-unknown-linux-uclibc</entry>
     77          <entry>EABI</entry>
     78          <entry>armv5l-unknown-linux-uclibcgnueabi</entry>
    6579        </row>
    6680        <row>
    6781          <entry>Generic arm, version 5</entry>
    6882          <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>
    7097        </row>
    7198      </tbody>
  • BOOK/cross-tools/common/gcc-final.xml

    ra9cb92d re67fb9b  
    4040  --with-sysroot=${CLFS} --disable-nls --enable-shared \
    4141  --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>
    4344
    4445    <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>
    4647
    4748      <varlistentry os="af1">
    48         <term><parameter>--enable-languages=c</parameter></term>
     49        <term><parameter>--enable-shared</parameter></term>
    4950        <listitem>
    50           <para>This option ensures that only the C compiler is built.</para>
     51          <para>Enables the creation of the shared libraries.</para>
    5152        </listitem>
    5253      </varlistentry>
  • BOOK/cross-tools/common/gcc-static.xml

    ra9cb92d re67fb9b  
    4343  --with-mpc=${CLFS}/cross-tools --without-headers --with-newlib \
    4444  --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>
    4647
    4748    <variablelist os="af">
     
    206207      </varlistentry>
    207208
     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
    208216    </variablelist>
    209217
  • BOOK/cross-tools/common/gmp.xml

    ra9cb92d re67fb9b  
    3636<screen os="d"><userinput>make</userinput></screen>
    3737
    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>
    3942
    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>
    4149
    4250  </sect2>
  • BOOK/cross-tools/mips/abi.xml

    ra9cb92d re67fb9b  
    1212
    1313  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    14   href="../x86/abi.xml"
     14  href="../common/abi.xml"
    1515  xpointer="xpointer(//*[@os='a'])"/>
    1616
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    18   href="../x86/abi.xml"
     18  href="../common/abi.xml"
    1919  xpointer="xpointer(//*[@os='b'])"/>
    2020
    2121  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    22   href="../x86/abi.xml"
     22  href="../common/abi.xml"
    2323  xpointer="xpointer(//*[@os='c'])"/>
    2424
     
    3535        <row>
    3636          <entry>ABI</entry>
    37           <entry>BUILD=Value</entry>
     37          <entry>CLFS_ABI=Value</entry>
    3838        </row>
    3939      </thead>
     
    4242        <row>
    4343          <entry>32-Bit</entry>
    44           <entry>-mabi=32</entry>
     44          <entry>32</entry>
    4545        </row>
    4646        <row>
    4747          <entry>N32</entry>
    48           <entry>-mabi=n32</entry>
     48          <entry>n32</entry>
    4949        </row>
    5050        <row>
    5151          <entry>64-Bit</entry>
    52           <entry>-mabi=64</entry>
     52          <entry>64</entry>
    5353        </row>
    5454      </tbody>
  • BOOK/cross-tools/mips/variables.xml

    ra9cb92d re67fb9b  
    1313  <bridgehead renderas="sect4">Setting Host and Target</bridgehead>
    1414
    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>
    1821
    1922  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    20   href="../x86/variables.xml"
     23  href="../common/variables.xml"
    2124  xpointer="xpointer(//*[@os='b'])"/>
    2225
    2326  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    24   href="../x86/variables.xml"
     27  href="../common/variables.xml"
    2528  xpointer="xpointer(//*[@os='c'])"/>
    2629
     
    3639
    3740  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    38   href="../x86/variables.xml"
     41  href="../common/variables.xml"
    3942  xpointer="xpointer(//*[@os='g'])"/>
    4043
  • BOOK/cross-tools/x86-chapter.xml

    ra9cb92d re67fb9b  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <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"/>
    1716  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/variables.xml"/>
    1817  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/linux-headers.xml"/>
     
    2120  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/mpc.xml"/>
    2221  <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"/>
    2423  <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"/>
    2625
    2726</chapter>
  • BOOK/cross-tools/x86/variables.xml

    ra9cb92d re67fb9b  
    1515  <para os="a">During the building of the cross-compile tools you will need to
    1616  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 well
    18   as the CPUs type and endianess. If you do not know what triplet you 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,
    1919  you can use the table at the bottom of this page as a reference. Set
    2020  the command using the method listed below:</para>
    2121
    2222<screen os="b"><userinput>export CLFS_HOST=$(echo ${MACHTYPE} | sed "s/-[^-]*/-cross/")
    23 export CLFS_TARGET=<replaceable>[target triplet]</replaceable></userinput></screen>
     23export CLFS_TARGET=<replaceable>[target triplet]</replaceable>
     24export CLFS_CPU=<replaceable>[cpu type]</replaceable></userinput></screen>
    2425
    2526  <para os="c">Now we will set the architecture and endianess of the CPU based
     
    3536echo export CLFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc
    3637echo export CLFS_ARCH=\""${CLFS_ARCH}\"" &gt;&gt; ~/.bashrc
    37 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     38echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc
     39echo export CLFS_ENDIAN=\""${CLFS_CPU}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    3840
    3941  <table os="i">
    4042    <title>Processor Type and  Target Triplets</title>
    41     <?dbfo table-width="4.5in" ?>
     43    <?dbfo table-width="7.5in" ?>
    4244
    4345    <tgroup cols="2">
     
    4547      <colspec colnum="1" colwidth="2.5in"   colname="Processor"/>
    4648      <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"/>
    4751
    4852      <thead>
     
    5054          <entry>Processor</entry>
    5155          <entry>Target Triplet</entry>
     56          <entry>CPU Type</entry>
     57          <entry>Note</entry>
    5258        </row>
    5359      </thead>
     
    5763          <entry>486 Compatibles</entry>
    5864          <entry>i486-pc-linux-uclibc</entry>
     65          <entry>i486</entry>
     66          <entry>Intel's i486</entry>
    5967        </row>
    6068        <row>
    6169          <entry>Pentium, K6, 586 Compatibles</entry>
    6270          <entry>i586-pc-linux-uclibc</entry>
     71          <entry>i586</entry>
     72          <entry>Intel Pentium without MMX</entry>
    6373        </row>
    6474        <row>
    6575          <entry>Pentium II, Pentium III, Pentium 4</entry>
    6676          <entry>i686-pc-linux-uclibc</entry>
     77          <entry>i686</entry>
     78          <entry>PentiumPro instruction set</entry>
    6779        </row>
    6880        <row>
    69           <entry>Athlon, Duron</entry>
     81          <entry>Athlon</entry>
    7082          <entry>i686-pc-linux-uclibc</entry>
     83          <entry>athlon</entry>
     84          <entry>AMD 32 bit Athlon</entry>
    7185        </row>
    7286        <row>
    73           <entry>x86_64</entry>
     87          <entry>Opteron</entry>
    7488          <entry>x86_64-unknown-linux-uclibc</entry>
     89          <entry>k8</entry>
     90          <entry>AMD K8 processors with x86-64</entry>
    7591        </row>
    7692      </tbody>
Note: See TracChangeset for help on using the changeset viewer.