- Timestamp:
- Oct 24, 2013, 7:53:51 AM (11 years ago)
- Branches:
- master
- Children:
- 7f1f997
- Parents:
- 293bc69
- git-author:
- Andrew Bradford <andrew@…> (10/24/13 07:49:13)
- git-committer:
- Andrew Bradford <andrew@…> (10/24/13 07:53:51)
- Location:
- BOOK/cross-tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/arm/variables.xml
r293bc69 r5470f08 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 tables a t the bottom of this page as a reference.</para>21 tables as a reference.</para> 22 22 23 23 <para os="a1">If your processor is an ARM9, good choices include: triplet of … … 34 34 href="../common/variables.xml" 35 35 xpointer="xpointer(//*[@os='b'])"/> 36 37 <para os="c">Now set the architecture of the CPU:</para>38 39 <screen os="d"><userinput>export CLFS_ARCH=arm</userinput></screen>40 41 <para os="e">Choose the ARM architecture (see table below):</para>42 43 <screen os="f"><userinput>export CLFS_ARM_ARCH="<replaceable>[architecture]</replaceable>"</userinput></screen>44 45 <para os="f1">If your target CPU has hardware floating point support (not all46 ARM CPUs do), then set the following CLFS_FLOAT variable to either "hard" or47 "softfp". Use "softfp" if you need to integrate binaries compiled with48 "soft". Use "hard" if you don't. If your target CPU does not have hard49 floating point support, set the following CLFS_FLOAT vairable to50 "soft".</para>51 52 <screen os="f2"><userinput>export CLFS_FLOAT="<replaceable>[hard, softfp, or soft]"</replaceable></userinput></screen>53 54 <para os="f3">If you chose either "hard" or "softfp" for CLFS_FLOAT, you now55 need to set which floating point hardware is actually included (see table below)56 with your ARM CPU:</para>57 58 <screen os="f4"><userinput>export CLFS_FPU="<replaceable>[fpu version]</replaceable>"</userinput></screen>59 60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"61 href="../common/variables.xml"62 xpointer="xpointer(//*[@os='g'])"/>63 64 <screen os="h"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc65 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc66 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc67 echo export CLFS_ARM_ARCH=\""${CLFS_ARM_ARCH}\"" >> ~/.bashrc68 echo export CLFS_FLOAT=\""${CLFS_FLOAT}\"" >> ~/.bashrc69 echo export CLFS_FPU=\""${CLFS_FPU}\"" >> ~/.bashrc</userinput></screen>70 36 71 37 <table os="i"> … … 109 75 </table> 110 76 77 <para os="c">Now set the architecture of the CPU:</para> 78 79 <screen os="d"><userinput>export CLFS_ARCH=arm</userinput></screen> 80 81 <para os="e">Choose the ARM architecture (see table below):</para> 82 83 <screen os="f"><userinput>export CLFS_ARM_ARCH="<replaceable>[architecture]</replaceable>"</userinput></screen> 84 111 85 <table os="j"> 112 86 <title>ARM Archiecture Choices</title> … … 146 120 </tgroup> 147 121 </table> 122 123 <para os="f1">If your target CPU has hardware floating point support (not all 124 ARM CPUs do), then set the following CLFS_FLOAT variable to either "hard" or 125 "softfp". Use "softfp" if you need to integrate binaries compiled with 126 "soft". Use "hard" if you don't. If your target CPU does not have hard 127 floating point support, set the following CLFS_FLOAT vairable to 128 "soft".</para> 129 130 <screen os="f2"><userinput>export CLFS_FLOAT="<replaceable>[hard, softfp, or soft]"</replaceable></userinput></screen> 131 132 <para os="f3">If you chose either "hard" or "softfp" for CLFS_FLOAT, you now 133 need to set which floating point hardware is actually included (see table below) 134 with your ARM CPU:</para> 135 136 <screen os="f4"><userinput>export CLFS_FPU="<replaceable>[fpu version]</replaceable>"</userinput></screen> 148 137 149 138 <table os="j"> … … 190 179 </table> 191 180 181 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 182 href="../common/variables.xml" 183 xpointer="xpointer(//*[@os='g'])"/> 184 185 <screen os="h"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 186 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 187 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 188 echo export CLFS_ARM_ARCH=\""${CLFS_ARM_ARCH}\"" >> ~/.bashrc 189 echo export CLFS_FLOAT=\""${CLFS_FLOAT}\"" >> ~/.bashrc 190 echo export CLFS_FPU=\""${CLFS_FPU}\"" >> ~/.bashrc</userinput></screen> 191 192 192 </sect1> -
BOOK/cross-tools/mips/variables.xml
r293bc69 r5470f08 17 17 You will need to set the target triplet for the target architecture, the MIPS 18 18 level, and CPU endianess. If you do not know what triplet or level you want, 19 you can use the table a t the bottom of this page as a reference. Set19 you can use the table as a reference. Set 20 20 the command using the method listed below:</para> 21 21 … … 23 23 href="../common/variables.xml" 24 24 xpointer="xpointer(//*[@os='b'])"/> 25 26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"27 href="../common/variables.xml"28 xpointer="xpointer(//*[@os='c'])"/>29 30 <screen os="d"><userinput>export CLFS_ARCH=mips31 export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/mipsel/little/' -e 's/mips/big/')</userinput></screen>32 33 <para os="m1">Now you will need to set the MIPS LEVEL. This determines how your34 GCC and C library are built. There are currently 5 MIPS ISA Levels. To keep things35 simple we are only using two. For more information, see36 <ulink url="http://www.linux-mips.org/wiki/Instruction_Set_Architecture"/></para>37 38 <screen os="m2"><userinput>export CLFS_MIPS_LEVEL="<replaceable>[mips level]</replaceable>"</userinput></screen>39 40 <para os="m3">We also need to select the floating point capability of the CPU.41 If the CPU has built-in hardware for performing floating point calculations,42 choose "hard", otherwise choose "soft":</para>43 44 <screen os="m4"><userinput>export CLFS_FLOAT="<replaceable>[hard or soft]</replaceable>"</userinput></screen>45 46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"47 href="../common/variables.xml"48 xpointer="xpointer(//*[@os='g'])"/>49 50 <screen os="h"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc51 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc52 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc53 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc54 echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" >> ~/.bashrc55 echo export CLFS_FLOAT=\""${CLFS_FLOAT}\"" >> ~/.bashrc</userinput></screen>56 25 57 26 <table os="i"> … … 100 69 </table> 101 70 71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 72 href="../common/variables.xml" 73 xpointer="xpointer(//*[@os='c'])"/> 74 75 <screen os="d"><userinput>export CLFS_ARCH=mips 76 export CLFS_ENDIAN=$(echo ${CLFS_ARCH} | sed -e 's/mipsel/little/' -e 's/mips/big/')</userinput></screen> 77 78 <para os="m1">Now you will need to set the MIPS LEVEL. This determines how your 79 GCC and C library are built. There are currently 5 MIPS ISA Levels. To keep things 80 simple we are only using two. For more information, see 81 <ulink url="http://www.linux-mips.org/wiki/Instruction_Set_Architecture"/></para> 82 83 <screen os="m2"><userinput>export CLFS_MIPS_LEVEL="<replaceable>[mips level]</replaceable>"</userinput></screen> 84 85 <para os="m3">We also need to select the floating point capability of the CPU. 86 If the CPU has built-in hardware for performing floating point calculations, 87 choose "hard", otherwise choose "soft":</para> 88 89 <screen os="m4"><userinput>export CLFS_FLOAT="<replaceable>[hard or soft]</replaceable>"</userinput></screen> 90 91 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 92 href="../common/variables.xml" 93 xpointer="xpointer(//*[@os='g'])"/> 94 95 <screen os="h"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 96 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 97 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 98 echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc 99 echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" >> ~/.bashrc 100 echo export CLFS_FLOAT=\""${CLFS_FLOAT}\"" >> ~/.bashrc</userinput></screen> 101 102 102 </sect1> -
BOOK/cross-tools/x86/variables.xml
r293bc69 r5470f08 17 17 You will need to set the target triplet for the target architecture, and the 18 18 CPU type. If you do not know what triplet or CPU type you want, 19 you can use the table a t the bottom of this page as a reference. Set19 you can use the table as a reference. Set 20 20 the command using the method listed below:</para> 21 21 … … 23 23 export CLFS_TARGET=<replaceable>[target triplet]</replaceable> 24 24 export CLFS_CPU=<replaceable>[cpu type]</replaceable></userinput></screen> 25 26 <para os="c">Now we will set the architecture of the CPU based27 on the target triplet provided above:</para>28 29 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')</userinput></screen>30 31 <para os="g">Now we will add this to <filename>~/.bashrc</filename>, just in32 case you have to exit and restart building later:</para>33 34 <screen os="h"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc35 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc36 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc37 echo export CLFS_CPU=\""${CLFS_CPU}\"" >> ~/.bashrc</userinput></screen>38 25 39 26 <table os="i"> … … 94 81 </table> 95 82 83 <para os="c">Now we will set the architecture of the CPU based 84 on the target triplet provided above:</para> 85 86 <screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/')</userinput></screen> 87 88 <para os="g">Now we will add this to <filename>~/.bashrc</filename>, just in 89 case you have to exit and restart building later:</para> 90 91 <screen os="h"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 92 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 93 echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc 94 echo export CLFS_CPU=\""${CLFS_CPU}\"" >> ~/.bashrc</userinput></screen> 95 96 96 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.