Author: manuel Date: 2005-06-03 12:40:41 -0600 (Fri, 03 Jun 2005) New Revision: 5633
Modified: branches/cross-lfs/BOOK/cross-tools/common/cflags.xml branches/cross-lfs/BOOK/cross-tools/common/variables.xml Log: Indented cross-tools/common/variables.xml Modified: branches/cross-lfs/BOOK/cross-tools/common/cflags.xml =================================================================== --- branches/cross-lfs/BOOK/cross-tools/common/cflags.xml 2005-06-03 18:20:27 UTC (rev 5632) +++ branches/cross-lfs/BOOK/cross-tools/common/cflags.xml 2005-06-03 18:40:41 UTC (rev 5633) @@ -15,9 +15,9 @@ <para>During the building of the cross-compile tools you will need to set a few variables that will be dependent on your particular needs. - The first variable will be the of the <envar>HOST</envar> machine. To - disable <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> use the - following command:</para> + The first variable will be the triplet of the <envar>HOST</envar> + machine. To disable <envar>CFLAGS</envar> and <envar>CXXFLAGS</envar> + use the following command:</para> <screen><userinput>export CFLAGS="" export CXXFLAGS=""</userinput></screen> Modified: branches/cross-lfs/BOOK/cross-tools/common/variables.xml =================================================================== --- branches/cross-lfs/BOOK/cross-tools/common/variables.xml 2005-06-03 18:20:27 UTC (rev 5632) +++ branches/cross-lfs/BOOK/cross-tools/common/variables.xml 2005-06-03 18:40:41 UTC (rev 5633) @@ -1,139 +1,151 @@ <?xml version="1.0" encoding="ISO-8859-1"?> -<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ +<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" + "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ <!ENTITY % general-entities SYSTEM "../../general.ent"> %general-entities; ]> + <sect1 id="ch-cross-tools-variables"> -<title>Build Variables</title> -<?dbhtml filename="variables.html"?> + <?dbhtml filename="variables.html"?> -<para>We will need to install config.guess from binutils:</para> + <title>Build Variables</title> + <para>We will need to install <filename>config.guess</filename> + from Binutils:</para> + <screen><userinput>install -d /cross-tools/bin tar -xjvf binutils-&binutils-version;.tar.bz2 binutils-&binutils-version;/config.guess install -m755 binutils-&binutils-version;/config.guess /cross-tools/bin</userinput></screen> -<para>Configuration # 1 - Creating different architecture tools.</para> + <bridgehead renderas="sect4">Configuration # 1 - Creating different + architecture tools.</bridgehead> -<para>During the building of the cross-compile tools you will need to set a few variables -that will be dependent on your particular needs. The first variable will be the of the -HOST machine. You will need to set the CHOST triplet to match your particular needs. -To set this information you can issue the following command:</para> + <para>During the building of the cross-compile tools you will need to + set a few variables that will be dependent on your particular needs. + The first variable will be the triplet of the <envar>HOST</envar> machine. + You will need to set the <envar>CHOST</envar> triplet to match your + particular needs. To set this information you can issue the following + command:</para> <screen><userinput>export LFS_HOST="`config.guess`"</userinput></screen> -<para>Now you will need to set the target triplet for the target architecure. You -can do this by running the same command as above, just running it on the -target machine. If you can't run the command on the target machine, you can -use the table at the bottom of this page. Set the command using the -method listed below:</para> + <para>Now you will need to set the target triplet for the target + architecure. You can do this by running the same command as above, just + running it on the target machine. If you can't run the command on the + target machine, you can use the table at the bottom of this page. Set + the command using the method listed below:</para> <screen><userinput>export LFS_TARGET="{target triplet}"</userinput></screen> -<para>Configuration # 2 - Creating same architecture tools.</para> + <bridgehead renderas="sect4">Configuration # 2 - Creating same + architecture tools.</bridgehead> -<para>You can also create "clean" tools on your current distro. This will -ensure that you have all the prerequisites for the LFS build.</para> + <para>You can also create <quote>clean</quote> tools on your current + distro. This will ensure that you have all the prerequisites for the + LFS build.</para> -<para>You will need to set your host target triplet a little differently. -To set this information you can issue the following commands:</para> + <para>You will need to set your host target triplet a little differently. + To set this information you can issue the following commands:</para> <screen><userinput>export LFS_HOST="`config.guess | sed -e 's/unknown/cross/g' -e 's/pc/cross/g'`"</userinput></screen> -<para>Now you will need to set the target triplet for the target, which -in this case is very simple. Set the command using the method listed below:</para> + <para>Now you will need to set the target triplet for the target, which + in this case is very simple. Set the command using the method listed + below:</para> <screen><userinput>export LFS_TARGET="`config.guess`"</userinput></screen> -<para>Now lets verify are targets are set before we continue on. Use -the following command to check you host and target variables:</para> + <para>Now lets verify all targets are set before we continue on. Use + the following command to check you host and target variables:</para> <screen><userinput>echo "We are building for ${LFS_TARGET}" echo "Our host is ${LFS_HOST}"</userinput></screen> -<para>Now we will add these to ~/.bashrc, just in -case you have to exit and restart building later:</para> + <para>Now we will add these to ~/.bashrc, just in + case you have to exit and restart building later:</para> <screen><userinput>echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc echo export LFS_TARGET=\""${LFS_TARGET}\"" >> ~/.bashrc</userinput></screen> -<para>List of architectures, target triplets, recommended book</para> + <bridgehead renderas="sect4">List of architectures, target triplets, + and recommended book</bridgehead> -<table><title>Target Triplets</title> - <tgroup cols="2" align="center"> - <colspec colname="Processor"/> - <colspec colname="Triplet"/> - <colspec colname="Book"/> - <thead> + <table> + <title>Target Triplets</title> + <tgroup cols="2" align="center"> + <colspec colname="Processor"/> + <colspec colname="Triplet"/> + <colspec colname="Book"/> + <thead> <row> - <entry>Architecture</entry> - <entry>Target Triplet</entry> - <entry>LFS Book</entry> + <entry>Architecture</entry> + <entry>Target Triplet</entry> + <entry>LFS Book</entry> </row> - </thead> - <tbody> + </thead> + <tbody> <row> - <entry>Pentium, K6, 586 Compatibles</entry> - <entry>i586-pc-linux-gnu</entry> - <entry>Intel/AMD x86</entry> + <entry>Pentium, K6, 586 Compatibles</entry> + <entry>i586-pc-linux-gnu</entry> + <entry>Intel/AMD x86</entry> </row> <row> - <entry>Pentium II, Pentium III, Pentium 4</entry> - <entry>i686-pc-linux-gnu</entry> - <entry>Intel/AMD x86</entry> + <entry>Pentium II, Pentium III, Pentium 4</entry> + <entry>i686-pc-linux-gnu</entry> + <entry>Intel/AMD x86</entry> </row> <row> - <entry>Athlon, Duron</entry> - <entry>i686-pc-linux-gnu</entry> - <entry>Intel/AMD x86</entry> + <entry>Athlon, Duron</entry> + <entry>i686-pc-linux-gnu</entry> + <entry>Intel/AMD x86</entry> </row> <row> - <entry>Athlon64</entry> - <entry>x86_64-pc-linux-gnu</entry> - <entry>x86_64</entry> + <entry>Athlon64</entry> + <entry>x86_64-pc-linux-gnu</entry> + <entry>x86_64</entry> </row> <row> - <entry>PowerPC</entry> - <entry>powerpc-unknown-linux-gnu</entry> - <entry>PowerPC</entry> + <entry>PowerPC</entry> + <entry>powerpc-unknown-linux-gnu</entry> + <entry>PowerPC</entry> </row> <row> - <entry>PowerPC64</entry> - <entry>ppc64-unknown-linux-gnu</entry> - <entry>PowerPC</entry> + <entry>PowerPC64</entry> + <entry>ppc64-unknown-linux-gnu</entry> + <entry>PowerPC</entry> </row> <row> - <entry>MIPS</entry> - <entry>mips-unknown-linux-gnu</entry> - <entry>MIPS 32 Bit</entry> + <entry>MIPS</entry> + <entry>mips-unknown-linux-gnu</entry> + <entry>MIPS 32 Bit</entry> </row> <row> - <entry>MIPS Little Endian</entry> - <entry>mipsel-unknown-linux-gnu</entry> - <entry>MIPS 32 Bit</entry> + <entry>MIPS Little Endian</entry> + <entry>mipsel-unknown-linux-gnu</entry> + <entry>MIPS 32 Bit</entry> </row> <row> - <entry>MIPS 64</entry> - <entry>mips64-unknown-linux-gnu</entry> - <entry>MIPS 64 Bit</entry> + <entry>MIPS 64</entry> + <entry>mips64-unknown-linux-gnu</entry> + <entry>MIPS 64 Bit</entry> </row> <row> - <entry>MIPS 64 Little Endian</entry> - <entry>mips64el-unknown-linux-gnu</entry> - <entry>MIPS 64 Bit</entry> + <entry>MIPS 64 Little Endian</entry> + <entry>mips64el-unknown-linux-gnu</entry> + <entry>MIPS 64 Bit</entry> </row> - <row> - <entry>Sparc32</entry> - <entry>sparc-unknown-linux-gnu</entry> - <entry>Sparc32</entry> + <row> + <entry>Sparc32</entry> + <entry>sparc-unknown-linux-gnu</entry> + <entry>Sparc32</entry> </row> - <row> - <entry>UltraSPARC (Sparc64)</entry> - <entry>sparc64-unknown-linux-gnu</entry> - <entry>Sparc64</entry> + <row> + <entry>UltraSPARC (Sparc64)</entry> + <entry>sparc64-unknown-linux-gnu</entry> + <entry>Sparc64</entry> </row> - </tbody> - </tgroup> -</table> + </tbody> + </tgroup> + </table> </sect1> -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
