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/configs/README.txt | |
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/configs/README.txt')
-rw-r--r-- | nuttx/configs/README.txt | 24 |
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> |