source: cross-tools/sparc/binutils.xml@ 3b9c9f7

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