Build: update setupenvLnx.sh to do error checking
authorBill Mills <wmills@ti.com>
Mon, 5 Sep 2011 21:57:26 +0000 (17:57 -0400)
committerBill Mills <wmills@ti.com>
Mon, 5 Sep 2011 21:57:26 +0000 (17:57 -0400)
Do a basic sanity test of C6X_BASE_DIR

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

index 19815c443e276cbf156f2090c70df98c82ef80f2..d36a15916c767ba82769632e9feff407a8cf4c3f 100755 (executable)
@@ -14,6 +14,11 @@ if [ -z "$C6X_BASE_DIR" ]; then
        done
 fi
 
+if [ ! -x $C6X_BASE_DIR/bin/cl6x ] ; then
+       echo "You must define the C6X_BASE_DIR to point to TI CGT compiler for C6000"
+       exit 2
+fi
+
 #make sure its exported
 export C6X_BASE_DIR