summaryrefslogtreecommitdiff
path: root/nuttx/configs/lm3s6965-ek
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-07 17:59:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-03-07 17:59:21 +0000
commit76494a2d103c88d1c3888a6f0348a6b7e31b564d (patch)
tree14e5b1ce78a004bf1154cb1091782f32f19fb8b5 /nuttx/configs/lm3s6965-ek
parent24151ccd83ce2d0d75bb9c45b137215c24c821c3 (diff)
downloadpx4-nuttx-76494a2d103c88d1c3888a6f0348a6b7e31b564d.tar.gz
px4-nuttx-76494a2d103c88d1c3888a6f0348a6b7e31b564d.tar.bz2
px4-nuttx-76494a2d103c88d1c3888a6f0348a6b7e31b564d.zip
Fix network poll() issue: don't interrupt poll if socket not connected. Listen sockets are not connected and the poll() is waiting for connection events.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5717 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/lm3s6965-ek')
-rwxr-xr-xnuttx/configs/lm3s6965-ek/nsh/setenv.sh25
-rwxr-xr-xnuttx/configs/lm3s6965-ek/nx/setenv.sh25
-rwxr-xr-xnuttx/configs/lm3s6965-ek/ostest/setenv.sh25
-rwxr-xr-xnuttx/configs/lm3s6965-ek/tools/oocd.sh18
4 files changed, 75 insertions, 18 deletions
diff --git a/nuttx/configs/lm3s6965-ek/nsh/setenv.sh b/nuttx/configs/lm3s6965-ek/nsh/setenv.sh
index 0636f2fed..98ea7e573 100755
--- a/nuttx/configs/lm3s6965-ek/nsh/setenv.sh
+++ b/nuttx/configs/lm3s6965-ek/nsh/setenv.sh
@@ -32,15 +32,32 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv.sh" ] ; then
+if [ "$_" = "$0" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
-if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
-
WD=`pwd`
+if [ ! -x "setenv.sh" ]; then
+ echo "This script must be executed from the top-level NuttX build directory"
+ exit 1
+fi
+
+if [ -z "${PATH_ORIG}" ]; then
+ export PATH_ORIG="${PATH}"
+fi
+
+# This is the Cygwin path to the location where I build the buildroot
+# toolchain.
+
export BUILDROOT_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
-export PATH="${BUILDROOT_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
+
+# This is the path to the LM3S6995-EK tools directory
+
+export TOOL_BIN="${WD}/configs/lm3s6965-ek/tools"
+
+# Update the PATH variable
+
+export PATH="${BUILDROOT_BIN}:${TOOL_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
echo "PATH : ${PATH}"
diff --git a/nuttx/configs/lm3s6965-ek/nx/setenv.sh b/nuttx/configs/lm3s6965-ek/nx/setenv.sh
index 3edb2710e..43bbeada9 100755
--- a/nuttx/configs/lm3s6965-ek/nx/setenv.sh
+++ b/nuttx/configs/lm3s6965-ek/nx/setenv.sh
@@ -32,15 +32,32 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv.sh" ] ; then
+if [ "$_" = "$0" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
-if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
-
WD=`pwd`
+if [ ! -x "setenv.sh" ]; then
+ echo "This script must be executed from the top-level NuttX build directory"
+ exit 1
+fi
+
+if [ -z "${PATH_ORIG}" ]; then
+ export PATH_ORIG="${PATH}"
+fi
+
+# This is the Cygwin path to the location where I build the buildroot
+# toolchain.
+
export BUILDROOT_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
-export PATH="${BUILDROOT_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
+
+# This is the path to the LM3S6995-EK tools directory
+
+export TOOL_BIN="${WD}/configs/lm3s6965-ek/tools"
+
+# Update the PATH variable
+
+export PATH="${BUILDROOT_BIN}:${TOOL_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
echo "PATH : ${PATH}"
diff --git a/nuttx/configs/lm3s6965-ek/ostest/setenv.sh b/nuttx/configs/lm3s6965-ek/ostest/setenv.sh
index 686a61701..1ac3ec5e3 100755
--- a/nuttx/configs/lm3s6965-ek/ostest/setenv.sh
+++ b/nuttx/configs/lm3s6965-ek/ostest/setenv.sh
@@ -32,15 +32,32 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv.sh" ] ; then
+if [ "$_" = "$0" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
-if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
-
WD=`pwd`
+if [ ! -x "setenv.sh" ]; then
+ echo "This script must be executed from the top-level NuttX build directory"
+ exit 1
+fi
+
+if [ -z "${PATH_ORIG}" ]; then
+ export PATH_ORIG="${PATH}"
+fi
+
+# This is the Cygwin path to the location where I build the buildroot
+# toolchain.
+
export BUILDROOT_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
-export PATH="${BUILDROOT_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
+
+# This is the path to the LM3S6995-EK tools directory
+
+export TOOL_BIN="${WD}/configs/lm3s6965-ek/tools"
+
+# Update the PATH variable
+
+export PATH="${BUILDROOT_BIN}:${TOOL_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
echo "PATH : ${PATH}"
diff --git a/nuttx/configs/lm3s6965-ek/tools/oocd.sh b/nuttx/configs/lm3s6965-ek/tools/oocd.sh
index 758d11450..86eab3992 100755
--- a/nuttx/configs/lm3s6965-ek/tools/oocd.sh
+++ b/nuttx/configs/lm3s6965-ek/tools/oocd.sh
@@ -13,15 +13,21 @@ fi
# Assume that OpenOCD was installed and at /usr/local/bin. Uncomment
# the following to run directly from the build directory
-#OPENOCD_PATH="/home/OpenOCD/openocd/src"
-#TARGET_PATH="/home/OpenOCD/openocd/tcl"
-OPENOCD_PATH="/usr/bin"
-TARGET_PATH="/usr/share/openocd/scripts"
+
+# OPENOCD_PATH="/home/OpenOCD/openocd/src"
+# OPENOCD_PATH="/usr/bin"
+OPENOCD_PATH="/usr/local/bin"
+
+# TARGET_PATH="/home/OpenOCD/openocd/tcl"
+# TARGET_PATH="/usr/share/openocd/scripts"
+TARGET_PATH="/usr/local/share/openocd/scripts"
# Assume a Unix development environment. Uncomment to use a Windows
# like environment
-#OPENOCD_EXE=openocd.exe
-OPENOCD_EXE=openocd
+
+OPENOCD_EXE=openocd.exe
+# OPENOCD_EXE=openocd
+
OPENOCD_CFG="${TOPDIR}/configs/lm3s6965-ek/tools/lm3s6965-ek.cfg"
OPENOCD_ARGS="-f ${OPENOCD_CFG} -s ${TARGET_PATH}"