Changeset 33bc2cb in clfs-embedded for BOOK/cross-tools/mips/variables.xml
- Timestamp:
- Nov 11, 2006, 8:28:14 PM (16 years ago)
- Branches:
- master
- Children:
- 02ef21b
- Parents:
- 99fc891
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/mips/variables.xml
r99fc891 r33bc2cb 13 13 <bridgehead renderas="sect4">Setting Host and Target</bridgehead> 14 14 15 <para os="a">During the building of the cross-compile tools you will need to 16 set a few variables that will be dependent on your particular needs. 17 The first variable will be the triplet of the <envar>HOST</envar> machine. 18 You will need to set the <envar>CHOST</envar> triplet to match your 19 particular needs. To set this information you can issue the following 20 command:</para> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 16 href="../x86/variables.xml" 17 xpointer="xpointer(//*[@os='a'])"/> 21 18 22 <screen os="b"><userinput>export CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"</userinput></screen> 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 20 href="../x86/variables.xml" 21 xpointer="xpointer(//*[@os='b'])"/> 23 22 24 <para os="c">Now you will need to set the target triplet for the target 25 architecture. You can do this by running the same command as above, just 26 running it on the target machine. If you can't run the command on the 27 target machine, you can use the table at the bottom of this page. Set 28 the command using the method listed below:</para> 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86/variables.xml" 25 xpointer="xpointer(//*[@os='c'])"/> 29 26 30 <screen os="d"><userinput>export CLFS_TARGET="{target tripplet}"</userinput></screen> 27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 28 href="../x86/variables.xml" 29 xpointer="xpointer(//*[@os='d'])"/> 31 30 32 <para os="e">Now we will add these to <filename>~/.bashrc</filename>, just in 33 case you have to exit and restart building later:</para> 31 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 32 href="../x86/variables.xml" 33 xpointer="xpointer(//*[@os='e'])"/> 34 34 35 <screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 36 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 36 href="../x86/variables.xml" 37 xpointer="xpointer(//*[@os='f'])"/> 37 38 38 39 <table os="g">
Note: See TracChangeset
for help on using the changeset viewer.