TCI6498 related changes in RTSC build files
authorAnuj Aggarwal <anuj.aggarwal@ti.com>
Thu, 20 Aug 2009 04:31:51 +0000 (10:01 +0530)
committerAnuj Aggarwal <anuj.aggarwal@ti.com>
Thu, 20 Aug 2009 04:31:51 +0000 (10:01 +0530)
RTSC build files (package.xdc, package.bld etc) are modified
for new platform TCI6498

13 files changed:
package.bld
package.xdc
packages/config.bld
packages/ti/sdo/edma3/drv/package.bld
packages/ti/sdo/edma3/drv/package.xdc
packages/ti/sdo/edma3/drv/package.xs
packages/ti/sdo/edma3/drv/sample/package.bld
packages/ti/sdo/edma3/drv/sample/package.xdc
packages/ti/sdo/edma3/drv/sample/package.xs
packages/ti/sdo/edma3/rm/package.bld
packages/ti/sdo/edma3/rm/package.xdc
packages/ti/sdo/edma3/rm/package.xs
packages/ti/sdo/edma3/rm/sample/package.xdc

index d9a9adb5e2fedb2c1f1f5d21f67785371f6ee36b..da2802b3cc01429cd994e8a376d71a9b556ca21a 100644 (file)
@@ -36,8 +36,8 @@ Pkg.attrs.archiver = "zip"
 Pkg.otherFiles = [
     'docs',
     'examples',
-    /* 'config.bld', */
     'package.bld',
-    'release_notes_edma3_lld_02_00_01.html',
+    'release_notes_edma3_lld_02_10_00.html',
+    'software-manifest.pdf',
 ];
 
index 869802e844d4d75a332662dd2e6ddec593066bd7..448d55106c9d6260c4fcb21a397e2860287a44f4 100644 (file)
@@ -8,10 +8,8 @@ requires ti.sdo.edma3.rm.sample;
 requires ti.sdo.edma3.drv;
 requires ti.sdo.edma3.drv.sample;
 
-
 /*!
- *  ======== edma3_lld_02_00_01_04 ========
+ *  ======== edma3_lld_02_00_02_05 ========
  */
-package edma3_lld_02_00_01_04 [02, 00, 01] {
+package edma3_lld_02_00_02_05 [02, 00, 02] {
 }
-
index 1f437b0e5a7b6e1a24a40eb5c585340e11370cf3..17e03d8a7cd2687a9eb6697dec0cf16957637ad0 100644 (file)
@@ -4,27 +4,45 @@
  */
 
 /* load the required modules for the configuration */
+var C64P = xdc.useModule('ti.targets.C64P');
+var C64Pe = xdc.useModule('ti.targets.C64P_big_endian');
 var C674 = xdc.useModule('ti.targets.C674');
 
 /* compiler paths for the CCS4.0                   */
-C674.rootDir = "D:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000";
+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";
 
 /**********************************c674******************************/
 
 /* compiler options                                */
+C64P.ccOpts.suffix += " -mi10 -mo ";
+C64Pe.ccOpts.suffix += " -mi10 -mo -me ";
 C674.ccOpts.suffix += " -mi10 -mo ";
 
-/* set default platform and list of all interested *
- * platforms for c64P                              */
-
+/* set default platform and list of all interested platforms */
+C64P.platforms = [
+                     "ti.platforms.simTCI6498",
+                 ];
+C64Pe.platforms = [
+                     "ti.platforms.simTCI6498",
+                 ];
 C674.platforms = [
                      "ti.platforms.evmDA830",
                  ];
-/* select the default platform                     */
-C674.platform = C674.platforms[0];
 
+/* select the default platform */
+C64P.platform = C64P.platforms[0];
+C64Pe.platform = C64Pe.platforms[0];
+C674.platform = C674.platforms[0];
 
 /* list interested targets in Build.targets array  */
 Build.targets = [
+                  //C64,
+                    C64P,
+                    C64Pe,
+                  //C67P,
                     C674,
+                  //Arm9,
+                  //Win32,
                 ];
index b1b1f4b57fedd13531d78f591dd219f85f71a587..5df37c277eaeff5d99af6d65b8da605a72d8dbbd 100644 (file)
@@ -18,15 +18,26 @@ var objList = [
 
 for each (var targ in Build.targets)
 {
-       Pkg.addLibrary("lib/Debug/" + Pkg.name, targ,
-               { defs:"", profile: "debug"}
-               ).addObjects(objList);
-       Pkg.addLibrary("lib/Release/" + Pkg.name, targ,
-               { defs:"", profile: "release"}
-               ).addObjects(objList);
+       for each (var plat in targ.platforms)
+       {
+               if (java.lang.String(targ.model.endian).equals("big"))  {
+                       Pkg.addLibrary("lib/Debug/" + Pkg.name, targ,
+                               { defs:"-DBIG_ENDIAN_MODE", profile: "debug"}
+                               ).addObjects(objList);
+                       Pkg.addLibrary("lib/Release/" + Pkg.name, targ,
+                               { defs:"-DBIG_ENDIAN_MODE", profile: "release"}
+                               ).addObjects(objList);
+               } else {
+                       Pkg.addLibrary("lib/Debug/" + Pkg.name, targ,
+                               { defs:"", profile: "debug"}
+                               ).addObjects(objList);
+                       Pkg.addLibrary("lib/Release/" + Pkg.name, targ,
+                               { defs:"", profile: "release"}
+                               ).addObjects(objList);
+               }
+       }
 }
 
-
 Pkg.otherFiles=[
         'docs',
         'lib/Debug/ti.sdo.edma3.drv.a674',
index efd21dfe2a883ebedddc2f16c869dfc0f0c37659..acf4344df8d93962e6b993cdd91f5cb7f06dedc9 100644 (file)
@@ -13,5 +13,5 @@ requires ti.sdo.edma3.rm;
 /*!
  *  ======== ti.sdo.edma3.drv ========
  */
-package ti.sdo.edma3.drv [2, 00, 01] {
+package ti.sdo.edma3.drv [02, 00, 02] {
 }
index 2a3fe190b375fd846615b56ba6ee7b88c01b2430..af0e69bfdc96feca829d74af2e183dbafdab3eb8 100644 (file)
@@ -11,18 +11,51 @@ function getLibs(prog)
     print ("Inside EDMA3 Drv getLibs");
 
     /* Prepare variables to form the library path within this package */
-    var name = "ti.sdo.edma3.drv.a674";
+    var name = "ti.sdo.edma3.drv";
     var lib = "lib/";
+    var target;
+
+       var devices = [
+                                       'TMS320DA830',
+                                               'TMS320CTCI6498',
+                                       ];
+
+       /* Target name for each supported platform (as coming in the library name) */
+    var targ = [
+                '.a674',
+                '.a64P',
+              ];
+
+    for (var i = 0; i < devices.length; i++)
+        {
+        if (java.lang.String(Program.cpu.deviceName).equals(devices[i]))
+            {
+                /* Choose the selected platform and build the complete name */
+                target = targ[i];
+                bool = 1;
+                break;
+            }
+        }
+
+    if (bool == 0)
+        throw new Error('Unexpected value in "platform" parameter')
+
+       if (java.lang.String(Program.endian).equals("big"))     {
+               print ("Big Endian Mode Selected");
+               target += "e";
+               }
 
     switch (this.profile) {
     case 'debug':
         /* enable debug build for debug profile only */
-        lib = lib + "Debug/" + name;
+        print("i = " + i + ", target = " + target);
+        lib = lib + "Debug/" + name + target;
         break;
 
     default:
         /* release profile for everything else */
-        lib = lib + "Release/" + name;
+        print("i = " + i + ", target = " + target);
+        lib = lib + "Release/" + name + target;
     }
 
     print("    will link with " + this.$name + ":" + lib);
@@ -30,4 +63,3 @@ function getLibs(prog)
     /* return the library name */
     return (lib);
 }
-
index 22c5c15230c5ddfcc367737bc382af6d2af818ad..dc273d335e62db7ecf3e0652675dc4e4eab85b60 100644 (file)
@@ -11,23 +11,34 @@ var Build = xdc.useModule('xdc.bld.BuildEnvironment');
 var Pkg = xdc.useModule('xdc.bld.PackageContents');
 
 var objListDA830 = [
-    "src/bios6_edma3_drv_sample_da830_cfg.c",
-    "src/bios6_edma3_drv_sample_cs.c",
-    "src/bios6_edma3_drv_sample_init.c",
+    "src/platforms/sample_da830_cfg.c",
+    "src/platforms/sample_da830_int_reg.c",
+    "src/sample_cs.c",
+    "src/sample_init.c",
+];
+
+var objListSimTCI6498 = [
+    "src/platforms/sample_tci6498_cfg.c",
+    "src/platforms/sample_tci6498_int_reg.c",
+    "src/sample_cs.c",
+    "src/sample_init.c",
 ];
 
 var objList = [
        objListDA830,
+       objListSimTCI6498,
 ];
 
 /* Platforms supported */
 var plat_supported = [
                     'ti.platforms.evmDA830',
+                    'ti.platforms.simTCI6498',
                ];
 
 /* Directories for each platform */
 var dir = [
             'da830/',
+            'tci6498/',
           ];
 
 for each (var targ in Build.targets)
@@ -51,8 +62,21 @@ for each (var targ in Build.targets)
            if (bool == 0)
                throw new Error('Unexpected value in "platform" parameter')
 
-               Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ, { profile: "debug"}).addObjects(objList[i]);
-               Pkg.addLibrary(lib + "Release/" + Pkg.name, targ, { profile: "release"}).addObjects(objList[i]);
+               if (java.lang.String(targ.model.endian).equals("big"))  {
+                       Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
+                               { defs:"-DBIG_ENDIAN_MODE", profile: "debug"}
+                               ).addObjects(objList[i]);
+                       Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
+                               { defs:"-DBIG_ENDIAN_MODE", profile: "release"}
+                               ).addObjects(objList[i]);
+               } else {
+                       Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
+                               { defs:"", profile: "debug"}
+                               ).addObjects(objList[i]);
+                       Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
+                               { defs:"", profile: "release"}
+                               ).addObjects(objList[i]);
+               }
        }
 }
 
index ef26e0ce2677b37789b40fd233d853a081538d17..60d116b128532a5f0fded271d7f3cd45a18145db 100644 (file)
@@ -21,5 +21,5 @@ requires ti.sdo.edma3.drv;
 /*!
  *  ======== ti.sdo.edma3.drv.sample ========
  */
-package ti.sdo.edma3.drv.sample [2, 00, 01] {
+package ti.sdo.edma3.drv.sample [02, 00, 02] {
 }
index dc74f56b2133f784efc116e860df3c4ee5217ada..c7a4fb56bf273a9f16d6958a68626ef160811fc5 100644 (file)
@@ -13,17 +13,26 @@ function getLibs(prog)
     print ("Inside EDMA3 Drv Sample getLibs");
 
     /* Prepare variables to form the library path within this package */
-    var name = "ti.sdo.edma3.drv.sample.a674";
+    var name = "ti.sdo.edma3.drv.sample";
     var lib = "lib/";
+    var target;
 
        /* Devices supported */
        var devices = [
                                        'TMS320DA830',
+                                               'TMS320CTCI6498',
                                        ];
 
     /* Directories for each platform */
     var dir = [
                 'da830/',
+                               'tci6498/',
+              ];
+
+       /* Target name for each supported platform (as coming in the library name) */
+    var targ = [
+                '.a674',
+                '.a64P',
               ];
 
     for (var i = 0; i < devices.length; i++)
@@ -32,6 +41,7 @@ function getLibs(prog)
             {
                 /* Choose the selected platform */
                 lib = lib + dir[i];
+                target = targ[i];
                 bool = 1;
                 break;
             }
@@ -40,15 +50,22 @@ function getLibs(prog)
     if (bool == 0)
         throw new Error('Unexpected value in "platform" parameter')
 
+       if (java.lang.String(Program.endian).equals("big"))     {
+               print ("Big Endian Mode Selected");
+               target += "e";
+               }
+
     switch (this.profile) {
     case 'debug':
         /* enable debug build for debug profile only */
-        lib = lib + "Debug/" + name;
+        print("i = " + i + ", target = " + target);
+        lib = lib + "Debug/" + name + target;
         break;
 
     default:
         /* release profile for everything else */
-        lib = lib + "Release/" + name;
+        print("i = " + i + ", target = " + target);
+        lib = lib + "Release/" + name + target;
     }
 
     print("    will link with " + this.$name + ":" + lib);
index 3df36e60dd67fcdbb5d605ef8681471d9a72adc1..5cb9c4bc651c744449b210732ff5fb2770ebf803 100644 (file)
@@ -11,8 +11,17 @@ var Build = xdc.useModule('xdc.bld.BuildEnvironment');
 var Pkg = xdc.useModule('xdc.bld.PackageContents');
 
 var objListDA830 = [
-       /* The configuration file. */
-    "src/edma3_da830_cfg.c",
+    /* The configuration file. */
+    "src/configs/edma3_da830_cfg.c",
+    /* Common file. */
+    "src/edma3resmgr.c",
+    /* File defining internal data structures. */
+    "src/edma3_rm_gbl_data.c",
+];
+
+var objListSimTCI6498 = [
+    /* The configuration file. */
+    "src/configs/edma3_tci6498_cfg.c",
     /* Common file. */
     "src/edma3resmgr.c",
     /* File defining internal data structures. */
@@ -20,17 +29,20 @@ var objListDA830 = [
 ];
 
 var objList = [
-       objListDA830,
+    objListDA830,
+       objListSimTCI6498,
 ];
 
 /* Platforms supported */
 var plat_supported = [
                     'ti.platforms.evmDA830',
+                    'ti.platforms.simTCI6498',
                ];
 
 /* Directories for each platform */
 var dir = [
             'da830/',
+            'tci6498/',
           ];
 
 for each (var targ in Build.targets)
@@ -54,12 +66,21 @@ for each (var targ in Build.targets)
            if (bool == 0)
                throw new Error('Unexpected value in "platform" parameter')
 
-               Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
-                       { defs:"", profile: "debug"}
-                       ).addObjects(objList[i]);
-               Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
-                       { defs:"", profile: "release"}
-                       ).addObjects(objList[i]);
+               if (java.lang.String(targ.model.endian).equals("big"))  {
+                       Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
+                               { defs:"-DBIG_ENDIAN_MODE", profile: "debug"}
+                               ).addObjects(objList[i]);
+                       Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
+                               { defs:"-DBIG_ENDIAN_MODE", profile: "release"}
+                               ).addObjects(objList[i]);
+               } else {
+                       Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
+                               { defs:"", profile: "debug"}
+                               ).addObjects(objList[i]);
+                       Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
+                               { defs:"", profile: "release"}
+                               ).addObjects(objList[i]);
+               }
        }
 }
 
index e6ea3319a3d346378ed251bef505b1954294f87c..b21712fba59b53134274355070ee8d229d39bea9 100644 (file)
@@ -12,6 +12,6 @@
 /*!
  *  ======== ti.sdo.edma3.rm ========
  */
-package ti.sdo.edma3.rm [2, 00, 01] {
+package ti.sdo.edma3.rm [02, 00, 02] {
     module RM;
 }
index 4186225ae059f47a0923ce16c2a75574515b0ef6..c1605b01e1c9ab9699609269d1cc813e514d83bf 100644 (file)
@@ -13,25 +13,34 @@ function getLibs(prog)
     print ("Inside EDMA3 RM getLibs");
 
     /* Prepare variables to form the library path within this package */
-    var name = "ti.sdo.edma3.rm.a674";
+    var name = "ti.sdo.edma3.rm";
     var lib = "lib/";
+    var target;
 
-       /* Devices supported */
        var devices = [
                                        'TMS320DA830',
+                                               'TMS320CTCI6498',
                                        ];
 
     /* Directories for each platform */
     var dir = [
                 'da830/',
+                               'tci6498/',
+              ];
+
+       /* Target name for each supported platform (as coming in the library name) */
+    var targ = [
+                '.a674',
+                '.a64P',
               ];
 
     for (var i = 0; i < devices.length; i++)
         {
         if (java.lang.String(Program.cpu.deviceName).equals(devices[i]))
             {
-                /* Choose the selected platform and build the complete name. */
+                /* Choose the selected platform and build the complete name */
                 lib = lib + dir[i];
+                target = targ[i];
                 bool = 1;
                 break;
             }
@@ -40,15 +49,22 @@ function getLibs(prog)
     if (bool == 0)
         throw new Error('Unexpected value in "platform" parameter')
 
+       if (java.lang.String(Program.endian).equals("big"))     {
+               print ("Big Endian Mode Selected");
+               target += "e";
+               }
+
     switch (this.profile) {
     case 'debug':
         /* enable debug build for debug profile only */
-        lib = lib + "Debug/" + name;
+        print("i = " + i + ", target = " + target);
+        lib = lib + "Debug/" + name + target;
         break;
 
     default:
         /* release profile for everything else */
-        lib = lib + "Release/" + name;
+        print("i = " + i + ", target = " + target);
+        lib = lib + "Release/" + name + target;
     }
 
     print("    will link with " + this.$name + ":" + lib);
@@ -56,4 +72,3 @@ function getLibs(prog)
     /* return the library name */
     return (lib);
 }
-
index 80f7e6d9e7f6c07da8ef19a83502f3bfb48093e5..476b99e83b4168a3dcb7cfec00ea18256250fbe0 100644 (file)
@@ -20,5 +20,5 @@ requires ti.sdo.edma3.rm;
 /*!
  *  ======== ti.sdo.edma3.rm.sample ========
  */
-package ti.sdo.edma3.rm.sample [2, 00, 01] {
+package ti.sdo.edma3.rm.sample [02, 00, 02] {
 }