Changeset 8ffc8f19 in clfs-embedded for BOOK/cross-tools
- Timestamp:
- Oct 24, 2013, 2:00:21 PM (11 years ago)
- Branches:
- master
- Children:
- 293bc69
- Parents:
- 721d74f
- Location:
- BOOK/cross-tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/arm/variables.xml
r721d74f r8ffc8f19 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 select the target triplet for the target architecture, the CPU18 endianess,the CPU architecture, the CPU mode, the CPU floating point hardware17 You will need to select the target triplet for the target architecture, 18 the CPU architecture, the CPU mode, the CPU floating point hardware 19 19 availability, and (if available) the type of floating point hardware. If you 20 20 do not know what values can be chosen for each of these, you can use the 21 21 tables at the bottom of this page as a reference.</para> 22 22 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 25 24 armv5l-unknown-linux-uclibeabi, ARM arch of armv5t, and float of soft. ARM9 26 25 processors do not usually have hardware floating point abilities. If your … … 36 35 xpointer="xpointer(//*[@os='b'])"/> 37 36 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> 41 39 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> 44 41 45 42 <para os="e">Choose the ARM architecture (see table below) and mode of … … 71 68 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 72 69 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 73 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc74 70 echo export CLFS_ARM_ARCH=\""${CLFS_ARM_ARCH}\"" >> ~/.bashrc 75 71 echo export CLFS_ARM_MODE=\""${CLFS_ARM_MODE}\"" >> ~/.bashrc … … 81 77 <?dbfo table-width="7in" ?> 82 78 83 <tgroup cols=" 4">79 <tgroup cols="3"> 84 80 85 81 <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"/> 89 84 90 85 <thead> 91 86 <row> 92 87 <entry>Processor</entry> 93 <entry>Endianess</entry>94 88 <entry>ABI</entry> 95 89 <entry>Target Triplet</entry> … … 100 94 <row> 101 95 <entry>Generic arm, version 5</entry> 102 <entry>little</entry>103 96 <entry>EABI</entry> 104 97 <entry>armv5l-unknown-linux-musleabi</entry> 105 98 </row> 106 99 <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>113 100 <entry>Generic arm</entry> 114 <entry>little</entry>115 101 <entry>EABI</entry> 116 102 <entry>arm-unknown-linux-musleabi</entry> … … 118 104 <row> 119 105 <entry>Generic arm, version 7-a </entry> 120 <entry>little</entry>121 106 <entry>EABI</entry> 122 107 <entry>armv7a-unknown-linux-musleabi</entry> -
BOOK/cross-tools/x86/variables.xml
r721d74f r8ffc8f19 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, the CPU18 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, 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> … … 24 24 export CLFS_CPU=<replaceable>[cpu type]</replaceable></userinput></screen> 25 25 26 <para os="c">Now we will set the architecture and endianessof the CPU based26 <para os="c">Now we will set the architecture of the CPU based 27 27 on the target triplet provided above:</para> 28 28 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> 31 30 32 31 <para os="g">Now we will add this to <filename>~/.bashrc</filename>, just in … … 36 35 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 37 36 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 38 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc39 37 echo export CLFS_CPU=\""${CLFS_CPU}\"" >> ~/.bashrc</userinput></screen> 40 38
Note:
See TracChangeset
for help on using the changeset viewer.