summaryrefslogtreecommitdiff
path: root/nuttx/configs/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/README.txt')
-rw-r--r--nuttx/configs/README.txt24
1 files changed, 24 insertions, 0 deletions
diff --git a/nuttx/configs/README.txt b/nuttx/configs/README.txt
index 55dc6bdd3..ca14c4224 100644
--- a/nuttx/configs/README.txt
+++ b/nuttx/configs/README.txt
@@ -58,12 +58,17 @@ following characteristics:
|-- <config1-dir>
| |-- Make.defs
| |-- defconfig
+ | |-- appconfig*
| `-- setenv.sh
|-- <config2-dir>
| |-- Make.defs
| |-- defconfig
+ | |-- appconfig*
| `-- setenv.sh
...
+
+ *optional
+
Summary of Files
^^^^^^^^^^^^^^^^
@@ -913,6 +918,10 @@ defconfig -- This is a configuration file similar to the Linux
CONFIG_HEAP_BASE - The beginning of the heap
CONFIG_HEAP_SIZE - The size of the heap
+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 toplevel of the directory structure and can be sourced to set any
necessary environment variables.
@@ -1098,9 +1107,24 @@ Configuring NuttX requires only copying
configs/<board-name>/<config-dir>/setenv.sh to ${TOPDIR}/setenv.sh
configs/<board-name>/<config-dir>/defconfig to ${TOPDIR}/.config
+And if configs/<board-name>/<config-dir>/appconfig exists in the board
+configuration directory:
+
+ Copy configs/<board-name>/<config-dir>/appconfig to <app-dir>/.config
+ echo "CONFIG_BUILTIN_APPS=y" >> "${TOPDIR}/.config"
+ echo "APPS_LOC=\"<app-dir>\"" >> "${TOPDIR}/.config"
+
tools/configure.sh
There is a script that automates these steps. The following steps will
accomplish the same configuration:
cd tools
./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 (../apps), then
+you should also specify the location of the application directory on the
+command line like:
+
+ cd tools
+ ./configure.sh -a <app-dir> <board-name>/<config-dir>