Changeset 6b723ad in clfs-embedded


Ignore:
Timestamp:
Feb 9, 2011, 3:53:24 AM (14 years ago)
Author:
Andrew Bradford <bradfa@…>
Branches:
master
Children:
b7f5467
Parents:
ff29c76
Message:

Removed x86 ABI, added CLFS_CPU variable

Removed the x86 ABI page from being rendered in the book as it isn't
needed. We weren't actually pick an ABI for x86, we were picking if
we wanted 32 or 64 bit versions of x86. This would be better handled
if we were to pick which CPU architecture GCC should be compiled for
and then have a GCC that only outputs code for said 32 or 64 bit CPU.

Added the CLFS_CPU variable so that CPU architectures can be picked
from the list at:
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
We'll eventually use this CLFS_CPU choice with GCC's --with-arch=
configure line to generate a GCC just for our CPU.

Location:
BOOK/cross-tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/x86-chapter.xml

    rff29c76 r6b723ad  
    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"/>
  • BOOK/cross-tools/x86/variables.xml

    rff29c76 r6b723ad  
    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
     
    3940  <table os="i">
    4041    <title>Processor Type and  Target Triplets</title>
    41     <?dbfo table-width="4.5in" ?>
     42    <?dbfo table-width="7.5in" ?>
    4243
    4344    <tgroup cols="2">
     
    4546      <colspec colnum="1" colwidth="2.5in"   colname="Processor"/>
    4647      <colspec colnum="2" colwidth="2in" colname="Triplet"/>
     48      <colspec colnum="3" colwidth="0.5in" colname="CPU Type"/>
     49      <colspec colnum="4" colwidth="2.5in" colname="Note"/>
    4750
    4851      <thead>
     
    5053          <entry>Processor</entry>
    5154          <entry>Target Triplet</entry>
     55          <entry>CPU Type</entry>
     56          <entry>Note</entry>
    5257        </row>
    5358      </thead>
     
    5762          <entry>486 Compatibles</entry>
    5863          <entry>i486-pc-linux-uclibc</entry>
     64          <entry>i486</entry>
     65          <entry>Intel's i486</entry>
    5966        </row>
    6067        <row>
    6168          <entry>Pentium, K6, 586 Compatibles</entry>
    6269          <entry>i586-pc-linux-uclibc</entry>
     70          <entry>i586</entry>
     71          <entry>Intel Pentium without MMX</entry>
    6372        </row>
    6473        <row>
    6574          <entry>Pentium II, Pentium III, Pentium 4</entry>
    6675          <entry>i686-pc-linux-uclibc</entry>
     76          <entry>i686</entry>
     77          <entry>PentiumPro instruction set</entry>
    6778        </row>
    6879        <row>
    69           <entry>Athlon, Duron</entry>
     80          <entry>Athlon</entry>
    7081          <entry>i686-pc-linux-uclibc</entry>
     82          <entry>athlon</entry>
     83          <entry>AMD 32 bit Athlon</entry>
    7184        </row>
    7285        <row>
    73           <entry>x86_64</entry>
     86          <entry>Opteron</entry>
    7487          <entry>x86_64-unknown-linux-uclibc</entry>
     88          <entry>k8</entry>
     89          <entry>AMD K8 processors with x86-64</entry>
    7590        </row>
    7691      </tbody>
Note: See TracChangeset for help on using the changeset viewer.