source: BOOK/cross-tools/sparc/binutils.xml@ 93adf44a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 93adf44a was de1878b7, checked in by Jim Gifford <clfs@…>, 19 years ago

r652@server (orig r650): jim | 2005-11-08 10:08:49 -0800

r674@server: jim | 2005-11-08 10:08:26 -0800
Added: binutils sparc aout patch


  • Property mode set to 100644
File size: 5.9 KB
RevLine 
[3f8be484]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
20 <sect2 role="package">
21 <title/>
22
23 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
24 href="../../final-system/common/binutils.xml"
25 xpointer="xpointer(//*[@role='package']/para[1])"/>
26
27 <segmentedlist>
28 <segtitle>&buildtime;</segtitle>
29 <segtitle>&diskspace;</segtitle>
30
31 <seglistitem>
32 <seg>Not checked yet</seg>
33 <seg>Not checked yet</seg>
34 </seglistitem>
35 </segmentedlist>
36
37 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
38 href="../../final-system/common/binutils.xml"
39 xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
40
41 </sect2>
42
43 <sect2 role="installation">
44 <title>Installation of Cross Binutils</title>
45
46 <para os="ba">To make sure that the proper syntax is used for a couple of
47 tools, apply the following patch:</para>
48
49<screen os="bb"><userinput>patch -Np1 -i ../&binutils-posix-patch;</userinput></screen>
50
51 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
52 href="../../final-system/sparc/binutils.xml"
53 xpointer="xpointer(//*[@os='s1'])"/>
54
55 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
56 href="../../final-system/sparc/binutils.xml"
57 xpointer="xpointer(//*[@os='s2'])"/>
58
[de1878b7]59 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
60 href="../../final-system/sparc/binutils.xml"
61 xpointer="xpointer(//*[@os='s3'])"/>
62
63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
64 href="../../final-system/sparc/binutils.xml"
65 xpointer="xpointer(//*[@os='s4'])"/>
66
[3f8be484]67 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
68 href="../../final-system/common/binutils.xml"
69 xpointer="xpointer(//*[@os='g'])"/>
70
71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
72 href="../../final-system/common/binutils.xml"
73 xpointer="xpointer(//*[@os='h'])"/>
74
75 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
76 href="../../final-system/common/binutils.xml"
77 xpointer="xpointer(//*[@os='i'])"/>
78
79<screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
80 --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \
81 --disable-nls --enable-shared --enable-64-bit-bfd</userinput></screen>
82
83 <variablelist os="bd">
84 <title>The meaning of the configure options:</title>
85
86 <varlistentry os="bd1">
87 <term><parameter>--prefix=/cross-tools</parameter></term>
88 <listitem>
89 <para>This tells the configure script to prepare to install the
90 package in the <filename class="directory">/cross-tools</filename>
91 directory.</para>
92 </listitem>
93 </varlistentry>
94
95 <varlistentry os="bd2">
96 <term><parameter>--host=${LFS_HOST}</parameter></term>
97 <listitem>
98 <para>This do ...</para>
99 </listitem>
100 </varlistentry>
101
102 <varlistentry os="bd3">
103 <term><parameter>--target=${LFS_TARGET}</parameter></term>
104 <listitem>
105 <para>This do ...</para>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry os="bd4">
110 <term><parameter>--with-lib-path=/tools/lib</parameter></term>
111 <listitem>
112 <para>This tells the configure script to specify the library
113 search path during the compilation of Binutils, resulting in
114 <filename class="directory">/tools/lib</filename> being passed
115 to the linker. This prevents the linker from searching through
116 library directories on the host.</para>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry os="bd5">
121 <term><parameter>--disable-nls</parameter></term>
122 <listitem>
123 <para>This disables internationalization as i18n is not needed for the
124 cross-compile tools.</para>
125 </listitem>
126 </varlistentry>
127
128 <varlistentry os="bd6">
129 <term><parameter>--enable-shared</parameter></term>
130 <listitem>
131 <para>Enable the creation of the shared libraries.</para>
132 </listitem>
133 </varlistentry>
134
135 <varlistentry os="bd7">
136 <term><parameter>--enable-64-bit-bfd</parameter></term>
137 <listitem>
138 <para>This adds 64 bit support to our toolchain.</para>
139 </listitem>
140 </varlistentry>
141
142 </variablelist>
143
144 <para os="be">Compile the package:</para>
145
146<screen os="bf"><userinput>make configure-host
147make headers -C bfd
148make</userinput></screen>
149
150 <variablelist os="bf1">
151 <title>The meaning of the make options:</title>
152
153 <varlistentry>
154 <term><parameter>configure-host</parameter></term>
155 <listitem>
156 <para>This do ...</para>
157 </listitem>
158 </varlistentry>
159
160 <varlistentry>
161 <term><parameter>headers -C bfd</parameter></term>
162 <listitem>
163 <para>This do ...</para>
164 </listitem>
165 </varlistentry>
166
167 </variablelist>
168
169 <para os="bg">Install the package:</para>
170
171<screen os="bh"><userinput>make install</userinput></screen>
172
173 <para os="bi">Copy <filename class="headerfile">libiberty.h</filename> file to
174 <filename class="directory">/tools/include</filename> directory:</para>
175
176<screen os="bj"><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /tools/include</userinput></screen>
177
178 </sect2>
179
180 <sect2 role="content">
181 <title/>
182
183 <para>Details on this package are located in <xref
184 linkend="contents-binutils" role="."/></para>
185
186 </sect2>
187
188</sect1>
Note: See TracBrowser for help on using the repository browser.