summaryrefslogtreecommitdiff
path: root/nuttx/configs/ez80f910200zco/ostest/setenv.sh
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-26 17:07:34 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-26 17:07:34 +0000
commite4ffeb12c111d08f2422258e482c1db86286fe01 (patch)
treeff0df1702497422c18d8c6c2e3ab3895e0f966a1 /nuttx/configs/ez80f910200zco/ostest/setenv.sh
parent582b39047e192bf28c568fc53fcff168c8293841 (diff)
downloadpx4-nuttx-e4ffeb12c111d08f2422258e482c1db86286fe01.tar.gz
px4-nuttx-e4ffeb12c111d08f2422258e482c1db86286fe01.tar.bz2
px4-nuttx-e4ffeb12c111d08f2422258e482c1db86286fe01.zip
ez80f910200zco/ostest now uses Kconfig
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5390 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/ez80f910200zco/ostest/setenv.sh')
-rwxr-xr-xnuttx/configs/ez80f910200zco/ostest/setenv.sh31
1 files changed, 21 insertions, 10 deletions
diff --git a/nuttx/configs/ez80f910200zco/ostest/setenv.sh b/nuttx/configs/ez80f910200zco/ostest/setenv.sh
index 6150434ef..d8545d5aa 100755
--- a/nuttx/configs/ez80f910200zco/ostest/setenv.sh
+++ b/nuttx/configs/ez80f910200zco/ostest/setenv.sh
@@ -33,20 +33,31 @@
#
# Check how we were executed
#
-if [ "$(basename $0)" = "setenv.sh" ] ; then
+if [ "$_" = "$0" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
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
+
#
-# The ZDS-II toolchain lies outside of the Cygwin "sandbox" and
-# attempts to set the PATH variable do not have the desired effect.
-# Instead, alias are provided for all of the ZDS-II command line tools.
-# Version 5.1.1 installed in the default location is assumed here.
+# This is the Cygwin path to location where the XDS-II tools were installed
#
-ZDSBINDIR="C:/Program\ Files\ \(x86\)/ZiLOG/ZDSII_eZ80Acclaim!_5.1.1/bin"
-alias ez80asm="${ZDSBINDIR}/ez80asm.exe"
-alias ez80cc="${ZDSBINDIR}/ez80cc.exe"
-alias ez80lib="${ZDSBINDIR}/ez80lib.exe"
-alias ez80link="${ZDSBINDIR}/ez80link.exe"
+TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/ZiLOG/ZDSII_eZ80Acclaim!_5.1.1\bin"
+#
+# Add the path to the toolchain to the PATH varialble. NOTE that /bin and /usr/bin
+# preceded the toolchain bin directory. This is because the ZDSII bin directory
+# includes binaries like make.exe that will interfere with the normal build process
+# if we do not give priority to the versions at /bin and /usr/bin.
+#
+export PATH="/bin:/usr/bin:${TOOLCHAIN_BIN}:/sbin:/usr/sbin:${PATH_ORIG}"
+echo "PATH : ${PATH}"