source: rtems/doc/started_ada/buildrt.t @ 6d3d425d

4.104.114.84.95
Last change on this file since 6d3d425d was 6d3d425d, checked in by Joel Sherrill <joel.sherrill@…>, on 04/11/98 at 14:54:20

Now a passable Ada manual

  • Property mode set to 100644
File size: 2.2 KB
Line 
1@c
2@c
3@c  COPYRIGHT (c) 1988-1998.
4@c  On-Line Applications Research Corporation (OAR).
5@c  All rights reserved.
6@c
7@c  $Id$
8@c
9
10@chapter Building RTEMS
11
12@section Unpack the RTEMS Source
13
14Use the following command sequence to unpack the RTEMS source into the
15tools directory:
16
17@example
18cd tools
19tar xzf ../arc/@value{RTEMS-TAR}
20@end example
21
22@section Add <INSTALL_POINT>/bin to Executable PATH
23
24In order to compile RTEMS, you must have the cross compilation toolset
25in your search patch.  The following command appends the directory
26where the tools were installed in the previous chapter:
27
28@example
29export PATH=$PATH:<INSTALL_POINT>/bin
30@end example
31
32NOTE:  The above command is in Bourne shell (@code{sh}) syntax and should
33work with the Korn (@code{ksh}) and GNU Bourne Again Shell (@code{bash}). 
34It will not work with the C Shell (@code{csh})or derivatives of the C Shell.
35
36@section Generate RTEMS for a Specific Target and BSP
37
38Make a build directory under tools and build the RTEMS product in this
39directory. The ../@value{RTEMS-UNTAR}/configure
40command has numerous command line
41arguments. These arguments are discussed in detail in documentation that
42comes with the RTEMS distribution. In the installation described in the
43section "Unpack the RTEMS source", these configuration options can be found
44in file tools/@value{RTEMS-UNTAR}/README.configure.
45
46The GNAT/RTEMS run-time implementation is based on the POSIX API.  Thus
47the RTEMS configuration for a GNAT/RTEMS environment MUST include the
48@code{--enable-posix} flag.
49
50The following shows the command sequence required to configure,
51compile, and install RTEMS with the POSIX API enabled.
52RTEMS will be built to target the @code{BOARD_SUPPORT_PACKAGE} board.
53
54@example
55mkdir build-rtems
56cd build-rtems
57../@value{RTEMS-UNTAR}/configure --target=<TARGET_CONFIGURATION> \
58    --enable-posix \
59    --enable-rtemsbsp=<BOARD_SUPPORT_PACKAGE>\
60    --prefix=<INSTALL_POINT>
61gmake all install
62@end example
63
64Where the list of currently supported of <TARGET_CONFIGURATION>'s and
65<BOARD_SUPPORT_PACKAGE>'s can be found in
66tools/@value{RTEMS-UNTAR}/README.configure.
67
68<INSTALL_POINT> is the installation point from the previous step
69"Modify the bit_ada Script" in the build of the tools.
70
71
Note: See TracBrowser for help on using the repository browser.