Changeset 7030b60 for BOOK/cross-tools
- Timestamp:
- Feb 15, 2007, 11:32:17 PM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 9aba4a0
- Parents:
- 8ba5b4d
- Location:
- BOOK/cross-tools
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/alpha/variables.xml
r8ba5b4d r7030b60 22 22 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86 _64/variables.xml"24 href="../x86/variables.xml" 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 -
BOOK/cross-tools/mips/variables.xml
r8ba5b4d r7030b60 22 22 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86 _64/variables.xml"24 href="../x86/variables.xml" 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 -
BOOK/cross-tools/mips64-64/variables.xml
r8ba5b4d r7030b60 22 22 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86 _64/variables.xml"24 href="../x86/variables.xml" 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 -
BOOK/cross-tools/ppc/variables.xml
r8ba5b4d r7030b60 22 22 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86 _64/variables.xml"24 href="../x86/variables.xml" 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 -
BOOK/cross-tools/ppc64/variables.xml
r8ba5b4d r7030b60 22 22 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86 _64/variables.xml"24 href="../x86/variables.xml" 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 -
BOOK/cross-tools/sparc/variables.xml
r8ba5b4d r7030b60 22 22 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86 _64/variables.xml"24 href="../x86/variables.xml" 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 -
BOOK/cross-tools/sparc64-64/variables.xml
r8ba5b4d r7030b60 22 22 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86 _64/variables.xml"24 href="../x86/variables.xml" 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 -
BOOK/cross-tools/x86/variables.xml
r8ba5b4d r7030b60 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 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> 17 The first variable will be the triplet of the host machine, which will be 18 put into the <envar>CLFS_HOST</envar> variable. To account for the 19 possibility that the host and target are the same arch, as cross-compiling 20 won't work when host and target are the same, part of the triplet needs to 21 be changed slightly to add "cross". Set <envar>CLFS_HOST</envar> using the 22 following command:</para> 21 23 22 24 <screen os="b"><userinput>export CLFS_HOST="$(echo $MACHTYPE | sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"</userinput></screen> 23 25 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> 26 <para os="c">Now you will need to set the triplet for the target 27 architecture. Set the target variable using the following command:</para> 29 28 30 <screen os="d"><userinput>export CLFS_TARGET=" {target triplet}"</userinput></screen>29 <screen os="d"><userinput>export CLFS_TARGET="[target triplet]"</userinput></screen> 31 30 32 <bridgehead renderas="sect4">Copy settings to Environment</bridgehead> 31 <para os="t1">Replace [target triplet] with the appropriate machine triplet 32 using the table at the bottom of the page.</para> 33 33 34 <para os="e">Now we will add these to <filename>~/.bashrc</filename>, just in 34 <bridgehead renderas="sect4">Copy settings to the Environment</bridgehead> 35 36 <para os="e">Now add these to <filename>~/.bashrc</filename>, just in 35 37 case you have to exit and restart building later:</para> 36 38 -
BOOK/cross-tools/x86_64-64/variables.xml
r8ba5b4d r7030b60 22 22 23 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86 _64/variables.xml"24 href="../x86/variables.xml" 25 25 xpointer="xpointer(//*[@os='c'])"/> 26 26 -
BOOK/cross-tools/x86_64/variables.xml
r8ba5b4d r7030b60 21 21 xpointer="xpointer(//*[@os='b'])"/> 22 22 23 <para os="c">Now we will set our Target Triplet:</para> 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 24 href="../x86/variables.xml" 25 xpointer="xpointer(//*[@os='c'])"/> 24 26 25 27 <screen os="d"><userinput>export CLFS_TARGET="x86_64-unknown-linux-gnu"</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.