Changeset 5470f08 in clfs-embedded for BOOK/cross-tools/mips
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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>
Note:
See TracChangeset
for help on using the changeset viewer.