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

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

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 5.6 KB
Line 
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
59 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
60 href="../../final-system/common/binutils.xml"
61 xpointer="xpointer(//*[@os='g'])"/>
62
63 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
64 href="../../final-system/common/binutils.xml"
65 xpointer="xpointer(//*[@os='h'])"/>
66
67 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
68 href="../../final-system/common/binutils.xml"
69 xpointer="xpointer(//*[@os='i'])"/>
70
71<screen os="bc"><userinput>../binutils-&binutils-version;/configure --prefix=/cross-tools \
72 --host=${LFS_HOST} --target=${LFS_TARGET} --with-lib-path=/tools/lib \
73 --disable-nls --enable-shared --enable-64-bit-bfd</userinput></screen>
74
75 <variablelist os="bd">
76 <title>The meaning of the configure options:</title>
77
78 <varlistentry os="bd1">
79 <term><parameter>--prefix=/cross-tools</parameter></term>
80 <listitem>
81 <para>This tells the configure script to prepare to install the
82 package in the <filename class="directory">/cross-tools</filename>
83 directory.</para>
84 </listitem>
85 </varlistentry>
86
87 <varlistentry os="bd2">
88 <term><parameter>--host=${LFS_HOST}</parameter></term>
89 <listitem>
90 <para>This do ...</para>
91 </listitem>
92 </varlistentry>
93
94 <varlistentry os="bd3">
95 <term><parameter>--target=${LFS_TARGET}</parameter></term>
96 <listitem>
97 <para>This do ...</para>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry os="bd4">
102 <term><parameter>--with-lib-path=/tools/lib</parameter></term>
103 <listitem>
104 <para>This tells the configure script to specify the library
105 search path during the compilation of Binutils, resulting in
106 <filename class="directory">/tools/lib</filename> being passed
107 to the linker. This prevents the linker from searching through
108 library directories on the host.</para>
109 </listitem>
110 </varlistentry>
111
112 <varlistentry os="bd5">
113 <term><parameter>--disable-nls</parameter></term>
114 <listitem>
115 <para>This disables internationalization as i18n is not needed for the
116 cross-compile tools.</para>
117 </listitem>
118 </varlistentry>
119
120 <varlistentry os="bd6">
121 <term><parameter>--enable-shared</parameter></term>
122 <listitem>
123 <para>Enable the creation of the shared libraries.</para>
124 </listitem>
125 </varlistentry>
126
127 <varlistentry os="bd7">
128 <term><parameter>--enable-64-bit-bfd</parameter></term>
129 <listitem>
130 <para>This adds 64 bit support to our toolchain.</para>
131 </listitem>
132 </varlistentry>
133
134 </variablelist>
135
136 <para os="be">Compile the package:</para>
137
138<screen os="bf"><userinput>make configure-host
139make headers -C bfd
140make</userinput></screen>
141
142 <variablelist os="bf1">
143 <title>The meaning of the make options:</title>
144
145 <varlistentry>
146 <term><parameter>configure-host</parameter></term>
147 <listitem>
148 <para>This do ...</para>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry>
153 <term><parameter>headers -C bfd</parameter></term>
154 <listitem>
155 <para>This do ...</para>
156 </listitem>
157 </varlistentry>
158
159 </variablelist>
160
161 <para os="bg">Install the package:</para>
162
163<screen os="bh"><userinput>make install</userinput></screen>
164
165 <para os="bi">Copy <filename class="headerfile">libiberty.h</filename> file to
166 <filename class="directory">/tools/include</filename> directory:</para>
167
168<screen os="bj"><userinput>cp ../binutils-&binutils-version;/include/libiberty.h /tools/include</userinput></screen>
169
170 </sect2>
171
172 <sect2 role="content">
173 <title/>
174
175 <para>Details on this package are located in <xref
176 linkend="contents-binutils" role="."/></para>
177
178 </sect2>
179
180</sect1>
Note: See TracBrowser for help on using the repository browser.