diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-18 17:22:50 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-18 17:22:50 +0000 |
commit | 5029575d531576c6818094334dcae95359bdd119 (patch) | |
tree | 30c8e74443d6b893cc9c7cd07ba3a87da6c10ce4 /nuttx/Documentation | |
parent | 89410c7157fd6e2c5f13dc4814606c97dd2d715f (diff) | |
download | px4-nuttx-5029575d531576c6818094334dcae95359bdd119.tar.gz px4-nuttx-5029575d531576c6818094334dcae95359bdd119.tar.bz2 px4-nuttx-5029575d531576c6818094334dcae95359bdd119.zip |
Update to apps/build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3391 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/Documentation')
-rw-r--r-- | nuttx/Documentation/NuttxPortingGuide.html | 62 |
1 files changed, 51 insertions, 11 deletions
diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index d7f65090f..6e5c1d565 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@ <h1><big><font color="#3c34ec"> <i>NuttX RTOS Porting Guide</i> </font></big></h1> - <p>Last Updated: March 16, 2011</p> + <p>Last Updated: March 18, 2011</p> </td> </tr> </table> @@ -564,14 +564,20 @@ |-- <i><config1-dir></i> | |-- Make.defs | |-- defconfig +| |-- appconfig<sup>1</sup> | `-- setenv.sh |-- <i><config2-dir></i> | |-- Make.defs | |-- defconfig +| |-- appconfig<sup>1</sup> | `-- setenv.sh | ... `-- <i>(other board-specific configuration sub-directories)</i>/ -</pre></ul> +</pre> +<p><small> + <sup>1</sup>Optional +</small></p> +</ul> <h3><a name="summaryofconfigfiles">2.3.2 Summary of Files</a></h3> <h4><a name="boardlogic">2.3.2.1 Board Specific Logic</a></h4> @@ -628,24 +634,35 @@ </p> </li> <li> - <code>defconfig</code>: This is a configuration file similar to the Linux - configuration file. In contains variable/value pairs like: + <p> + <code>defconfig</code>: This is a configuration file similar to the Linux + configuration file. In contains variable/value pairs like: + </p> <ul> <li><code>CONFIG_VARIABLE</code>=value</li> </ul> <p> This configuration file will be used at build time: </p> - <ol> + <p><ol> <li>As a makefile fragment included in other makefiles, and</li> <li>to generate <code>include/nuttx/config.h</code> which is included by most C files in the system.</li> - </ol> + </ol></p> </li> <li> - <code>setenv.sh</code>: This is a script that you can include that will be installed at - the top level of the directory structure and can be sourced to set any - necessary environment variables. + <p> + <code>appconfig</code>: This is another configuration file that is specific to the + application. This file is copied into the application build directory + when NuttX is configured. See <code>../apps/README.txt</code> for further details. + </p> + </li> + <li> + <p> + <code>setenv.sh</code>: This is a script that you can include that will be installed at + the top level of the directory structure and can be sourced to set any + necessary environment variables. + </p> </li> </ul> @@ -942,6 +959,7 @@ tools/ |-- mkdeps.sh |-- mkimage.sh |-- mknulldeps.sh +|-- mkromfsimg.sh |-- unlink.sh |-- winlink.sh `-- zipme @@ -974,12 +992,24 @@ tools/ <li>Copy <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/]setenv.sh</code> to <code>${TOPDIR}/setenv.sh</code>, and</li> <li>Copy <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/]defconfig</code> to <code>${TOPDIR}/.config</code></li> </ul> + +<p> + And if <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/appconfig</code> exists in the board configuration directory: +</p> +<ul> + <li>Copy <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/appconfig</code> to <app-dir><code>/.config</code></li> + <li><code>echo "CONFIG_BUILTIN_APPS=y" >> "${TOPDIR}/.config"</code></li> + <li><code>echo "APPS_LOC=\"<app-dir>\"" >> "${TOPDIR}/.config"</code></li> +</ul> + +</p> <p> Where <i><board-name></i> is the name of one of the sub-directories of the NuttX <a href="#DirStructConfigs"><code>configs/</code></a> directory. This sub-directory name corresponds to one of the supported boards identified <a href="#supportedboards">above</a>. - And <config-dir> is the optional, specific configuration directory for the board. + <config-dir> is the optional, specific configuration directory for the board. + And <app-dir> is the location of the optonal application directory. </p> <p> <b>Automated Configuration</b>. @@ -988,7 +1018,17 @@ tools/ </p> <ul><pre> cd tools - ./configure.sh <i><board-name></i></i><code>[/</code><i><config-dir></i><code>]</code> + ./configure.sh <i><board-name></i></i>[/<i><config-dir></i>] +</pre></ul> + +<p> + And if <code>configs/</code><i><board-name></i><code>/[</code><i><config-dir></i><code>/appconfig</code> + exists and your application directory is not in the standard loction (<config>../apps</config>), + then you should also specify the location of the application directory on the +command line like: +</p> +<ul><pre> + cd tools + ./configure.sh -a <app-dir> <i><board-name></i></i>[/<i><config-dir></i>] </pre></ul> <p> |