diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html index d7f65090f2..6e5c1d5651 100644 --- a/Documentation/NuttxPortingGuide.html +++ b/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@
Last Updated: March 16, 2011
+Last Updated: March 18, 2011
@@ -564,14 +564,20 @@ |-- <config1-dir> | |-- Make.defs | |-- defconfig +| |-- appconfig1 | `-- setenv.sh |-- <config2-dir> | |-- Make.defs | |-- defconfig +| |-- appconfig1 | `-- setenv.sh | ... `-- (other board-specific configuration sub-directories)/ - + ++ 1Optional +
+defconfig
: This is a configuration file similar to the Linux
- configuration file. In contains variable/value pairs like:
+
+ defconfig
: This is a configuration file similar to the Linux
+ configuration file. In contains variable/value pairs like:
+
CONFIG_VARIABLE
=valueThis configuration file will be used at build time:
-include/nuttx/config.h
which is included by
most C files in the system.setenv.sh
: 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.
+
+ appconfig
: 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 ../apps/README.txt
for further details.
+
+ setenv.sh
: 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.
+
configs/
<board-name>/[
<config-dir>/]setenv.sh
to ${TOPDIR}/setenv.sh
, andconfigs/
<board-name>/[
<config-dir>/]defconfig
to ${TOPDIR}/.config
+ And if configs/
<board-name>/[
<config-dir>/appconfig
exists in the board configuration directory:
+
configs/
<board-name>/[
<config-dir>/appconfig
to <app-dir>/.config
echo "CONFIG_BUILTIN_APPS=y" >> "${TOPDIR}/.config"
echo "APPS_LOC=\"<app-dir>\"" >> "${TOPDIR}/.config"
Where <board-name> is the name of one of the sub-directories of the
NuttX configs/
directory.
This sub-directory name corresponds to one of the supported boards
identified above.
- 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.
Automated Configuration. @@ -988,7 +1018,17 @@ tools/
cd tools - ./configure.sh <board-name>+ +[/
<config-dir>]
+ ./configure.sh <board-name>[/<config-dir>] +
+ And if configs/
<board-name>/[
<config-dir>/appconfig
+ exists and your application directory is not in the standard loction (
+ cd tools + ./configure.sh -a <app-dir> <board-name>[/<config-dir>]