1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | 1. Autoconf support |
---|
6 | =================== |
---|
7 | |
---|
8 | This version of RTEMS is configured with GNU autoconf. RTEMS can be |
---|
9 | configured and built either standalone or together with the compiler |
---|
10 | tools in the Cygnus one-tree structure. Using autoconf also means |
---|
11 | that RTEMS now can be built in a separate build directory. |
---|
12 | |
---|
13 | To re-generate auto*tool generated files (configure, Makefile.in etc), |
---|
14 | autoconf-2.59 and automake-1.8 are required. |
---|
15 | |
---|
16 | 2. Installation |
---|
17 | =============== |
---|
18 | |
---|
19 | 2.1 Standalone build |
---|
20 | |
---|
21 | To configure RTEMS for a specific target, run configure in the build |
---|
22 | directory. In addition to the standard configure options, the following |
---|
23 | RTEMS-specific option are supported: |
---|
24 | |
---|
25 | --disable-rtems-inlines |
---|
26 | --disable-posix |
---|
27 | --disable-itron |
---|
28 | --disable-networking |
---|
29 | --enable-cxx |
---|
30 | --enable-bare-cpu-model=<MODEL> |
---|
31 | --enable-bare-cpu-cflags=<FLAGS> |
---|
32 | --enable-multiprocessing |
---|
33 | --enable-rtemsbsp="bsp1 bsp2 ..." |
---|
34 | --enable-tests |
---|
35 | --enable-rdbg (only valid for i386 and some PowerPC BSPs) |
---|
36 | --enable-docs |
---|
37 | |
---|
38 | In addition, the following standard autoconf options are frequently |
---|
39 | used when configuring RTEMS installations: |
---|
40 | |
---|
41 | --prefix=INSTALL_DIRECTORY |
---|
42 | |
---|
43 | By default, inline routines are used instead of macros where possible. |
---|
44 | Macros can be selected using the --disable-inlines option. [NOTE: |
---|
45 | Some APIs may not support macro versions of their inline routines.] |
---|
46 | |
---|
47 | By default, the RTEMS POSIX 1003.1b interface is built for targets that support |
---|
48 | it. It can be disabled with the --disable-posix option. |
---|
49 | |
---|
50 | By default, the RTEMS uITRON interface is built for targets that support |
---|
51 | it. It can be disabled with the --disable-itron option. |
---|
52 | |
---|
53 | By default, the RTEMS networking support is built for targets which |
---|
54 | support it. It can be specifically disabled for those targets |
---|
55 | with the --disable-networking option. |
---|
56 | |
---|
57 | By default, the RTEMS remote debugger server support is not built. |
---|
58 | It can be specifically enabled for the targets that support it. |
---|
59 | with the --enable-rdbg option. NB : the RTEMS networking support |
---|
60 | must be enabled to support the remote debugger server. |
---|
61 | |
---|
62 | By default, the RTEMS support of C++ is disabled. It can be enabled |
---|
63 | with the --enable-cxx option. If the rtems++ C++ library is installed |
---|
64 | it will also be build. |
---|
65 | |
---|
66 | By default, the RTEMS test suites are NOT configured -- only the |
---|
67 | sample tests are built. --enable-tests will configure |
---|
68 | the RTEMS test suite. The default speeds up the build |
---|
69 | and configure process when the tests are not desired. |
---|
70 | |
---|
71 | By default, RTEMS is built using arguments and build rules which require a |
---|
72 | gcc supporting the -specs option, ie. a gcc >= 2.8. |
---|
73 | [The --disable-gcc28 option, which has been present in former releases, has |
---|
74 | been removed.] |
---|
75 | |
---|
76 | By default, multiprocessing is is not built. It can be enabled |
---|
77 | for those BSPs supporting it by the --enable-multiprocessing option. |
---|
78 | |
---|
79 | By default, all bsps for a target are built. The bare BSP is not built |
---|
80 | unless directly specified. There are two ways of changing this: |
---|
81 | |
---|
82 | + use the --enable-rtemsbsp option which will set the specified |
---|
83 | bsps as the default bsps, or |
---|
84 | + set the RTEMS_BSP variable during make (see below). |
---|
85 | |
---|
86 | The --enable-rtemsbsp= option configures RTEMS for a specific board |
---|
87 | within a target architecture. Remember that the target specifies the |
---|
88 | CPU family while the BSP specifies the precise board you will be using. |
---|
89 | The following targets are supported: |
---|
90 | |
---|
91 | (none) will build the host-based version on Linux, Solaris and HPUX. |
---|
92 | |
---|
93 | arm-rtems4.9 |
---|
94 | h8300-rtems4.9 |
---|
95 | i386-rtems4.9 |
---|
96 | m68k-rtems4.9 |
---|
97 | mips-rtems4.9 |
---|
98 | no_cpu-rtems4.9 |
---|
99 | powerpc-rtems4.9 |
---|
100 | sh-rtems4.9 |
---|
101 | sparc-rtems4.9 |
---|
102 | bare see notes |
---|
103 | |
---|
104 | The cross-compiler is set to $(target)-gcc by default. This can be |
---|
105 | overridden by: |
---|
106 | |
---|
107 | + using the --program-prefix option to configure to specify the |
---|
108 | string which will prepended to the tool names. Be sure to include |
---|
109 | a trailing "-". For example, to use a m68k-coff toolset, use the |
---|
110 | --program-prefix=m68k-coff- option. |
---|
111 | |
---|
112 | To build, run make in the build directory. To specify which bsps to build, |
---|
113 | add the RTEMS_BSP="bsp1 bsp2 .." to the make command. Specifying multiple |
---|
114 | BSPs to build only works from the top level build directory. |
---|
115 | |
---|
116 | Installation is done under $(prefix)/rtems. |
---|
117 | |
---|
118 | As an example, to build and install the mvme136 and mvme162 bsps for m68k do: |
---|
119 | |
---|
120 | (path_to_rtems_src)/configure --target=m68k-rtems |
---|
121 | |
---|
122 | make RTEMS_BSP="mvme136 mvme162" |
---|
123 | |
---|
124 | make install RTEMS_BSP="mvme136 mvme162" |
---|
125 | |
---|
126 | The sample tests are built by 'make all' when configured with |
---|
127 | --enable-tests=samples. Use --enable-tests=all to build the full |
---|
128 | test suite. |
---|
129 | |
---|
130 | Documentation is built separately from the source code. |
---|
131 | |
---|
132 | 2.2 Target Dependent Notes |
---|
133 | |
---|
134 | bare: |
---|
135 | |
---|
136 | 1. See the README in the bare bsp source directory. This should |
---|
137 | contain all info you need. |
---|
138 | 2. The bare bsp source contains a script to show how to build it. |
---|
139 | 3. The configure flags must be used to get the bare bsp to work. |
---|
140 | The --enable-bare-cpu-model and --enable-bare-cpu-cflags are the |
---|
141 | only pieces of information. The module is usually a gcc module |
---|
142 | such as m68302 or mcpu32. The flags are passed directly to gcc. |
---|
143 | Use "" if more than one option is specified. |
---|
144 | |
---|
145 | 3. To use the installed RTEMS library |
---|
146 | ===================================== |
---|
147 | |
---|
148 | To use the installed RTEMS bsps to build applications, the application |
---|
149 | makefile has to include a bsp-specific makefile that will define the |
---|
150 | RTEMS variables necessary to find include files and libraries. The |
---|
151 | bsp-specific makefile is installed at |
---|
152 | |
---|
153 | $(RTEMS_MAKEFILE_PATH)/Makefile.inc |
---|
154 | |
---|
155 | For the erc32 bsp installed at /usr/local/cross, the environment |
---|
156 | variable RTEMS_MAKEFILE_PATH would be set as follows to the |
---|
157 | following: |
---|
158 | |
---|
159 | /usr/local/cross/sparc-rtems/rtems/erc32/Makefile.inc |
---|
160 | |
---|
161 | 4. Supported target bsps |
---|
162 | ======================== |
---|
163 | |
---|
164 | The following bsps are supported: |
---|
165 | |
---|
166 | host-based : posix (on Linux, FreeBSD, Cygwin, Solaris, and HPUX) |
---|
167 | |
---|
168 | arm : csb336 csb337 edb7312 gba gp32 nds rtl22x rtl22xx_t |
---|
169 | smdk2410 |
---|
170 | |
---|
171 | avr: : none |
---|
172 | |
---|
173 | bfin : eZKit533 bf537Stamp |
---|
174 | |
---|
175 | h8300 : h8sim |
---|
176 | |
---|
177 | i386 : i386ex pc386 pc386dx pc486 pc586 pc686 pck6 ts_386ex |
---|
178 | NOTE: The "pc386" BSP can be compiled to support a |
---|
179 | variety of PC configurations including PC-104 |
---|
180 | based solutions. |
---|
181 | |
---|
182 | m68k : av5282 csb360 gen68302 gen68360 gen68360_040 |
---|
183 | genmcf548x idp mcf5206elite mcf52235 mcf5235 mcf5239 |
---|
184 | m5484FireEngine mrm332 mvme136 mvme147s mvme162 mvme162lx |
---|
185 | mvme167 ods68302 pgh360 sim68000 simcpu32 uC5282 |
---|
186 | |
---|
187 | no_cpu : no_bsp (porting example) |
---|
188 | |
---|
189 | mips : csb350 genmongoosev hurricane jmr3904 rbtx4925 rbtx4938 |
---|
190 | p4600 p4650 |
---|
191 | |
---|
192 | powerpc : brs5l ep1a gen5200 gen83xx haleakala hsc_cm01 icecube |
---|
193 | mbx821_001 mbx821_002 mbx821_002b mbx860_001b mbx860_002 |
---|
194 | mbx860_005b mcp750 mvme2100 mvme2307 mtx603e |
---|
195 | mvme5500 mpc55xxevb mpc8260ads mpc8313erdb mpc8349eamds |
---|
196 | pghplus pm520_cr825 pm520_ze30 psim score603e ss555 |
---|
197 | tqm8xx_stk8xx virtex |
---|
198 | |
---|
199 | NOTE: The "motorola_powerpc" BSP is a single BSP which |
---|
200 | can be conditionally compiled to support most Motorola |
---|
201 | VMEbus, CompactPCI, and MTX boards.) |
---|
202 | |
---|
203 | NOTE: The mbx8xx, gen5200, gen83xx, and tqm8xx BSPs are |
---|
204 | designed to handle a variety of boards based on the same |
---|
205 | family of system on chips CPUs |
---|
206 | |
---|
207 | sh : gensh1 gensh2 gensh4 shsim simsh4 simsh7045 |
---|
208 | |
---|
209 | sparc : erc32 sis leon2 leon3 |
---|
210 | |
---|
211 | any : bare |
---|
212 | |
---|
213 | The following ports were considered obsoleted after the 4.6 releases |
---|
214 | and were removed: a29k, hppa, i960, mips64orion, and or32. |
---|
215 | |
---|
216 | |
---|
217 | 5. Makefile structure |
---|
218 | ===================== |
---|
219 | |
---|
220 | The makefiles have been re-organized. Most gnu-based bsps now use three |
---|
221 | main makefiles: |
---|
222 | + custom/default.cfg, |
---|
223 | + custom/bsp.cfg and |
---|
224 | + compilers/gcc-target-default.cfg. |
---|
225 | |
---|
226 | Default.cfg sets the default values of certain common build options. |
---|
227 | |
---|
228 | Bsp.cfg set bsp-specific build options and can also override the |
---|
229 | default settings. |
---|
230 | |
---|
231 | Gcc-target-default.cfg contains the common gcc definitions. |
---|
232 | |
---|
233 | 6. Adding a bsp |
---|
234 | =============== |
---|
235 | |
---|
236 | Please refer to the BSP and Device Driver Guide. |
---|
237 | |
---|
238 | |
---|
239 | 7. Tested configurations |
---|
240 | ======================== |
---|
241 | |
---|
242 | All BSPs have been built on GNU/Linux if the target architecture |
---|
243 | is supported in the FSF tools distribution. |
---|
244 | |
---|
245 | 8. Prerequisites |
---|
246 | ================ |
---|
247 | |
---|
248 | GNU make |
---|
249 | Bash. |
---|
250 | binutils, gcc, newlib and gdb versions matching those in the RPMs. |
---|