| 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>Chapter 2. Creating a New Berkeley DB Binary</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="Porting Berkeley DB" /> |
| 10 | <link rel="up" href="index.html" title="Porting Berkeley DB" /> |
| 11 | <link rel="prev" href="portprocess.html" title="Berkeley DB Porting Process" /> |
| 12 | <link rel="next" href="modscope.html" title="Determining the Scope of the Modifications" /> |
| 13 | </head> |
| 14 | <body> |
| 15 | <div xmlns="" class="navheader"> |
| 16 | <div class="libver"> |
| 17 | <p>Library Version 11.2.5.3</p> |
| 18 | </div> |
| 19 | <table width="100%" summary="Navigation header"> |
| 20 | <tr> |
| 21 | <th colspan="3" align="center">Chapter 2. Creating a New Berkeley DB Binary</th> |
| 22 | </tr> |
| 23 | <tr> |
| 24 | <td width="20%" align="left"><a accesskey="p" href="portprocess.html">Prev</a> </td> |
| 25 | <th width="60%" align="center"> </th> |
| 26 | <td width="20%" align="right"> <a accesskey="n" href="modscope.html">Next</a></td> |
| 27 | </tr> |
| 28 | </table> |
| 29 | <hr /> |
| 30 | </div> |
| 31 | <div class="chapter" lang="en" xml:lang="en"> |
| 32 | <div class="titlepage"> |
| 33 | <div> |
| 34 | <div> |
| 35 | <h2 class="title"><a id="newbinary"></a>Chapter 2. Creating a New Berkeley DB Binary</h2> |
| 36 | </div> |
| 37 | </div> |
| 38 | </div> |
| 39 | <div class="toc"> |
| 40 | <p> |
| 41 | <b>Table of Contents</b> |
| 42 | </p> |
| 43 | <dl> |
| 44 | <dt> |
| 45 | <span class="sect1"> |
| 46 | <a href="newbinary.html#basebuild"> |
| 47 | Creating a Base Build of Berkeley DB |
| 48 | </a> |
| 49 | </span> |
| 50 | </dt> |
| 51 | <dt> |
| 52 | <span class="sect1"> |
| 53 | <a href="modscope.html"> |
| 54 | Determining the Scope of the Modifications |
| 55 | </a> |
| 56 | </span> |
| 57 | </dt> |
| 58 | <dd> |
| 59 | <dl> |
| 60 | <dt> |
| 61 | <span class="sect2"> |
| 62 | <a href="modscope.html#osfunc"> |
| 63 | Do Changes Need to be Made to the Operating System Functionality? |
| 64 | </a> |
| 65 | </span> |
| 66 | </dt> |
| 67 | <dt> |
| 68 | <span class="sect2"> |
| 69 | <a href="modscope.html#standardfunc">Are Some Standard Functions Missing on the Target Platform?</a> |
| 70 | </span> |
| 71 | </dt> |
| 72 | <dt> |
| 73 | <span class="sect2"> |
| 74 | <a href="modscope.html#sharedmem">How Will the Port Handle Shared Memory?</a> |
| 75 | </span> |
| 76 | </dt> |
| 77 | <dt> |
| 78 | <span class="sect2"> |
| 79 | <a href="modscope.html#typemutex">What Type of Mutexes Will the Port Use?</a> |
| 80 | </span> |
| 81 | </dt> |
| 82 | <dt> |
| 83 | <span class="sect2"> |
| 84 | <a href="modscope.html#otherchanges">Do Any Other Changes Need to be Made?</a> |
| 85 | </span> |
| 86 | </dt> |
| 87 | </dl> |
| 88 | </dd> |
| 89 | <dt> |
| 90 | <span class="sect1"> |
| 91 | <a href="buildtarget.html"> Building on the Target Platform</a> |
| 92 | </span> |
| 93 | </dt> |
| 94 | <dt> |
| 95 | <span class="sect1"> |
| 96 | <a href="layout.html">Source Code Layout</a> |
| 97 | </span> |
| 98 | </dt> |
| 99 | </dl> |
| 100 | </div> |
| 101 | <p> |
| 102 | Creating a new Berkeley DB executable on the target platform, involves: |
| 103 | </p> |
| 104 | <div class="orderedlist"> |
| 105 | <ol type="1"> |
| 106 | <li> |
| 107 | <p> |
| 108 | <a class="xref" href="newbinary.html#basebuild" title="Creating a Base Build of Berkeley DB"> |
| 109 | Creating a Base Build of Berkeley DB |
| 110 | </a> |
| 111 | </p> |
| 112 | </li> |
| 113 | <li> |
| 114 | <p> |
| 115 | <a class="xref" href="modscope.html" title="Determining the Scope of the Modifications"> |
| 116 | Determining the Scope of the Modifications |
| 117 | </a> |
| 118 | </p> |
| 119 | </li> |
| 120 | <li> |
| 121 | <p> |
| 122 | <a class="xref" href="buildtarget.html" title="Building on the Target Platform"> Building on the Target Platform</a> |
| 123 | </p> |
| 124 | </li> |
| 125 | </ol> |
| 126 | </div> |
| 127 | <div class="sect1" lang="en" xml:lang="en"> |
| 128 | <div class="titlepage"> |
| 129 | <div> |
| 130 | <div> |
| 131 | <h2 class="title" style="clear: both"><a id="basebuild"></a> |
| 132 | Creating a Base Build of Berkeley DB |
| 133 | </h2> |
| 134 | </div> |
| 135 | </div> |
| 136 | </div> |
| 137 | <p> |
| 138 | The simplest way to begin a port is to attempt to configure and build Berkeley DB on a UNIX or UNIX-like system. This gives you a list of the files that you needed to build Berkeley DB as well as the configuration files you can use as a starting point for building on your target port. |
| 139 | </p> |
| 140 | <p> |
| 141 | To create a base build of Berkeley DB, following the instructions in the |
| 142 | <em class="citetitle">Berkeley DB Programmer's Reference Guide</em>: |
| 143 | </p> |
| 144 | <div class="orderedlist"> |
| 145 | <ol type="1"> |
| 146 | <li> |
| 147 | <p> |
| 148 | Download a Berkeley DB distribution from <a class="ulink" href="http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html" target="_top">http://www.oracle.com/technetwork/database/berkeleydb/downloads/index.html</a>. |
| 149 | </p> |
| 150 | </li> |
| 151 | <li> |
| 152 | <p> |
| 153 | Build Berkeley DB. |
| 154 | </p> |
| 155 | </li> |
| 156 | </ol> |
| 157 | </div> |
| 158 | <p>Berkeley DB uses the GNU autoconf tools for configuration on almost all of |
| 159 | the platforms it supports. Specifically, the include file |
| 160 | <code class="filename">db_config.h</code> configures the Berkeley DB build. The simplest way to |
| 161 | begin a port is to configure and build Berkeley DB on a UNIX or UNIX-like |
| 162 | system, and then take the <code class="filename">Makefile</code> and <code class="filename">db_config.h</code> |
| 163 | file created by that configuration, and modify it by hand to reflect |
| 164 | the needs of the new architecture. Unless you are already familiar with |
| 165 | the GNU autoconf toolset, we do not recommend you take the time to |
| 166 | integrate your changes back into the Berkeley DB autoconfiguration framework. |
| 167 | Instead, send us context diffs of your changes and any new source files |
| 168 | you created, and we can integrate the changes into our source tree.</p> |
| 169 | </div> |
| 170 | </div> |
| 171 | <div class="navfooter"> |
| 172 | <hr /> |
| 173 | <table width="100%" summary="Navigation footer"> |
| 174 | <tr> |
| 175 | <td width="40%" align="left"><a accesskey="p" href="portprocess.html">Prev</a> </td> |
| 176 | <td width="20%" align="center"> </td> |
| 177 | <td width="40%" align="right"> <a accesskey="n" href="modscope.html">Next</a></td> |
| 178 | </tr> |
| 179 | <tr> |
| 180 | <td width="40%" align="left" valign="top">Berkeley DB Porting Process </td> |
| 181 | <td width="20%" align="center"> |
| 182 | <a accesskey="h" href="index.html">Home</a> |
| 183 | </td> |
| 184 | <td width="40%" align="right" valign="top"> |
| 185 | Determining the Scope of the Modifications |
| 186 | </td> |
| 187 | </tr> |
| 188 | </table> |
| 189 | </div> |
| 190 | </body> |
| 191 | </html> |