1 | @c |
---|
2 | @c COPYRIGHT (c) 1988-2002. |
---|
3 | @c On-Line Applications Research Corporation (OAR). |
---|
4 | @c All rights reserved. |
---|
5 | @c |
---|
6 | @c $Id$ |
---|
7 | @c |
---|
8 | |
---|
9 | @chapter Prebuilt Toolset Executables |
---|
10 | |
---|
11 | Precompiled toolsets are available for Linux, Cygwin, FreeBSD, |
---|
12 | and Solaris. These are packaged in the following formats: |
---|
13 | |
---|
14 | @itemize @bullet |
---|
15 | @item Linux - RPM |
---|
16 | @item Cygwin - tar.bz2 |
---|
17 | @item Solaris - tar.bz2 |
---|
18 | @end itemize |
---|
19 | |
---|
20 | RPM is an acronym for the RPM Package Manager. RPM is the |
---|
21 | native package installer for many Linux distributions including |
---|
22 | RedHat, SuSE, and Fedora. |
---|
23 | |
---|
24 | The prebuilt binaries are intended to be easy to install and |
---|
25 | the instructions are similar regardless of the host environment. |
---|
26 | There are a few structural issues with the packaging of the RTEMS |
---|
27 | Cross Toolset binaries that you need to be aware of. |
---|
28 | |
---|
29 | @enumerate |
---|
30 | @item There are dependencies between the various packages. |
---|
31 | This requires that certain packages be installed before others may be. |
---|
32 | Some packaging formats enforce this dependency. |
---|
33 | |
---|
34 | @item Some packages are target CPU family independent and shared |
---|
35 | across all target architectures. These are referred to as |
---|
36 | "base" packages. |
---|
37 | |
---|
38 | @item Depending upon the version of GCC as well as the development |
---|
39 | host and target CPU combination, pre-built supplemental packages may |
---|
40 | be provided for Ada (gnat), Chill, Java (gcj), Fortran (g77), and |
---|
41 | Objective-C (objc). These binaries are strictly optional. |
---|
42 | |
---|
43 | @end enumerate |
---|
44 | |
---|
45 | NOTE: Installing toolset binaries does not install RTEMS itself, only |
---|
46 | the tools required to build RTEMS. See @ref{Building RTEMS} for the next |
---|
47 | step in the process. |
---|
48 | |
---|
49 | @section RPMs |
---|
50 | |
---|
51 | This section provides information on installing and removing RPMs. |
---|
52 | |
---|
53 | @subsection Installing RPMs |
---|
54 | |
---|
55 | The following is a sample session illustrating the installation |
---|
56 | of a C/C++ toolset targeting the SPARC architecture. |
---|
57 | |
---|
58 | @example |
---|
59 | rpm -U @value{RTEMSRPMPREFIX}binutils-common-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.i386.rpm |
---|
60 | rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-binutils-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.i386.rpm |
---|
61 | rpm -U @value{RTEMSRPMPREFIX}gcc-common-@value{GCCVERSION}-@value{GCCRPMRELEASE}.i386.rpm |
---|
62 | rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-newlib-@value{NEWLIBVERSION}-@value{GCCRPMRELEASE}.i386.rpm |
---|
63 | rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-@value{GCCVERSION}-@value{GCCRPMRELEASE}.i386.rpm |
---|
64 | rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-c++-@value{GCCVERSION}-@value{GCCRPMRELEASE}.i386.rpm |
---|
65 | rpm -U @value{RTEMSRPMPREFIX}gdb-common-@value{GDBVERSION}-@value{GDBRPMRELEASE}.i386.rpm |
---|
66 | rpm -U @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gdb-@value{GDBVERSION}-@value{GDBRPMRELEASE}.i386.rpm |
---|
67 | @end example |
---|
68 | |
---|
69 | Upon successful completion of the above command sequence, a |
---|
70 | C/C++ cross development toolset targeting the SPARC is |
---|
71 | installed in @code{@value{RTEMSPREFIX}}. In order to use this toolset, |
---|
72 | the directory @code{@value{RTEMSPREFIX}/bin} must be included in your |
---|
73 | PATH. |
---|
74 | |
---|
75 | Once you have successfully installed the RPMs for BINUTILS, GCC, |
---|
76 | NEWLIB, and GDB, then you may proceed directly to @ref{Building RTEMS}. |
---|
77 | |
---|
78 | @subsection Determining Which RTEMS RPMs are Installed |
---|
79 | |
---|
80 | The following command will report which RTEMS RPMs are currently |
---|
81 | installed: |
---|
82 | |
---|
83 | @example |
---|
84 | rpm -q -g @value{RTEMSRPMGROUP} |
---|
85 | @end example |
---|
86 | |
---|
87 | @subsection Removing RPMs |
---|
88 | |
---|
89 | The following is a sample session illustrating the removal |
---|
90 | of a C/C++ toolset targeting the SPARC architecture. |
---|
91 | |
---|
92 | @example |
---|
93 | rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gdb |
---|
94 | rpm -e @value{RTEMSRPMPREFIX}gdb-common |
---|
95 | rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-c++ |
---|
96 | rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc |
---|
97 | rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-newlib |
---|
98 | rpm -e @value{RTEMSRPMPREFIX}gcc-common |
---|
99 | rpm -e @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-binutils |
---|
100 | rpm -e @value{RTEMSRPMPREFIX}binutils-common |
---|
101 | @end example |
---|
102 | |
---|
103 | NOTE: If you have installed any RTEMS BSPs, then it is likely that |
---|
104 | RPM will complain about not being able to remove everything. |
---|
105 | |
---|
106 | @section Zipped Tar Files |
---|
107 | |
---|
108 | This section provides information on installing and removing |
---|
109 | Zipped Tar Files (e.g .tar.gz or .tar.bz2). |
---|
110 | |
---|
111 | @subsection Installing Zipped Tar Files |
---|
112 | |
---|
113 | The following is a sample session illustrating the installation |
---|
114 | of a C/C++ toolset targeting the SPARC architecture assuming |
---|
115 | that GNU tar is installed as @code{tar} for a set of archive |
---|
116 | files compressed with GNU Zip (gzip): |
---|
117 | |
---|
118 | @example |
---|
119 | cd / |
---|
120 | tar xzf @value{RTEMSRPMPREFIX}binutils-common-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.tar.gz |
---|
121 | tar xzf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-binutils-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.tar.gz |
---|
122 | tar xzf @value{RTEMSRPMPREFIX}gcc-common-@value{GCCVERSION}-@value{GCCRPMRELEASE}.tar.gz |
---|
123 | tar xzf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-@value{GCCVERSION}-@value{GCCRPMRELEASE}.tar.gz |
---|
124 | tar xzf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-newlib-@value{NEWLIBVERSION}-@value{GCCRPMRELEASE}.tar.gz |
---|
125 | tar xzf @value{RTEMSRPMPREFIX}gdb-common-@value{GDBVERSION}-@value{GDBRPMRELEASE}.tar.gz |
---|
126 | tar xzf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gdb-@value{GDBVERSION}-@value{GDBRPMRELEASE}.tar.gz |
---|
127 | @end example |
---|
128 | |
---|
129 | The following command set is the equivalent command sequence |
---|
130 | for the same toolset assuming that is was compressed with |
---|
131 | GNU BZip (bzip2): |
---|
132 | |
---|
133 | @example |
---|
134 | cd / |
---|
135 | tar xjf @value{RTEMSRPMPREFIX}binutils-common-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.tar.bz2 |
---|
136 | tar xjf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-binutils-@value{BINUTILSVERSION}-@value{BINUTILSRPMRELEASE}.tar.bz2 |
---|
137 | tar xjf @value{RTEMSRPMPREFIX}gcc-common-@value{GCCVERSION}-@value{GCCRPMRELEASE}.tar.bz2 |
---|
138 | tar xjf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-newlib-@value{NEWLIBVERSION}-@value{GCCRPMRELEASE}.tar.bz2 |
---|
139 | tar xjf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gcc-@value{GCCVERSION}-@value{GCCRPMRELEASE}.tar.bz2 |
---|
140 | tar xjf @value{RTEMSRPMPREFIX}gdb-common-@value{GDBVERSION}-@value{GDBRPMRELEASE}.tar.bz2 |
---|
141 | tar xjf @value{RTEMSRPMPREFIX}sparc-rtems@value{RTEMSAPI}-gdb-@value{GDBVERSION}-@value{GDBRPMRELEASE}.tar.bz2 |
---|
142 | @end example |
---|
143 | |
---|
144 | Upon successful completion of the above command sequence, a |
---|
145 | C/C++ cross development toolset targeting the SPARC is |
---|
146 | installed in @code{@value{RTEMSPREFIX}}. In order to use this toolset, |
---|
147 | the directory @code{@value{RTEMSPREFIX}} must be included in your |
---|
148 | PATH. |
---|
149 | |
---|
150 | @subsection Removing Zipped Tar Files |
---|
151 | |
---|
152 | There is no automatic way to remove the contents of a @code{tar.gz} |
---|
153 | or @code{tar.bz2} once it is installed. The contents of the directory |
---|
154 | @code{@value{RTEMSPREFIX}} can be removed but this will likely result |
---|
155 | in other packages being removed as well. |
---|
156 | |
---|
157 | |
---|