setupenvLnx.sh: search more places for cgt
authorBill Mills <wmills@ti.com>
Fri, 9 Sep 2011 18:24:31 +0000 (14:24 -0400)
committerBill Mills <wmills@ti.com>
Fri, 9 Sep 2011 18:24:31 +0000 (14:24 -0400)
Search more dirs for an installed CGT

Signed-off-by: Bill Mills <wmills@ti.com>
src/make/setupenvLnx.sh

index d36a15916c767ba82769632e9feff407a8cf4c3f..752799b9ec1398b0f4d680749b56abbb690ce964 100755 (executable)
@@ -1,12 +1,12 @@
 #!/bin/bash
 export OS="Linux"
 
-# The below is only valid in TI Germantown network and should really not be here
-#export C6X_BASE_DIR=/apps/ti/cgt/TI_CGT_C6000_6.1.12
-#export C6X_BASE_DIR=/apps/ti/cgt/C6000CGT7.2.0
+if [ -z $C6X_CGT_VERSION ]; then
+    C6X_CGT_VERSION=7.2.1
+fi
 
 if [ -z "$C6X_BASE_DIR" ]; then
-       for dir in {~,}/opt/ti/ccsv5/tools/compiler/c6000 ; do
+       for dir in {~,}{,/opt}/{ti,TI,texas_instruments}/TI_CGT_C6000_${C6X_CGT_VERSION} {~,}{,/opt}/{ti,texas_instruments}/ccsv5/tools/compiler/c6000 ; do
                if [ -x $dir/bin/cl6x ]; then
                        C6X_BASE_DIR=$dir
                        break