Handle name change
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1129 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
aea6407391
commit
6657881ac4
@ -7,16 +7,16 @@ openocd=$installdir/openocd
|
|||||||
|
|
||||||
# The root to the top-level NuttX directory should be in an environment variable
|
# The root to the top-level NuttX directory should be in an environment variable
|
||||||
|
|
||||||
if [ -z $STR41XCFGS ]; then
|
if [ -z $STR41XSCRIPTS ]; then
|
||||||
echo "Environment variable $STR41XCFGS is not defined"
|
echo "Environment variable $STR41XSCRIPTS is not defined"
|
||||||
echo "Has NuttX been configured?"
|
echo "Has NuttX been configured?"
|
||||||
echo "If so, try sourcing the setenv.sh script in the top-level directory"
|
echo "If so, try sourcing the setenv.sh script in the top-level directory"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check that at least one configuration file exists at that point
|
# Check that at least one configuration file exists at that point
|
||||||
if [ ! -f $STR41XCFGS/oocd_wiggler.cfg ]; then
|
if [ ! -f $STR41XSCRIPTS/oocd_wiggler.cfg ]; then
|
||||||
echo "No configuration files found at $STR41XCFGS"
|
echo "No configuration files found at $STR41XSCRIPTS"
|
||||||
echo "Path to configuration files unknown"
|
echo "Path to configuration files unknown"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -27,7 +27,7 @@ usage="USAGE: $0 [-h] [-d] [-pp] [-ftdi]"
|
|||||||
|
|
||||||
debug=no
|
debug=no
|
||||||
interface=pp
|
interface=pp
|
||||||
oocdcfg=$STR41XCFGS/oocd_wiggler.cfg
|
oocdcfg=$STR41XSCRIPTS/oocd_wiggler.cfg
|
||||||
while [ ! -z "$1" ]; do
|
while [ ! -z "$1" ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-d )
|
-d )
|
||||||
@ -36,11 +36,11 @@ while [ ! -z "$1" ]; do
|
|||||||
;;
|
;;
|
||||||
-pp )
|
-pp )
|
||||||
interface=pp
|
interface=pp
|
||||||
oocdcfg=$STR41XCFGS/oocd_wiggler.cfg
|
oocdcfg=$STR41XSCRIPTS/oocd_wiggler.cfg
|
||||||
;;
|
;;
|
||||||
-ftdi )
|
-ftdi )
|
||||||
interface=ftdi
|
interface=ftdi
|
||||||
oocdcfg=$STR41XCFGS/oocd_ftdi.cfg
|
oocdcfg=$STR41XSCRIPTS/oocd_ftdi.cfg
|
||||||
;;
|
;;
|
||||||
-h )
|
-h )
|
||||||
echo $usage
|
echo $usage
|
||||||
|
Loading…
Reference in New Issue
Block a user