Added ELF support for C66x (both LE and BE) in the Generic library of RM
authorSundaram Raju <sundaram@ti.com>
Mon, 11 Oct 2010 09:48:53 +0000 (15:18 +0530)
committerSundaram Raju <sundaram@ti.com>
Tue, 12 Oct 2010 07:19:55 +0000 (12:49 +0530)
- Had to make some changes in XDC files to accomadate
  C66x in Generic and not in the platform specific libraries

Signed-off-by: Sundaram Raju <sundaram@ti.com>
packages/config.bld
packages/ti/sdo/edma3/drv/package.bld
packages/ti/sdo/edma3/drv/sample/package.bld
packages/ti/sdo/edma3/rm/package.bld
packages/ti/sdo/edma3/rm/sample/package.bld

index c80aef8cec0af2e71b5ab790e1474988c2eb2cd5..c4add0d0f4816c9eb21631a52ccb6b0554ab0c87 100755 (executable)
@@ -7,15 +7,20 @@
 var C64P = xdc.useModule('ti.targets.C64P');
 var C64Pe = xdc.useModule('ti.targets.C64P_big_endian');
 var C674 = xdc.useModule('ti.targets.C674');
+var C66 = xdc.useModule('ti.targets.elf.C66');
+var C66e = xdc.useModule('ti.targets.elf.C66_big_endian');
 var Arm = xdc.useModule('ti.targets.arm.elf.Arm9');
 
 /* compiler paths for the CCS4.0                   */
 var cgtools = java.lang.System.getenv("CGTOOLS");
+var cgtools_elf = java.lang.System.getenv("CGTOOLS_ELF");
 var armcgtools = java.lang.System.getenv("TMS470_CGTOOLS");
 
 C64P.rootDir = cgtools;
 C64Pe.rootDir = cgtools;
 C674.rootDir = cgtools;
+C66.rootDir = cgtools_elf;
+C66e.rootDir = cgtools_elf;
 Arm.rootDir = armcgtools;
 
 /**********************************c674******************************/
@@ -24,6 +29,8 @@ Arm.rootDir = armcgtools;
 C64P.ccOpts.suffix += " -mi10 -mo ";
 C64Pe.ccOpts.suffix += " -mi10 -mo -me ";
 C674.ccOpts.suffix += " -mi10 -mo ";
+C66.ccOpts.suffix += " -mi10 -mo ";
+C66e.ccOpts.suffix += " -mi10 -mo -me ";
 Arm.ccOpts.suffix += " ";
 
 
@@ -46,6 +53,12 @@ C674.platforms = [
                      "ti.platforms.evmDM8168",
                      "ti.platforms.evmDM8148",
                  ];
+C66.platforms = [
+                     /*empty*/
+                 ];
+C66e.platforms = [
+                     /*empty*/
+                 ];
 Arm.platforms = [
                      "ti.platforms.evmOMAPL138",
                  ];
@@ -54,6 +67,8 @@ Arm.platforms = [
 C64P.platform = C64P.platforms[0];
 C64Pe.platform = C64Pe.platforms[0];
 C674.platform = C674.platforms[0];
+C66.platform = null;
+C66e.platform = null;
 Arm.platform = Arm.platforms[0];
 
 /* list interested targets in Build.targets array  */
@@ -63,6 +78,8 @@ Build.targets = [
                     C64Pe,
                     //C67P,
                     C674,
+                    C66,
+                    C66e,
                     Arm,
                   //Win32,
                 ];
index dc7d3e69f5cd905e10b871b85ff734027e1c7628..9df8c0e3287dd050b2264534f1b11519c3372ee7 100755 (executable)
@@ -51,6 +51,9 @@ for each (var targ in Build.targets)
      * will be thrown by xdc that library already exists                      */
     var plat = targ.platform;
 
+    if (targ.platforms.length == 0)
+       continue;
+    
     if (java.lang.String(targ.model.endian).equals("big"))  {
         Pkg.addLibrary("lib/Debug/" + Pkg.name, targ,
             { defs:"-DBIG_ENDIAN_MODE", profile: "debug"}
index 8a0a770db78b299a84f2c9a4d50daeb4d8ab4a49..403181e4b62a6d2394285f85639a9645ec541499 100755 (executable)
@@ -177,6 +177,9 @@ for each (var targ in Build.targets)
         var lib = "lib/";
         var bool = 0;
 
+        if (targ.platforms.length == 0)
+               break;
+        
         for (var i = 0; i < plat_supported.length; i++)
         {
              if (java.lang.String(plat).equals(plat_supported[i].platform))
index 981d18f96e37c9996df79a0c5b13366e2cd33713..aace78718ae8b1d207666cb7e68f89a45c7adc4d 100755 (executable)
@@ -173,6 +173,9 @@ for each (var targ in Build.targets)
         var lib = "lib/";
         var bool = 0;
 
+        if (targ.platforms.length == 0)
+               break;
+        
         for (var i = 0; i < plat_supported.length; i++)
             {
             if (java.lang.String(plat).equals(plat_supported[i]))
@@ -260,6 +263,10 @@ Pkg.otherFiles=[
         'lib/generic/Debug/ti.sdo.edma3.rm.a64Pe',
         'lib/generic/Release/ti.sdo.edma3.rm.a64P',
         'lib/generic/Release/ti.sdo.edma3.rm.a64Pe',
+        'lib/generic/Debug/ti.sdo.edma3.rm.ae66',
+        'lib/generic/Debug/ti.sdo.edma3.rm.ae66e',
+        'lib/generic/Release/ti.sdo.edma3.rm.ae66',
+        'lib/generic/Release/ti.sdo.edma3.rm.ae66e',
         'src',
         '.cdtproject',
         '.project',
index ca9b81eac94d0a46583673a8244dcb18e871d410..2bd5a49475cd30eb590f465f0712917dc690c390 100755 (executable)
@@ -177,6 +177,9 @@ for each (var targ in Build.targets)
         var lib = "lib/";
         var bool = 0;
 
+        if (targ.platforms.length == 0)
+               break;
+        
         for (var i = 0; i < plat_supported.length; i++)
         {
             if (java.lang.String(plat).equals(plat_supported[i].platform))