Changeset f5262133
- Timestamp:
- Jun 5, 2009, 1:51:17 PM (15 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- e0592ba
- Parents:
- 0c509a2
- Location:
- BOOK/cross-tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/native/variables.xml
r0c509a2 rf5262133 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 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> 15 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 16 href="../x86/variables.xml" 17 xpointer="xpointer(//*[@os='a'])"/> 23 18 24 <screen os="b"><userinput>export CLFS_HOST="$(echo $MACHTYPE | \ 25 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'])"/> 26 22 27 <para os="c">Now you will need to set the triplet for the target 28 architecture. Set the target variable using the following command:</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 27 <screen os="d"><userinput>export CLFS_TARGET="$MACHTYPE"</userinput></screen> 31 28 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 href="../x86/variables.xml" 31 xpointer="xpointer(//*[@os='e'])"/> 32 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 34 href="../x86/variables.xml" 35 xpointer="xpointer(//*[@os='f'])"/> 32 36 </sect1> -
BOOK/cross-tools/native64/variables.xml
r0c509a2 rf5262133 46 46 the information.</para> 47 47 48 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 49 href="../x86/variables.xml" 50 xpointer="xpointer(//*[@os='e'])"/> 51 52 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 53 href="../x86_64/variables.xml" 54 xpointer="xpointer(//*[@os='f'])"/> 55 48 56 </sect1> -
BOOK/cross-tools/x86/variables.xml
r0c509a2 rf5262133 22 22 following command:</para> 23 23 24 <screen os="b"><userinput>export CLFS_HOST="$(echo $ MACHTYPE| \25 sed "s/$(echo $ MACHTYPE| cut -d- -f2)/cross/")"</userinput></screen>24 <screen os="b"><userinput>export CLFS_HOST="$(echo ${MACHTYPE} | \ 25 sed "s/$(echo ${MACHTYPE{ | cut -d- -f2)/cross/")"</userinput></screen> 26 26 27 27 <para os="c">Now you will need to set the triplet for the target
Note:
See TracChangeset
for help on using the changeset viewer.