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 | |
---|
14 | Use the following command sequence to unpack the RTEMS source into the |
---|
15 | tools directory: |
---|
16 | |
---|
17 | @example |
---|
18 | cd tools |
---|
19 | tar xzf ../arc/@value{RTEMS-TAR} |
---|
20 | @end example |
---|
21 | |
---|
22 | @section Add <INSTALL_POINT>/bin to Executable PATH |
---|
23 | |
---|
24 | In order to compile RTEMS, you must have the cross compilation toolset |
---|
25 | in your search patch. The following command appends the directory |
---|
26 | where the tools were installed in the previous chapter: |
---|
27 | |
---|
28 | @example |
---|
29 | export PATH=$PATH:<INSTALL_POINT>/bin |
---|
30 | @end example |
---|
31 | |
---|
32 | NOTE: The above command is in Bourne shell (@code{sh}) syntax and should |
---|
33 | work with the Korn (@code{ksh}) and GNU Bourne Again Shell (@code{bash}). |
---|
34 | It 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 | |
---|
38 | Make a build directory under tools and build the RTEMS product in this |
---|
39 | directory. The ../@value{RTEMS-UNTAR}/configure |
---|
40 | command has numerous command line |
---|
41 | arguments. These arguments are discussed in detail in documentation that |
---|
42 | comes with the RTEMS distribution. In the installation described in the |
---|
43 | section "Unpack the RTEMS source", these configuration options can be found |
---|
44 | in file tools/@value{RTEMS-UNTAR}/README.configure. |
---|
45 | |
---|
46 | The GNAT/RTEMS run-time implementation is based on the POSIX API. Thus |
---|
47 | the RTEMS configuration for a GNAT/RTEMS environment MUST include the |
---|
48 | @code{--enable-posix} flag. |
---|
49 | |
---|
50 | The following shows the command sequence required to configure, |
---|
51 | compile, and install RTEMS with the POSIX API enabled. |
---|
52 | RTEMS will be built to target the @code{BOARD_SUPPORT_PACKAGE} board. |
---|
53 | |
---|
54 | @example |
---|
55 | mkdir build-rtems |
---|
56 | cd build-rtems |
---|
57 | ../@value{RTEMS-UNTAR}/configure --target=<TARGET_CONFIGURATION> \ |
---|
58 | --enable-posix \ |
---|
59 | --enable-rtemsbsp=<BOARD_SUPPORT_PACKAGE>\ |
---|
60 | --prefix=<INSTALL_POINT> |
---|
61 | gmake all install |
---|
62 | @end example |
---|
63 | |
---|
64 | Where the list of currently supported of <TARGET_CONFIGURATION>'s and |
---|
65 | <BOARD_SUPPORT_PACKAGE>'s can be found in |
---|
66 | tools/@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 | |
---|