summaryrefslogtreecommitdiff
path: root/nuttx/configs/lm3s6965-ek/nx/setenv.sh
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/nx/setenv.sh
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/nx/setenv.sh')
-rwxr-xr-xnuttx/configs/lm3s6965-ek/nx/setenv.sh25
1 files changed, 21 insertions, 4 deletions
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}"