Use = instead of / for delimiter in appconfig files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3396 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
19fd3b0d48
commit
e07f0db120
2
Makefile
2
Makefile
@ -65,7 +65,7 @@ BOARD_DIR = configs/$(CONFIG_ARCH_BOARD)
|
|||||||
# APPS_LOC can be over-ridden from the command line:
|
# APPS_LOC can be over-ridden from the command line:
|
||||||
|
|
||||||
ifeq ($(CONFIG_BUILTIN_APPS),y)
|
ifeq ($(CONFIG_BUILTIN_APPS),y)
|
||||||
ifeq ($(APP_LOC),)
|
ifeq ($(APPS_LOC),)
|
||||||
APPS_LOC = ../apps
|
APPS_LOC = ../apps
|
||||||
endif
|
endif
|
||||||
APPS_DIR := ${shell if [ -r $(APPS_LOC)/Makefile ]; then echo "$(APPS_LOC)"; fi}
|
APPS_DIR := ${shell if [ -r $(APPS_LOC)/Makefile ]; then echo "$(APPS_LOC)"; fi}
|
||||||
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -49,24 +49,24 @@
|
|||||||
#CONFIG_BUILTIN_APP_START="hello"
|
#CONFIG_BUILTIN_APP_START="hello"
|
||||||
|
|
||||||
# Application Libraries
|
# Application Libraries
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
||||||
|
|
||||||
# Individual selection of built-in applications:
|
# Individual selection of built-in applications:
|
||||||
|
|
||||||
# Hello world provide a simple skeleton/demo application
|
# Hello world provide a simple skeleton/demo application
|
||||||
CONFIGURED_APPS += hello/.built_always
|
CONFIGURED_APPS += hello=.built_always
|
||||||
|
|
||||||
# Provide poweroff command to switch off the board
|
# Provide poweroff command to switch off the board
|
||||||
CONFIGURED_APPS += poweroff/.built_always
|
CONFIGURED_APPS += poweroff=.built_always
|
||||||
|
|
||||||
# Provide SDcard tool
|
# Provide SDcard tool
|
||||||
CONFIGURED_APPS += sdcard/.built_always
|
CONFIGURED_APPS += sdcard=.built_always
|
||||||
|
|
||||||
# Provide RAMTRON tool
|
# Provide RAMTRON tool
|
||||||
CONFIGURED_APPS += ramtron/.built_always
|
CONFIGURED_APPS += ramtron=.built_always
|
||||||
|
|
||||||
# Provide UNIX style free
|
# Provide UNIX style free
|
||||||
CONFIGURED_APPS += free/.built_always
|
CONFIGURED_APPS += free=.built_always
|
||||||
|
|
||||||
# Provide JAVA Virtual Machine (the Darjeeling JVM)
|
# Provide JAVA Virtual Machine (the Darjeeling JVM)
|
||||||
#CONFIGURED_APPS += jvm/.built_always
|
#CONFIGURED_APPS += jvm=.built_always
|
||||||
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -33,4 +33,4 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
CONFIGURED_APPS += nshlib/.built_always
|
CONFIGURED_APPS += nshlib=.built_always
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# configure.sh
|
# configure.sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2007, 2008, 2011 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -34,7 +34,16 @@
|
|||||||
|
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
TOPDIR="${WD}/.."
|
TOPDIR="${WD}/.."
|
||||||
USAGE="${0} [-d] [-a <app-dir>] <board-name>"
|
USAGE="
|
||||||
|
|
||||||
|
USAGE: ${0} [-d] [-a <app-dir>] <board-name>/<config-name>
|
||||||
|
|
||||||
|
Where:
|
||||||
|
<board-name> is the name of the board in the configs directory
|
||||||
|
<config-name> is the name of the board configuration sub-directory
|
||||||
|
<add-dir> is the path to the apps/ directory, relative to the nuttx directory
|
||||||
|
|
||||||
|
"
|
||||||
|
|
||||||
# Parse command arguments
|
# Parse command arguments
|
||||||
|
|
||||||
@ -47,7 +56,7 @@ while [ ! -z "$1" ]; do
|
|||||||
set -x
|
set -x
|
||||||
;;
|
;;
|
||||||
-h )
|
-h )
|
||||||
echo "$usage"
|
echo "$USAGE"
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
-a )
|
-a )
|
||||||
@ -110,7 +119,7 @@ fi
|
|||||||
|
|
||||||
if [ -z "${appdir}" ]; then
|
if [ -z "${appdir}" ]; then
|
||||||
if [ -d "${TOPDIR}/../apps" ]; then
|
if [ -d "${TOPDIR}/../apps" ]; then
|
||||||
appdir="${TOPDIR}/../apps"
|
appdir="../apps"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -130,7 +139,7 @@ if [ ! -z "${appdir}" ]; then
|
|||||||
if [ ! -r "${configpath}/appconfig" ]; then
|
if [ ! -r "${configpath}/appconfig" ]; then
|
||||||
echo "NOTE: No readable appconfig file found in ${configpath}"
|
echo "NOTE: No readable appconfig file found in ${configpath}"
|
||||||
else
|
else
|
||||||
cp -f "${configpath}/appconfig" "${appdir}/.config" || \
|
cp -f "${configpath}/appconfig" "${TOPDIR}/${appdir}/.config" || \
|
||||||
{ echo "Failed to copy ${configpath}/appconfig" ; exit 10 ; }
|
{ echo "Failed to copy ${configpath}/appconfig" ; exit 10 ; }
|
||||||
|
|
||||||
echo "" >> "${TOPDIR}/.config"
|
echo "" >> "${TOPDIR}/.config"
|
||||||
|
Loading…
Reference in New Issue
Block a user