• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/db-4.8.30/docs/programmer_reference/
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4  <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6    <title>Building for VxWorks 6.x</title>
7    <link rel="stylesheet" href="gettingStarted.css" type="text/css" />
8    <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
9    <link rel="start" href="index.html" title="Berkeley DB Programmer's Reference Guide" />
10    <link rel="up" href="build_vxworks.html" title="Chapter��30.�� Building Berkeley DB for VxWorks" />
11    <link rel="prev" href="build_vxworks.html" title="Chapter��30.�� Building Berkeley DB for VxWorks" />
12    <link rel="next" href="build_vxworks_notes.html" title="VxWorks notes" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">Building for VxWorks 6.x</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="build_vxworks.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��30.��
23		Building Berkeley DB for VxWorks
24        </th>
25          <td width="20%" align="right">��<a accesskey="n" href="build_vxworks_notes.html">Next</a></td>
26        </tr>
27      </table>
28      <hr />
29    </div>
30    <div class="sect1" lang="en" xml:lang="en">
31      <div class="titlepage">
32        <div>
33          <div>
34            <h2 class="title" style="clear: both"><a id="build_vxworks_intro6x"></a>Building for VxWorks 6.x</h2>
35          </div>
36        </div>
37      </div>
38      <div class="toc">
39        <dl>
40          <dt>
41            <span class="sect2">
42              <a href="build_vxworks_intro6x.html#id1634680">Building With Wind River Workbench using the Makefile</a>
43            </span>
44          </dt>
45        </dl>
46      </div>
47      <div class="sect2" lang="en" xml:lang="en">
48        <div class="titlepage">
49          <div>
50            <div>
51              <h3 class="title"><a id="id1634680"></a>Building With Wind River Workbench using the Makefile</h3>
52            </div>
53          </div>
54        </div>
55        <p>In VxWorks6.x, developers use Wind River Workbench for software
56development. Two makefiles are provided in the db/build_vxworks
57directory. Use them to build Berkeley DB or Berkeley DB small build, using 
58the build chain provided with Wind River Workbench. </p>
59        <p>We assume that you have installed all necessary VxWorks6.x software 
60including the Wind River Workbench, and that you know how to use it. </p>
61        <p>Use the following steps to build Berkeley DB: </p>
62        <p>1. Setting variables in the Makefile.
63Open the Makefile and modify the BDB_ROOT variable to the path of your
64Berkeley DB source tree's root directory. You may need to set other
65variables when you build on different platforms, such as BUILD_SPEC,
66DEBUG_MODE, PROJECT_TYPE, build tool flags and BUILD_SPEC specific settings.
67Please refer to the documentation of the Workbench for a complete list of
68available values of each variable. You can also find out the list of values
69by creating a project using the Workbench. Each variable's available values 
70will be listed in the GUI window which assigns values to that
71variable. </p>
72        <p>2. Make sure "make" can be found.
73Basically you need to set the make utility's path to environment variables.
74</p>
75        <p>3. Start up the wrenv utility of the Wind River Workbench. </p>
76        <p>4. In the command console, move to the $(BDB_ROOT)/build_vxworks/ directory,
77rename the target makefile (Makefile.6x or Makefile.6x.small) to "Makefile",
78and run "make".  The make process will start and create the directory 
79"bdbvxw". It will contain all intermediate object files as well as the
80final built image "bdbvxw.out". </p>
81        <p>5. After the "bdbvxw.out" image is built, you can use command tools
82or the Workbench IDE to download and run it.</p>
83        <p>6. Test and Verification.
84There is a dbdemo and test_micro, which you can run to verify whether
85everything works fine.</p>
86      </div>
87    </div>
88    <div class="navfooter">
89      <hr />
90      <table width="100%" summary="Navigation footer">
91        <tr>
92          <td width="40%" align="left"><a accesskey="p" href="build_vxworks.html">Prev</a>��</td>
93          <td width="20%" align="center">
94            <a accesskey="u" href="build_vxworks.html">Up</a>
95          </td>
96          <td width="40%" align="right">��<a accesskey="n" href="build_vxworks_notes.html">Next</a></td>
97        </tr>
98        <tr>
99          <td width="40%" align="left" valign="top">Chapter��30.��
100		Building Berkeley DB for VxWorks
101        ��</td>
102          <td width="20%" align="center">
103            <a accesskey="h" href="index.html">Home</a>
104          </td>
105          <td width="40%" align="right" valign="top">��VxWorks notes</td>
106        </tr>
107      </table>
108    </div>
109  </body>
110</html>
111