Changeset 9dc5852 in clfs-embedded for BOOK/cross-tools
- Timestamp:
- Aug 16, 2008, 4:32:01 AM (16 years ago)
- Branches:
- master
- Children:
- 56d186f
- Parents:
- 7884e98
- Location:
- BOOK/cross-tools
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/arm/variables.xml
r7884e98 r9dc5852 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 20 20 href="../x86/variables.xml" 21 xpointer="xpointer(//*[@os='b'])"/>22 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"24 href="../x86/variables.xml"25 xpointer="xpointer(//*[@os='c'])"/>26 27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"28 href="../x86/variables.xml"29 21 xpointer="xpointer(//*[@os='d'])"/> 30 22 … … 33 25 xpointer="xpointer(//*[@os='e'])"/> 34 26 35 <screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 36 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 27 <screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 37 28 38 29 <table os="g"> -
BOOK/cross-tools/common/binutils.xml
r7884e98 r9dc5852 51 51 52 52 <screen os="e"><userinput>../binutils-&binutils-version;/configure --prefix=${CLFS}/cross-tools \ 53 -- host=${CLFS_HOST} --target=${CLFS_TARGET} --with-sysroot=${CLFS}\54 -- disable-nls --enable-shared --disable-multilib</userinput></screen>53 --target=${CLFS_TARGET} --with-sysroot=${CLFS} --disable-nls \ 54 --enable-shared --disable-multilib</userinput></screen> 55 55 56 56 <variablelist os="f"> … … 66 66 </varlistentry> 67 67 68 <varlistentry os="f2">69 <term><parameter>--host=${CLFS_HOST}</parameter></term>70 <listitem>71 <para>When used with --target, this creates a cross-architecture72 executable that creates files for ${CLFS_TARGET} but runs on73 ${CLFS_HOST}.</para>74 </listitem>75 </varlistentry>76 77 68 <varlistentry os="f3"> 78 69 <term><parameter>--target=${CLFS_TARGET}</parameter></term> … … 80 71 <para>When used with --host, this creates a cross-architecture 81 72 executable that creates files for ${CLFS_TARGET} but runs on 82 ${CLFS_HOST}.</para>73 the host system.</para> 83 74 </listitem> 84 75 </varlistentry> -
BOOK/cross-tools/common/gcc-final.xml
r7884e98 r9dc5852 60 60 61 61 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \ 62 -- host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \62 --target=${CLFS_TARGET} --disable-multilib \ 63 63 --with-sysroot=${CLFS} --disable-nls --enable-shared \ 64 64 --enable-languages=c --enable-__cxa_atexit \ -
BOOK/cross-tools/common/gcc-static.xml
r7884e98 r9dc5852 53 53 54 54 <screen os="ae"><userinput>../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \ 55 -- host=${CLFS_HOST} --target=${CLFS_TARGET} --disable-multilib \55 --target=${CLFS_TARGET} --disable-multilib \ 56 56 --with-sysroot=${CLFS} --disable-nls --disable-shared \ 57 57 --disable-threads --enable-languages=c</userinput></screen> -
BOOK/cross-tools/mips/variables.xml
r7884e98 r9dc5852 19 19 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 20 20 href="../x86/variables.xml" 21 xpointer="xpointer(//*[@os='b'])"/>22 23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"24 href="../x86/variables.xml"25 xpointer="xpointer(//*[@os='c'])"/>26 27 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"28 href="../x86/variables.xml"29 21 xpointer="xpointer(//*[@os='d'])"/> 30 22 … … 40 32 xpointer="xpointer(//*[@os='e'])"/> 41 33 42 <screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 43 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 34 <screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc 44 35 echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" >> ~/.bashrc</userinput></screen> 45 36 -
BOOK/cross-tools/x86/variables.xml
r7884e98 r9dc5852 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> 21 22 <screen os="b"><userinput>export CLFS_HOST="$(echo $MACHTYPE | \ 23 sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"</userinput></screen> 24 25 <para os="c">Now you will need to set the target triplet for the target 17 You will need to set the target triplet for the target 26 18 architecture. You can do this by running the same command as above, just 27 19 running it on the target machine. If you can't run the command on the … … 31 23 <screen os="d"><userinput>export CLFS_TARGET="{target triplet}"</userinput></screen> 32 24 33 <para os="e">Now we will add th eseto <filename>~/.bashrc</filename>, just in25 <para os="e">Now we will add this to <filename>~/.bashrc</filename>, just in 34 26 case you have to exit and restart building later:</para> 35 27 36 <screen os="f"><userinput>echo export CLFS_HOST=\""${CLFS_HOST}\"" >> ~/.bashrc 37 echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 28 <screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen> 38 29 39 30 <table os="g">
Note:
See TracChangeset
for help on using the changeset viewer.