Changeset bcfbe5b in clfs-embedded for BOOK/cross-tools/arm


Ignore:
Timestamp:
Feb 26, 2011, 9:33:02 AM (14 years ago)
Author:
Joe Ciccone <jciccone@…>
Branches:
master
Children:
d38764e
Parents:
a94e338 (diff), b54e969 (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 remote branch 'remotes/abradford/master'

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

Legend:

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

    ra94e338 rbcfbe5b  
    5858          <entry>apcs-gnu</entry>
    5959          <entry>apcs-gnu</entry>
    60           <entry>Legacy ABI, arm4 and older</entry>
     60          <entry>OABI</entry>
    6161        </row>
    6262        <row>
  • BOOK/cross-tools/arm/gcc-final.xml

    ra94e338 rbcfbe5b  
    4343  --enable-languages=c --enable-c99 --enable-long-long \
    4444  --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
    45   --with-mpc=${CLFS}/cross-tools --with-abi=${CLFS_ABI}</userinput></screen>
     45  --with-mpc=${CLFS}/cross-tools --disable-multilib \
     46  --with-abi=${CLFS_ABI} --with-arch=${CLFS_ARM_ARCH} \
     47  --with-mode=${CLFS_ARM_MODE} --with-float=${CLFS_FLOAT} \
     48  --with-fpu=${CLFS_FPU}</userinput></screen>
    4649
    47     <variablelist os="af">
    48       <title>The meaning of the configure options not used previously:</title>
    49 
    50       <varlistentry os="af1">
    51         <term><parameter>--enable-shared</parameter></term>
    52         <listitem>
    53           <para>Enables the creation of the shared libraries.</para>
    54         </listitem>
    55       </varlistentry>
    56 
    57       <varlistentry os="af2">
    58         <term><parameter>--enable-c99</parameter></term>
    59         <listitem>
    60           <para>Enable C99 support for C programs.</para>
    61         </listitem>
    62       </varlistentry>
    63 
    64       <varlistentry os="af3">
    65         <term><parameter>--enable-long-long</parameter></term>
    66         <listitem>
    67           <para>Enables long long support in the compiler.</para>
    68         </listitem>
    69       </varlistentry>
    70 
    71     </variablelist>
     50    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     51    href="../common/gcc-final.xml"
     52    xpointer="xpointer(//*[@os='af'])"/>
    7253
    7354    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
  • BOOK/cross-tools/arm/gcc-static.xml

    ra94e338 rbcfbe5b  
    4848  --disable-decimal-float --disable-libgomp --disable-libmudflap \
    4949  --disable-libssp --disable-threads --enable-languages=c \
    50   --with-abi=${CLFS_ABI}</userinput></screen>
     50  --disable-multilib --with-abi=${CLFS_ABI} --with-arch=${CLFS_ARM_ARCH} \
     51  --with-mode=${CLFS_ARM_MODE} --with-float=${CLFS_FLOAT} \
     52  --with-fpu=${CLFS_FPU}</userinput></screen>
    5153
    5254<!-- Common configure switches for all archs -->
     
    6264      <listitem>
    6365        <para>This option sets the ABI selected earlier.</para>
     66      </listitem>
     67    </varlistentry>
     68    <varlistentry os="ag2">
     69      <term><parameter>--with-arch=${CLFS_ARM_ARCH}</parameter></term>
     70      <listitem>
     71        <para>This option sets the ARM architecture selected earlier.</para>
     72      </listitem>
     73    </varlistentry>
     74    <varlistentry os="ag3">
     75      <term><parameter>--with-mode=${CLFS_ARM_MODE}</parameter></term>
     76      <listitem>
     77        <para>This option sets the ARM mode (arm or thumb) selected earlier.</para>
     78      </listitem>
     79    </varlistentry>
     80    <varlistentry os="ag4">
     81      <term><parameter>--with-float=${CLFS_FLOAT}</parameter></term>
     82      <listitem>
     83        <para>This option sets the floating point mode selected earlier.</para>
     84      </listitem>
     85    </varlistentry>
     86    <varlistentry os="ag5">
     87      <term><parameter>--with-fpu=${CLFS_FPU}</parameter></term>
     88      <listitem>
     89        <para>This option sets the hardware floating point type selected
     90        earlier.  If soft floating point was selected, this value is ignored.</para>
    6491      </listitem>
    6592    </varlistentry>
  • BOOK/cross-tools/arm/variables.xml

    ra94e338 rbcfbe5b  
    1313  <bridgehead renderas="sect4">Setting Host and Target</bridgehead>
    1414
    15   <para os="a">During the building of the cross-compile tools you will need to
     15  <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 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>
     17  You will need to select the target triplet for the target architecture, the CPU
     18  endianess, the CPU architecture, the CPU mode, the CPU floating point hardware
     19  availability, and (if available) the type of floating point hardware. If you
     20  do not know what values can be chosen for each of these, you can use the
     21  tables at the bottom of this page as a reference.</para>
     22
     23  <para os="a1">First, set the host and target triplets:</para>
    2124
    2225  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    2932
    3033<screen os="d"><userinput>export CLFS_ARCH=arm
    31 export CLFS_ENDIAN=<replaceable>[endianess]</replaceable></userinput></screen>
     34export CLFS_ENDIAN="<replaceable>[endianess]</replaceable>"</userinput></screen>
     35
     36  <para os="e">Choose the ARM architecture (see table below) and mode of
     37  your CPU:</para>
     38
     39<screen os="f"><userinput>export CLFS_ARM_ARCH="<replaceable>[architecture]</replaceable>"
     40export CLFS_ARM_MODE="<replaceable>[arm or thumb]</replaceable>"</userinput></screen>
     41
     42  <para os="f1">If your target CPU has hard floating point support (not all ARM
     43  CPUs do), set the following CLFS_FLOAT variable to either "hard" or "softfp".
     44  If your target CPU does not have hard floating point support, set the following
     45  CLFS_FLOAT vairable to "soft".</para>
     46
     47<screen os="f2"><userinput>export CLFS_FLOAT="<replaceable>[hard, softfp, or soft]"</replaceable></userinput></screen>
     48
     49  <para os="f3">If you chose either "hard" or "softfp" for CLFS_FLOAT, you now
     50  need to set which floating point hardware is actually included (see table below)
     51  with your ARM CPU:</para>
     52
     53<screen os="f4"><userinput>export CLFS_FPU="<replaceable>[fpu version]</replaceable>"</userinput></screen>
    3254
    3355  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     
    3557  xpointer="xpointer(//*[@os='g'])"/>
    3658
    37   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    38   href="../common/variables.xml"
    39   xpointer="xpointer(//*[@os='h'])"/>
     59<screen os="h"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" &gt;&gt; ~/.bashrc
     60echo export CLFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc
     61echo export CLFS_ARCH=\""${CLFS_ARCH}\"" &gt;&gt; ~/.bashrc
     62echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc
     63echo export CLFS_ARM_ARCH=\""${CLFS_ARM_ARCH}\"" &gt;&gt; ~/.bashrc
     64echo export CLFS_ARM_MODE=\""${CLFS_ARM_MODE}\"" &gt;&gt; ~/.bashrc
     65echo export CLFS_FLOAT=\""${CLFS_FLOAT}\"" &gt;&gt; ~/.bashrc
     66echo export CLFS_FPU=\""${CLFS_FPU}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    4067
    4168  <table os="i">
    42     <title>Processor Type, ABI, and  Target Triplets</title>
     69    <title>Example Processor Type, ABI, and  Target Triplets</title>
    4370    <?dbfo table-width="7in" ?>
    4471
     
    4673
    4774      <colspec colnum="1" colwidth="2.5in" colname="Processor"/>
    48       <colspec colnum="2" colwidth="1in" colname="Endian"/>
     75      <colspec colnum="2" colwidth="1in" colname="Endianess"/>
    4976      <colspec colnum="3" colwidth="1in" colname="ABI"/>
    5077      <colspec colnum="4" colwidth="2.5in" colname="Triplet"/>
     
    5380        <row>
    5481          <entry>Processor</entry>
    55           <entry>Endian</entry>
     82          <entry>Endianess</entry>
    5683          <entry>ABI</entry>
    5784          <entry>Target Triplet</entry>
     
    76103          <entry>little</entry>
    77104          <entry>EABI</entry>
    78           <entry>armv5l-unknown-linux-uclibcgnueabi</entry>
     105          <entry>armv5l-unknown-linux-uclibceabi</entry>
    79106        </row>
    80107        <row>
     
    82109          <entry>big</entry>
    83110          <entry>EABI</entry>
    84           <entry>armv5b-unknown-linux-uclibcgnueabi</entry>
     111          <entry>armv5b-unknown-linux-uclibceabi</entry>
    85112        </row>
    86113        <row>
     
    88115          <entry>little</entry>
    89116          <entry>EABI</entry>
    90           <entry>arm-unknown-linux-uclibcgnueabi</entry>
     117          <entry>arm-unknown-linux-uclibceabi</entry>
    91118        </row>
    92119        <row>
     
    94121          <entry>little</entry>
    95122          <entry>EABI</entry>
    96           <entry>armv7a-unknown-linux-uclibcgnueabi</entry>
     123          <entry>armv7a-unknown-linux-uclibceabi</entry>
    97124        </row>
    98125      </tbody>
     
    102129  </table>
    103130
     131  <table os="j">
     132    <title>ARM Archiecture Choices</title>
     133    <?dbfo table-width="4in" ?>
     134
     135    <tgroup cols="2">
     136
     137      <colspec colnum="1" colwidth="1in" colname="Arch Choice"/>
     138      <colspec colnum="2" colwidth="1in" colname="Arch Choice"/>
     139      <colspec colnum="3" colwidth="1in" colname="Arch Choice"/>
     140      <colspec colnum="4" colwidth="1in" colname="Arch Choice"/>
     141
     142      <tbody>
     143        <row>
     144          <entry>armv2</entry>
     145          <entry>armv2a</entry>
     146          <entry>armv3</entry>
     147          <entry>armv3m</entry>
     148        </row>
     149        <row>
     150          <entry>armv4</entry>
     151          <entry>armv4t</entry>
     152          <entry>armv5</entry>
     153          <entry>armv5t</entry>
     154        </row>
     155        <row>
     156          <entry>armv5te</entry>
     157          <entry>armv6</entry>
     158          <entry>armv6j</entry>
     159          <entry>armv6t2</entry>
     160        </row>
     161        <row>
     162          <entry>armv6z</entry>
     163          <entry>armv6zk</entry>
     164          <entry>armv6-m</entry>
     165          <entry>armv7</entry>
     166        </row>
     167        <row>
     168          <entry>armv7-a</entry>
     169          <entry>armv7-r</entry>
     170          <entry>armv7-m</entry>
     171          <entry>iwmmxt</entry>
     172        </row>
     173        <row>
     174          <entry>iwmmxt2</entry>
     175          <entry>ep9312</entry>
     176        </row>
     177      </tbody>
     178    </tgroup>
     179  </table>
     180
     181  <table os="j">
     182    <title>ARM Hard Floating Point Versions</title>
     183    <?dbfo table-width="4in" ?>
     184
     185    <tgroup cols="2">
     186
     187      <colspec colnum="1" colwidth="1in" colname="FPU Choice"/>
     188      <colspec colnum="2" colwidth="1in" colname="FPU Choice"/>
     189      <colspec colnum="3" colwidth="1in" colname="FPU Choice"/>
     190      <colspec colnum="4" colwidth="1in" colname="FPU Choice"/>
     191
     192      <tbody>
     193        <row>
     194          <entry>fpa</entry>
     195          <entry>fpe2</entry>
     196          <entry>fpe3</entry>
     197          <entry>maverick</entry>
     198        </row>
     199        <row>
     200          <entry>vfp</entry>
     201          <entry>vfpv3</entry>
     202          <entry>vfpv3-fp16</entry>
     203          <entry>vfpv3-d16</entry>
     204        </row>
     205        <row>
     206          <entry>vfpv3-d16-fp16</entry>
     207          <entry>vfpv3xd</entry>
     208          <entry>vfpv3xd-fp16</entry>
     209          <entry>neon</entry>
     210        </row>
     211        <row>
     212          <entry>neon-fp16</entry>
     213          <entry>vfpv4</entry>
     214          <entry>vfpv4-d16</entry>
     215          <entry>fpv4-sp-d16</entry>
     216        </row>
     217        <row>
     218          <entry>neon-vfpv4</entry>
     219        </row>
     220      </tbody>
     221    </tgroup>
     222  </table>
     223
    104224</sect1>
Note: See TracChangeset for help on using the changeset viewer.