Changeset dc5623bb in rtems for doc/FAQ/build45.t
- Timestamp:
- Jan 22, 2003, 12:25:57 PM (18 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 8a86d78
- Parents:
- 88cd4ab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/FAQ/build45.t
r88cd4ab rdc5623bb 3 3 @c 4 4 5 @chapter Building RTEMS 4.55 @chapter Building RTEMS 6 6 7 7 Building any package in a cross-compilation fashion can be difficult, … … 16 16 17 17 This section of the FAQ tries to address the more frequently asked 18 questions about building RTEMS 4.5. Thanks to Ralf Corsepius for18 questions about building RTEMS. Thanks to Ralf Corsepius for 19 19 compiling this section from excerpts from various postings to the 20 20 rtems-users mailing list. … … 39 39 40 40 No, you don't. Or to be more accurate, you won't need them until you 41 modify something in RTEMS's Makefile.ams/configure. ins or start to develop41 modify something in RTEMS's Makefile.ams/configure.acs or start to develop 42 42 with RTEMS. 43 43 … … 52 52 @subsection Can I use a non-gcc cross-toolchain? 53 53 54 55 54 Generally speaking, it should be possible. 56 However, most RTEMS -4.5 development has taken place using gcc-2.9x, therefore55 However, most RTEMS development has taken place using gcc, therefore 57 56 getting it working may not be easy. 58 57 … … 81 80 You are probably trying to build within the source-tree. 82 81 RTEMS requires a separate build directory. I.e. if the 83 sources are located at @code{/usr/local/src/rtems- 4.5.0},82 sources are located at @code{/usr/local/src/rtems-@value{VERSION}}, 84 83 use something similar to this to configure RTEMS: 85 84 … … 88 87 mkdir build 89 88 cd build 90 /usr/local/src/rtems- 4.5.0/configure [options]89 /usr/local/src/rtems-@value{VERSION}/configure [options] 91 90 @end example 92 91 … … 124 123 125 124 Host tools are supposed not to be prefixed. 126 e.g.: cc, ld, gcc etc.125 e.g.: cc, ld, gcc, autoconf, automake, aclocal etc. 127 126 128 127 If using OAR Corporation's rpms for the toolchain, simply prepend … … 131 130 @subsection Can I build RTEMS Canadian Cross? 132 131 133 Unfortunately, not (yet). 132 RTEMS >= 4.6.0 configuration is prepared for building RTEMS Canadian Cross, 133 however building RTEMS Canadian Cross is known to be in it's infancy, so 134 your mileage may vary (See @code{README.cdn-X} in the toplevel directory of 135 RTEMS's source tree for details.) 134 136 135 137 @subsection Building RTEMS is slow … … 137 139 RTEMS has become fairly large :). 138 140 139 In comparison to building previous versions, building RTEMS -4.5is slow,141 In comparison to building previous versions, building RTEMS is slow, 140 142 but that's the tradeoff to pay for simplier and safer configuration. 141 143 … … 167 169 @end example 168 170 171 169 172 @subsection Building RTEMS does not honor XXX_FOR_TARGET 170 173 171 RTEMS currently does not support passing flags from the environment. 172 Instead add a @code{make/custom/mybsp.cfg} for your bsp and set 173 appropriate flags there. 174 RTEMS < 4.6.0 did not support passing flags from the environment. 175 If using RTEMS < 4.6.0, editing your BSP's @code{make/custom/mybsp.cfg} and 176 setting appropriate flags there is required. 177 178 RTEMS >= 4.6.0 honors several XXX_FOR_TARGET environment variables. 179 Run @code{<path-to-rtems>/configure --help} for a full list of supported variables. 174 180 175 181 @subsection Editing Makefile.in Makefile configure … … 185 191 Changes to them will be swapped away soon and will get lost. 186 192 187 Instead edit the sources (eg.: Makefile.ams, configure. ins) auto* generated193 Instead edit the sources (eg.: Makefile.ams, configure.acs) auto* generated 188 194 files are generated from directly. 189 195 190 If sending patches always send Makefile.ams and configure. ins.196 If sending patches always send Makefile.ams and configure.acs. 191 197 Sending Makefile.ins, Makefiles and configure scripts is pretty much useless. 192 198 If sending larger patches, consider removing all auto* generated files … … 234 240 235 241 Each BSP now has its own configure script. 236 I highly recommend you look at the Makefile.am's, configure. in, of a similar242 I highly recommend you look at the Makefile.am's, configure.ac, of a similar 237 243 BSP. You might even want to consider running "bootstrap -c" from the top of 238 244 the tree and looking at what is left. bootstrap (cf. @ref{./bootstrap}) … … 328 334 need to run @code{bootstrap}, because automake automatically updates 329 335 generated files when it detects some files need to be updated (Cf. 330 @ref{ --enable-maintainer-mode}).331 332 @subsection --enable-maintainer-mode336 @ref{configure --enable-maintainer-mode}). 337 338 @subsection configure --enable-maintainer-mode 333 339 334 340 When working within the source-tree, consider to append … … 336 342 337 343 @example 338 <path>/rtems- 4.5.0/configure <options> --enable-maintainer-mode344 <path>/rtems-@value{VERSION}/configure <options> --enable-maintainer-mode 339 345 @end example 340 346 … … 345 351 Configuring RTEMS in maintainer-mode will require to have autoconf, automake 346 352 and underlying tools installed (Cf. @ref{Required Tools}). 353 354 @subsection configure.ac vs. configure.in 355 356 autoconf < 2.50 used the name @code{configure.in} for it's input files. 357 autoconf >= 2.50 recommends using the name @code{configure.ac}, instead. 358 359 RTEMS > 4.5.0 applies autoconf >= 2.50, therefore all former RTEMS's 360 @code{configure.in}'s have been renamed into @code{configure.ac} and 361 adapted to autoconf >= 2.50 demands.
Note: See TracChangeset
for help on using the changeset viewer.