Using environment variable in config.bld file to locate CG toolchain
authorAnuj Aggarwal <anuj.aggarwal@ti.com>
Sun, 13 Sep 2009 05:20:35 +0000 (10:50 +0530)
committerAnuj Aggarwal <anuj.aggarwal@ti.com>
Sun, 13 Sep 2009 05:20:35 +0000 (10:50 +0530)
packages/config.bld [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 17e03d8..b8a9a6f
@@ -9,9 +9,10 @@ var C64Pe = xdc.useModule('ti.targets.C64P_big_endian');
 var C674 = xdc.useModule('ti.targets.C674');
 
 /* compiler paths for the CCS4.0                   */
-C64P.rootDir = "D:/Program Files/Texas Instruments/C6000 Code Generation Tools 6.1.10";
-C64Pe.rootDir = "D:/Program Files/Texas Instruments/C6000 Code Generation Tools 6.1.10";
-C674.rootDir = "D:/Program Files/Texas Instruments/C6000 Code Generation Tools 6.1.10";
+var cgtools = java.lang.System.getenv("CGTOOLS");
+C64P.rootDir = cgtools;
+C64Pe.rootDir = cgtools;
+C674.rootDir = cgtools;
 
 /**********************************c674******************************/