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 the bin directory under the install point to the default 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 work with |
---|
33 | the Korn (@code{ksh}) and GNU Bourne Again Shell (@code{bash}). It will not |
---|
34 | work with the C Shell (@code{csh})or derivatives of the C Shell. |
---|
35 | |
---|
36 | @section Generate RTEMS for a specific target and board support package |
---|
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 following shows the command sequence required to configure, |
---|
47 | compile, and install RTEMS with the POSIX API, KA9Q TCP/IP, |
---|
48 | and C++ support disabled. RTEMS will be built to target |
---|
49 | the @code{BOARD_SUPPORT_PACKAGE} board. |
---|
50 | |
---|
51 | @example |
---|
52 | mkdir build-rtems |
---|
53 | cd build-rtems |
---|
54 | ../@value{RTEMS-UNTAR}/configure --target=<TARGET_CONFIGURATION> \ |
---|
55 | --disable-posix --disable-ka9q --disable-cxx \ |
---|
56 | --enable-rtemsbsp=<BOARD_SUPPORT_PACKAGE>\ |
---|
57 | --prefix=<INSTALL_POINT> |
---|
58 | gmake all install |
---|
59 | @end example |
---|
60 | |
---|
61 | Where: |
---|
62 | |
---|
63 | The list of currently supported of <TARGET_CONFIGURATION>'s and |
---|
64 | <BOARD_SUPPORT_PACKAGE>'s can be found in |
---|
65 | tools/@value{RTEMS-UNTAR}/README.configure. |
---|
66 | |
---|
67 | <INSTALL_POINT> is the installation point from the previous step |
---|
68 | "Modify the bit script" in the build of the tools. |
---|
69 | |
---|
70 | |
---|