Changeset 8ffc8f19 in clfs-embedded for BOOK


Ignore:
Timestamp:
Oct 24, 2013, 7:00:21 AM (11 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
293bc69
Parents:
721d74f
Message:

variables: Make ARM & x86 always little endian

99% of the time, this is correct.

Location:
BOOK/cross-tools
Files:
2 edited

Legend:

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

    r721d74f r8ffc8f19  
    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 select the target triplet for the target architecture, the CPU
    18   endianess, the CPU architecture, the CPU mode, the CPU floating point hardware
     17  You will need to select the target triplet for the target architecture,
     18  the CPU architecture, the CPU mode, the CPU floating point hardware
    1919  availability, and (if available) the type of floating point hardware. If you
    2020  do not know what values can be chosen for each of these, you can use the
    2121  tables at the bottom of this page as a reference.</para>
    2222
    23   <para os="a1">Most ARM processors are little endian, it is a safe choice.  If
    24   your processor is an ARM9, good choices include: triplet of
     23  <para os="a1">If your processor is an ARM9, good choices include: triplet of
    2524  armv5l-unknown-linux-uclibeabi, ARM arch of armv5t, and float of soft.  ARM9
    2625  processors do not usually have hardware floating point abilities. If your
     
    3635  xpointer="xpointer(//*[@os='b'])"/>
    3736
    38   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    39   href="../common/variables.xml"
    40   xpointer="xpointer(//*[@os='c'])"/>
     37  <para os="c">Now we will set the architecture of the CPU based
     38  on the target triplet provided above:</para>
    4139
    42 <screen os="d"><userinput>export CLFS_ARCH=arm
    43 export CLFS_ENDIAN="<replaceable>[endianess]</replaceable>"</userinput></screen>
     40<screen os="d"><userinput>export CLFS_ARCH=arm</userinput></screen>
    4441
    4542  <para os="e">Choose the ARM architecture (see table below) and mode of
     
    7168echo export CLFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc
    7269echo export CLFS_ARCH=\""${CLFS_ARCH}\"" &gt;&gt; ~/.bashrc
    73 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc
    7470echo export CLFS_ARM_ARCH=\""${CLFS_ARM_ARCH}\"" &gt;&gt; ~/.bashrc
    7571echo export CLFS_ARM_MODE=\""${CLFS_ARM_MODE}\"" &gt;&gt; ~/.bashrc
     
    8177    <?dbfo table-width="7in" ?>
    8278
    83     <tgroup cols="4">
     79    <tgroup cols="3">
    8480
    8581      <colspec colnum="1" colwidth="2.5in" colname="Processor"/>
    86       <colspec colnum="2" colwidth="1in" colname="Endianess"/>
    87       <colspec colnum="3" colwidth="1in" colname="ABI"/>
    88       <colspec colnum="4" colwidth="2.5in" colname="Triplet"/>
     82      <colspec colnum="2" colwidth="1in" colname="ABI"/>
     83      <colspec colnum="3" colwidth="2.5in" colname="Triplet"/>
    8984
    9085      <thead>
    9186        <row>
    9287          <entry>Processor</entry>
    93           <entry>Endianess</entry>
    9488          <entry>ABI</entry>
    9589          <entry>Target Triplet</entry>
     
    10094        <row>
    10195          <entry>Generic arm, version 5</entry>
    102           <entry>little</entry>
    10396          <entry>EABI</entry>
    10497          <entry>armv5l-unknown-linux-musleabi</entry>
    10598        </row>
    10699        <row>
    107           <entry>Generic arm, version 5</entry>
    108           <entry>big</entry>
    109           <entry>EABI</entry>
    110           <entry>armv5b-unknown-linux-musleabi</entry>
    111         </row>
    112         <row>
    113100          <entry>Generic arm</entry>
    114           <entry>little</entry>
    115101          <entry>EABI</entry>
    116102          <entry>arm-unknown-linux-musleabi</entry>
     
    118104        <row>
    119105          <entry>Generic arm, version 7-a </entry>
    120           <entry>little</entry>
    121106          <entry>EABI</entry>
    122107          <entry>armv7a-unknown-linux-musleabi</entry>
  • BOOK/cross-tools/x86/variables.xml

    r721d74f r8ffc8f19  
    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, the CPU
    18   type, and CPU endianess. If you do not know what triplet or CPU type you want,
     17  You will need to set the target triplet for the target architecture, and the
     18  CPU type. 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>
     
    2424export CLFS_CPU=<replaceable>[cpu type]</replaceable></userinput></screen>
    2525
    26   <para os="c">Now we will set the architecture and endianess of the CPU based
     26  <para os="c">Now we will set the architecture of the CPU based
    2727  on the target triplet provided above:</para>
    2828
    29 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')
    30 export CLFS_ENDIAN=little</userinput></screen>
     29<screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')</userinput></screen>
    3130
    3231  <para os="g">Now we will add this to <filename>~/.bashrc</filename>, just in
     
    3635echo export CLFS_TARGET=\""${CLFS_TARGET}\"" &gt;&gt; ~/.bashrc
    3736echo export CLFS_ARCH=\""${CLFS_ARCH}\"" &gt;&gt; ~/.bashrc
    38 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" &gt;&gt; ~/.bashrc
    3937echo export CLFS_CPU=\""${CLFS_CPU}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    4038
Note: See TracChangeset for help on using the changeset viewer.