source: cross-tools/common/binutils.xml@ 30bc2ab

Last change on this file since 30bc2ab was 48f8316, checked in by Jim Gifford <clfs@…>, 19 years ago

r656@server (orig r654): manuel | 2005-11-08 12:18:58 -0800
Preparations to remove SBUs and DUs. Chapter cross-tools.

  • Property mode set to 100644
File size: 4.8 KB
RevLine 
[bf8c11f]1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 <!ENTITY % patches-entities SYSTEM "../../patches.ent">
6 %general-entities;
7 %patches-entities;
8]>
9
10<sect1 id="ch-cross-tools-binutils" role="wrap">
11 <?dbhtml filename="binutils.html"?>
12
13 <title>Cross Binutils-&binutils-version;</title>
14
15 <indexterm zone="ch-cross-tools-binutils">
16 <primary sortas="a-Binutils">Binutils</primary>
17 <secondary>cross tools</secondary>
18 </indexterm>
19
[48f8316]20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../../final-system/common/binutils.xml"
22 xpointer="xpointer(//*[@role='package'])"/>
[bf8c11f]23
24 <sect2 role="installation">
25 <title>Installation of Cross Binutils</title>
26
27 <para os="ba">To make sure that the proper syntax is used for a couple of
28 tools, apply the following patch:</para>
29
30<screen os="bb"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
31
32 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
33 href="../../final-system/common/binutils.xml"
34 xpointer="xpointer(//*[@os='g'])"/>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../../final-system/common/binutils.xml"
38 xpointer="xpointer(//*[@os='h'])"/>
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../../final-system/common/binutils.xml"
42 xpointer="xpointer(//*[@os='i'])"/>
43
44<screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
45 --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \
46 --disable-nls --enable-shared --enable-64-bit-bfd</userinput></screen>
47
48 <variablelist os="bd">
49 <title>The meaning of the configure options:</title>
50
51 <varlistentry os="bd1">
52 <term><parameter>--prefix=/cross-tools</parameter></term>
53 <listitem>
54 <para>This tells the configure script to prepare to install the
55 package in the <filename class="directory">/cross-tools</filename>
56 directory.</para>
57 </listitem>
58 </varlistentry>
59
60 <varlistentry os="bd2">
61 <term><parameter>--host=${LFS_HOST}</parameter></term>
62 <listitem>
63 <para>This do ...</para>
64 </listitem>
65 </varlistentry>
66
67 <varlistentry os="bd3">
68 <term><parameter>--target=${LFS_TARGET}</parameter></term>
69 <listitem>
70 <para>This do ...</para>
71 </listitem>
72 </varlistentry>
73
74 <varlistentry os="bd4">
75 <term><parameter>--with-lib-path=/tools/lib</parameter></term>
76 <listitem>
77 <para>This tells the configure script to specify the library
78 search path during the compilation of Binutils, resulting in
79 <filename class="directory">/tools/lib</filename> being passed
80 to the linker. This prevents the linker from searching through
81 library directories on the host.</para>
82 </listitem>
83 </varlistentry>
84
85 <varlistentry os="bd5">
86 <term><parameter>--disable-nls</parameter></term>
87 <listitem>
88 <para>This disables internationalization as i18n is not needed for the
89 cross-compile tools.</para>
90 </listitem>
91 </varlistentry>
92
93 <varlistentry os="bd6">
94 <term><parameter>--enable-shared</parameter></term>
95 <listitem>
96 <para>Enable the creation of the shared libraries.</para>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry os="bd7">
101 <term><parameter>--enable-64-bit-bfd</parameter></term>
102 <listitem>
103 <para>This adds 64 bit support to our toolchain.</para>
104 </listitem>
105 </varlistentry>
106
107 </variablelist>
108
109 <para os="be">Compile the package:</para>
110
111<screen os="bf"><userinput>make configure-host
112make</userinput></screen>
113
114 <variablelist os="bf1">
115 <title>The meaning of the make options:</title>
116
117 <varlistentry>
118 <term><parameter>configure-host</parameter></term>
119 <listitem>
120 <para>This do ...</para>
121 </listitem>
122 </varlistentry>
123
124 <varlistentry>
125 <term><parameter>headers -C bfd</parameter></term>
126 <listitem>
127 <para>This do ...</para>
128 </listitem>
129 </varlistentry>
130
131 </variablelist>
132
133 <para os="bg">Install the package:</para>
134
135<screen os="bh"><userinput>make install</userinput></screen>
136
137 <para os="bi">Copy <filename class="headerfile">libiberty.h</filename> file to
138 <filename class="directory">/tools/include</filename> directory:</para>
139
140<screen os="bj"><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /tools/include</userinput></screen>
141
142 </sect2>
143
144 <sect2 role="content">
145 <title/>
146
147 <para>Details on this package are located in <xref
148 linkend="contents-binutils" role="."/></para>
149
150 </sect2>
151
152</sect1>
Note: See TracBrowser for help on using the repository browser.