Author: manuel Date: 2005-06-03 12:47:40 -0600 (Fri, 03 Jun 2005) New Revision: 5634
Modified: branches/cross-lfs/BOOK/cross-tools/common/binutils.xml Log: Indented cross-tools/common/binutils.xml Modified: branches/cross-lfs/BOOK/cross-tools/common/binutils.xml =================================================================== --- branches/cross-lfs/BOOK/cross-tools/common/binutils.xml 2005-06-03 18:40:41 UTC (rev 5633) +++ branches/cross-lfs/BOOK/cross-tools/common/binutils.xml 2005-06-03 18:47:40 UTC (rev 5634) @@ -1,86 +1,101 @@ <?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"> <!ENTITY % patches-entities SYSTEM "../../patches.ent"> %general-entities; %patches-entities; ]> + <sect1 id="ch-cross-tools-binutils" role="wrap"> -<title>Cross Binutils-&binutils-version;</title> -<?dbhtml filename="binutils.html"?> + <?dbhtml filename="binutils.html"?> -<indexterm zone="ch-cross-tools-binutils"> -<primary sortas="a-Binutils">Binutils</primary> -<secondary>cross tools</secondary></indexterm> + <title>Cross Binutils-&binutils-version;</title> -<sect2 role="package"><title/> -<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" - href="../../final-system/common/binutils.xml" - xpointer="xpointer(/sect1/sect2[1]/para[1])"/> + <indexterm zone="ch-cross-tools-binutils"> + <primary sortas="a-Binutils">Binutils</primary> + <secondary>cross tools</secondary></indexterm> -<segmentedlist> -<segtitle>&buildtime;</segtitle> -<segtitle>&diskspace;</segtitle> -<seglistitem><seg>1.5 SBU</seg><seg>108 MB</seg></seglistitem> -</segmentedlist> + <sect2 role="package"> + <title/> -<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" - href="../../final-system/common/binutils.xml" - xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/> + <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" + href="../../final-system/common/binutils.xml" + xpointer="xpointer(id('package-binutils')/para[1])"/> -</sect2> + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> -<sect2 role="installation"> -<title>Installation of Cross Binutils</title> + <seglistitem> + <seg>Not checked yet</seg> + <seg>Not checked yet</seg> + </seglistitem> + </segmentedlist> -<para>To make sure that we use the proper syntax for a couple of tools, we apply the following patch:</para> + <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" + href="../../final-system/common/binutils.xml" + xpointer="xpointer(id('package-binutils')/segmentedlist[2])"/> + </sect2> + + <sect2 role="installation"> + <title>Installation of Cross Binutils</title> + + <para>To make sure that we use the proper syntax for a couple of + tools, we apply the following patch:</para> + <screen><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen> -<para>Create a separate build directory again:</para> + <para>Create a separate build directory again:</para> <screen><userinput>mkdir ../binutils-build cd ../binutils-build</userinput></screen> -<para>Prepare Binutils for compilation:</para> + <para>Prepare Binutils for compilation:</para> <screen><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \ --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \ --disable-nls --enable-shared --enable-64-bit-bfd</userinput></screen> -<para>The meaning of the new configure option:</para> + <variablelist> + <title>The meaning of the new configure option:</title> -<variablelist> -<varlistentry> -<term><parameter>--with-lib-path=/tools/lib</parameter></term> -<listitem><para>This tells the configure script to specify the library -search path during the compilation of Binutils, resulting in <filename -class="directory">/tools/lib</filename> being passed to the linker. -This prevents the linker from searching through library directories on -the host.</para></listitem> -</varlistentry> -</variablelist> + <varlistentry> + <term><parameter>--with-lib-path=/tools/lib</parameter></term> + <listitem> + <para>This tells the configure script to specify the library + search path during the compilation of Binutils, resulting in + <filename class="directory">/tools/lib</filename> being passed + to the linker. This prevents the linker from searching through + library directories on the host.</para> + </listitem> + </varlistentry> + </variablelist> -<para>Compile the package:</para> + <para>Compile the package:</para> <screen><userinput>make configure-host make headers -C bfd make</userinput></screen> -<para>Install the package:</para> + <para>Install the package:</para> <screen><userinput>make install</userinput></screen> -<para>Copy libiberty.h file to /tools/include directory:</para> + <para>Copy <filename class="headerfile">libiberty.h</filename> file to + <filename class="directory">/tools/include</filename> directory:</para> <screen><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /tools/include</userinput></screen> -</sect2> + </sect2> -<sect2 role="content"><title/> -<para>Details on this package are located in <xref -linkend="contents-binutils" role="."/></para> -</sect2> + <sect2 role="content"> + <title/> + <para>Details on this package are located in <xref + linkend="contents-binutils" role="."/></para> + + </sect2> + </sect1> - -- http://linuxfromscratch.org/mailman/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
