summaryrefslogtreecommitdiffstats
path: root/nuttx/tools/configure.sh
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2007-03-23 02:25:54 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2007-03-23 02:25:54 +0000
commit05280795c5cbd53366a415e7331d36cac1a6ea93 (patch)
treef239dd46d4a76e9736c5f2cc6bbc00e942c37094 /nuttx/tools/configure.sh
parent6aca446049004578a13d4aa42c3574c702d45c18 (diff)
Create configs/ dir; separate board configuration from processor architecture
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@126 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/tools/configure.sh')
-rwxr-xr-xnuttx/tools/configure.sh36
1 files changed, 18 insertions, 18 deletions
diff --git a/nuttx/tools/configure.sh b/nuttx/tools/configure.sh
index 7275e8f181..f7c519a90f 100755
--- a/nuttx/tools/configure.sh
+++ b/nuttx/tools/configure.sh
@@ -33,46 +33,46 @@
#
#set -x
-ARCH=$1
+BOARD=$1
WD=`pwd`
TOPDIR=${WD}/..
function show_usage ()
{
- echo "${0} <arch>"
+ echo "${0} <board-name>"
exit 1
}
-if [ "${ARCH}X" = "X" ]; then
+if [ "${BOARD}X" = "X" ]; then
echo "Missing argument"
show_usage
fi
-ARCHDIR=${TOPDIR}/arch/${ARCH}
-if [ ! -d ${ARCHDIR} ]; then
- echo "Directory ${ARCHDIR} does not exist"
+BOARDDIR=${TOPDIR}/configs/${BOARD}
+if [ ! -d ${BOARDDIR} ]; then
+ echo "Directory ${BOARDDIR} does not exist"
show_usage
fi
-if [ ! -r ${ARCHDIR}/Make.defs ]; then
- echo "File ${ARCHDIR}/Make.defs does not exist"
+if [ ! -r ${BOARDDIR}/Make.defs ]; then
+ echo "File ${BOARDDIR}/Make.defs does not exist"
exit 1
fi
-if [ ! -r ${ARCHDIR}/setenv.sh ]; then
- echo "File ${ARCHDIR}/setenv.sh does not exist"
+if [ ! -r ${BOARDDIR}/setenv.sh ]; then
+ echo "File ${BOARDDIR}/setenv.sh does not exist"
exit 1
fi
-if [ ! -r ${ARCHDIR}/defconfig ]; then
- echo "File ${ARCHDIR}/defconfig does not exist"
+if [ ! -r ${BOARDDIR}/defconfig ]; then
+ echo "File ${BOARDDIR}/defconfig does not exist"
exit 1
fi
-cp -f ${ARCHDIR}/Make.defs ${TOPDIR}/. || \
- { echo "Failed to copy ${ARCHDIR}/Make.defs" ; exit 1 ; }
-cp -f ${ARCHDIR}/setenv.sh ${TOPDIR}/. || \
- { echo "Failed to copy ${ARCHDIR}/setenv.sh" ; exit 1 ; }
-cp -f ${ARCHDIR}/defconfig ${TOPDIR}/.config || \
- { echo "Failed to copy ${ARCHDIR}/defconfig" ; exit 1 ; }
+cp -f ${BOARDDIR}/Make.defs ${TOPDIR}/. || \
+ { echo "Failed to copy ${BOARDDIR}/Make.defs" ; exit 1 ; }
+cp -f ${BOARDDIR}/setenv.sh ${TOPDIR}/. || \
+ { echo "Failed to copy ${BOARDDIR}/setenv.sh" ; exit 1 ; }
+cp -f ${BOARDDIR}/defconfig ${TOPDIR}/.config || \
+ { echo "Failed to copy ${BOARDDIR}/defconfig" ; exit 1 ; }