diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-06 01:19:05 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-09-06 01:19:05 +0000 |
commit | f12b71e69f745d2dde28a83c8a0c1ad3d81062d6 (patch) | |
tree | 92afc16b49dcb21594895dc86e5082742822bc0c | |
parent | af2c1fe0b2327427ea8c2adc376c06796141aedb (diff) | |
download | nuttx-f12b71e69f745d2dde28a83c8a0c1ad3d81062d6.tar.gz nuttx-f12b71e69f745d2dde28a83c8a0c1ad3d81062d6.tar.bz2 nuttx-f12b71e69f745d2dde28a83c8a0c1ad3d81062d6.zip |
configure.sh: Don't append the apps directory path setting if the correct setting is already in defined in the defconfig file.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5101 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r-- | nuttx/arch/arm/src/lm3s/Kconfig | 4 | ||||
-rwxr-xr-x | nuttx/tools/configure.sh | 15 |
2 files changed, 13 insertions, 6 deletions
diff --git a/nuttx/arch/arm/src/lm3s/Kconfig b/nuttx/arch/arm/src/lm3s/Kconfig index a1b401db7..1fd203f4f 100644 --- a/nuttx/arch/arm/src/lm3s/Kconfig +++ b/nuttx/arch/arm/src/lm3s/Kconfig @@ -26,8 +26,8 @@ config ARCH_CHIP_LM3S8962 endchoice choice - prompt "Toolchain" - default LM3S_BUILDROOT + prompt "Toolchain" + default LM3S_BUILDROOT config LM3S_CODESOURCERYW bool "CodeSourcery GNU toolchain under Windows" diff --git a/nuttx/tools/configure.sh b/nuttx/tools/configure.sh index c0df7035f..7ac4b8a3c 100755 --- a/nuttx/tools/configure.sh +++ b/nuttx/tools/configure.sh @@ -123,8 +123,12 @@ fi newconfig=`grep CONFIG_NUTTX_NEWCONFIG= "${configpath}/defconfig" | cut -d'=' -f2` +defappdir=y if [ -z "${appdir}" ]; then appdir=`grep CONFIG_APPS_DIR= "${configpath}/defconfig" | cut -d'=' -f2` + if [ ! -z "${appdir}" ]; then + defappdir=n + fi fi # Check for the apps/ directory in the usual place if appdir was not provided @@ -181,10 +185,13 @@ if [ ! -z "${appdir}" -a "X${newconfig}" != "Xy" ]; then install -C "${configpath}/appconfig" "${TOPDIR}/${appdir}/.config" || \ { echo "Failed to copy ${configpath}/appconfig" ; exit 10 ; } - echo "" >> "${TOPDIR}/.configX" - echo "# Application configuration" >> "${TOPDIR}/.configX" - echo "" >> "${TOPDIR}/.configX" - echo "CONFIG_APPS_DIR=\"$appdir\"" >> "${TOPDIR}/.configX" + if [ "X${defappdir}" = "Xy" ]; then + sed -i -e "/^CONFIG_APPS_DIR/d" "${TOPDIR}/.configX" + echo "" >> "${TOPDIR}/.configX" + echo "# Application configuration" >> "${TOPDIR}/.configX" + echo "" >> "${TOPDIR}/.configX" + echo "CONFIG_APPS_DIR=\"$appdir\"" >> "${TOPDIR}/.configX" + fi fi fi |