Modified the build related (XDC) files for adding support to TI814X
authorSundaram Raju <sundaram@ti.com>
Tue, 7 Sep 2010 12:00:55 +0000 (17:30 +0530)
committerSundaram Raju <sundaram@ti.com>
Tue, 7 Sep 2010 23:48:41 +0000 (05:18 +0530)
Signed-off-by: Sundaram Raju <sundaram@ti.com>
packages/config.bld
packages/ti/sdo/edma3/drv/package.xs
packages/ti/sdo/edma3/drv/sample/package.bld
packages/ti/sdo/edma3/drv/sample/package.xs
packages/ti/sdo/edma3/rm/package.bld
packages/ti/sdo/edma3/rm/package.xs
packages/ti/sdo/edma3/rm/sample/package.bld
packages/ti/sdo/edma3/rm/sample/package.xs

index 11c5b3764a63042f4225f6dd9ad273fb58059658..c80aef8cec0af2e71b5ab790e1474988c2eb2cd5 100755 (executable)
@@ -44,6 +44,7 @@ C674.platforms = [
                      "ti.platforms.evmOMAPL138",
                      "ti.platforms.simDM8168",
                      "ti.platforms.evmDM8168",
+                     "ti.platforms.evmDM8148",
                  ];
 Arm.platforms = [
                      "ti.platforms.evmOMAPL138",
index 61fa00d0c2bfa0b54a13713e7eb78a3b544d1a21..a7aba1b640c8eae52c84848b20ff17ac73d8dc73 100755 (executable)
@@ -58,6 +58,7 @@ function getLibs(prog)
                         'OMAPL138',
                        'TMS320C6472',
                        'TMS320CTCI6486',
+                       'TMS320DM8148',
                     ];
 
     for (var i = 0; i < devices.length; i++)
index c1cd0f4ba1cae7eee157c81463d1cc39109cc1ba..8a0a770db78b299a84f2c9a4d50daeb4d8ab4a49 100755 (executable)
@@ -104,6 +104,13 @@ var objListEVMTCI6486 = [
     "src/sample_init.c",
 ];
 
+var objListTI814X = [
+    "src/platforms/sample_ti814x_cfg.c",
+    "src/platforms/sample_ti814x_int_reg.c",
+    "src/sample_cs.c",
+    "src/sample_init.c",
+];
+
 /* Platforms supported */
 var plat_supported = [
                         {
@@ -141,9 +148,28 @@ var plat_supported = [
                         },
                         {
                             platform: 'ti.platforms.evmTCI6486', targ : 'C64P_big_endian',objList: objListEVMTCI6486, dir : 'tci6486/'
+                        },
+                        {
+                            platform: 'ti.platforms.evmDM8148',  targ : 'C674', objList: objListTI814X, dir : 'ti814x/'
                         }
                      ];
 
+var chipdefines = [
+                    'CHIP_DA830',
+                    'SIMTCI6498',
+                    'SIMTCI6498',
+                    'CHIP_C6748',
+                    'CHIP_OMAPL138',
+                    'CHIP_OMAPL138',
+                    'SIMTI816X',
+                    'CHIP_TI816X',
+                    'CHIP_C6472',
+                    'CHIP_C6472',
+                    'CHIP_TCI6486',
+                    'CHIP_TCI6486',
+                    'CHIP_TI814X',
+                  ];
+
 for each (var targ in Build.targets)
 {
     for each (var plat in targ.platforms)
@@ -153,12 +179,14 @@ for each (var targ in Build.targets)
 
         for (var i = 0; i < plat_supported.length; i++)
         {
-            if (java.lang.String(plat).equals(plat_supported[i].platform))
+             if (java.lang.String(plat).equals(plat_supported[i].platform))
             {
+                var chip = "-D";
                 if (java.lang.String(targ.name).equals(plat_supported[i].targ))
                 {
                     /* Choose the selected platform */
                     lib = lib + plat_supported[i].dir;
+                    chip = chip + chipdefines[i];
                     bool = 1;
                     break;
                 }
@@ -177,10 +205,10 @@ for each (var targ in Build.targets)
                 ).addObjects(plat_supported[i].objList);
         } else {
             Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
-                { defs:"", profile: "debug"}
+                { defs:chip, profile: "debug"}
                 ).addObjects(plat_supported[i].objList);
             Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
-                { defs:"", profile: "release"}
+                { defs:chip, profile: "release"}
                 ).addObjects(plat_supported[i].objList);
         }
     }
@@ -197,6 +225,8 @@ Pkg.otherFiles=[
         'lib/omapl138/Release/ti.sdo.edma3.drv.sample.a674',
         'lib/omapl138/Debug/ti.sdo.edma3.drv.sample.ae9',
         'lib/omapl138/Release/ti.sdo.edma3.drv.sample.ae9',
+        'lib/ti814x/Debug/ti.sdo.edma3.drv.sample.a674',
+        'lib/ti814x/Release/ti.sdo.edma3.drv.sample.a674',
         'lib/tci6498/Debug/ti.sdo.edma3.drv.sample.a64P',
         'lib/tci6498/Debug/ti.sdo.edma3.drv.sample.a64Pe',
         'lib/tci6498/Release/ti.sdo.edma3.drv.sample.a64P',
@@ -225,6 +255,8 @@ Pkg.otherFiles=[
         'src/platforms/sample_omapl138_int_reg.c',
         'src/platforms/sample_omapl138_arm_cfg.c',
         'src/platforms/sample_omapl138_arm_int_reg.c',
+        'src/platforms/sample_ti814x_cfg.c',
+        'src/platforms/sample_ti814x_int_reg.c',
         'src/platforms/sample_tci6498_cfg.c',
         'src/platforms/sample_tci6498_int_reg.c',
         'src/platforms/sample_ti816x_cfg.c',
index 820a5c072dd71fa8a1b2f045abd3e5b2cec8d978..da6043ac9321440670f147bdd0decd27341f182d 100755 (executable)
@@ -60,6 +60,7 @@ function getLibs(prog)
                         'TMS320DM8168',
                         'TMS320C6472',
                         'TMS320CTCI6486',
+                        'TMS320DM8148',
                     ];
 
     /* Directories for each platform */
@@ -72,6 +73,7 @@ function getLibs(prog)
                 'evmti816x/',
                 'c6472/',
                 'tci6486/',
+                'ti814x/',
 ];
 
     for (var i = 0; i < devices.length; i++)
index df41dd979bae2e2290728069d971fa6176f676e8..981d18f96e37c9996df79a0c5b13366e2cd33713 100755 (executable)
@@ -65,6 +65,15 @@ var objListOMAPL138 = [
     "src/edma3_rm_gbl_data.c",
 ];
 
+var objListTI814X = [
+    /* The configuration file. */
+    "src/configs/edma3_ti814x_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",
@@ -127,6 +136,7 @@ var objList = [
     objListEVMTI816X,
     objListEVM6472,
     objListEVMTCI6486,
+    objListTI814X,
 ];
 
 /* Platforms supported */
@@ -139,6 +149,7 @@ var plat_supported = [
                     'ti.platforms.evmDM8168',
                     'ti.platforms.evm6472',
                     'ti.platforms.evmTCI6486',
+                    'ti.platforms.evmDM8148',
                ];
 
 /* Directories for each platform */
@@ -151,6 +162,7 @@ var dir = [
             'evmti816x/',
             'c6472/',
             'tci6486/',
+            'ti814x/',
             'generic/',
           ];
 
@@ -223,6 +235,8 @@ Pkg.otherFiles=[
         'lib/c6748/Release/ti.sdo.edma3.rm.a674',
         'lib/omapl138/Debug/ti.sdo.edma3.rm.a674',
         'lib/omapl138/Release/ti.sdo.edma3.rm.a674',
+        'lib/ti814x/Debug/ti.sdo.edma3.rm.a674',
+        'lib/ti814x/Release/ti.sdo.edma3.rm.a674',
         'lib/tci6498/Debug/ti.sdo.edma3.rm.a64P',
         'lib/tci6498/Debug/ti.sdo.edma3.rm.a64Pe',
         'lib/tci6498/Release/ti.sdo.edma3.rm.a64P',
@@ -240,12 +254,12 @@ Pkg.otherFiles=[
         'lib/tci6486/Debug/ti.sdo.edma3.rm.a64Pe',
         'lib/tci6486/Release/ti.sdo.edma3.rm.a64P',
         'lib/tci6486/Release/ti.sdo.edma3.rm.a64Pe',
-        'lib/Debug/ti.sdo.edma3.rm.a674',
-        'lib/Release/ti.sdo.edma3.rm.a674',
-        'lib/Debug/ti.sdo.edma3.rm.a64P',
-        'lib/Debug/ti.sdo.edma3.rm.a64Pe',
-        'lib/Release/ti.sdo.edma3.rm.a64P',
-        'lib/Release/ti.sdo.edma3.rm.a64Pe',
+        'lib/generic/Debug/ti.sdo.edma3.rm.a674',
+        'lib/generic/Release/ti.sdo.edma3.rm.a674',
+        'lib/generic/Debug/ti.sdo.edma3.rm.a64P',
+        'lib/generic/Debug/ti.sdo.edma3.rm.a64Pe',
+        'lib/generic/Release/ti.sdo.edma3.rm.a64P',
+        'lib/generic/Release/ti.sdo.edma3.rm.a64Pe',
         'src',
         '.cdtproject',
         '.project',
index e21107386cccdebf4fd361c70e09a55fc2eb3689..1d99f1e7068914dea0ee6701505c9e064e346d99 100755 (executable)
@@ -64,6 +64,7 @@ function getLibs(prog)
                         'TMS320DM8168',
                         'TMS320C6472',
                         'TMS320CTCI6486',
+                        'TMS320DM8148',
                     ];
 
     /* Directories for each platform */
@@ -76,6 +77,7 @@ function getLibs(prog)
                 'evmti816x/',
                 'c6472/',
                 'tci6486/',
+                'ti814x/',
               ];
 
     for (var i = 0; i < devices.length; i++)
index 06dd8898822b3faa9a7810d02959d5ca263737ea..ca9b81eac94d0a46583673a8244dcb18e871d410 100755 (executable)
@@ -61,6 +61,13 @@ var objListOMAPL138 = [
     "src/sample_init.c",
 ];
 
+var objListTI814X = [
+    "src/platforms/sample_ti814x_cfg.c",
+    "src/platforms/sample_ti814x_int_reg.c",
+    "src/sample_cs.c",
+    "src/sample_init.c",
+];
+
 var objListOMAPL138ARM = [
     "src/platforms/sample_omapl138_arm_cfg.c",
     "src/platforms/sample_omapl138_arm_int_reg.c",
@@ -104,6 +111,22 @@ var objListEVMTCI6486= [
 ];
 
 
+var chipdefines = [
+                    'CHIP_DA830',
+                    'SIMTCI6498',
+                    'SIMTCI6498',
+                    'CHIP_C6748',
+                    'CHIP_OMAPL138',
+                    'CHIP_OMAPL138',
+                    'SIMTI816X',
+                    'CHIP_TI816X',
+                    'CHIP_C6472',
+                    'CHIP_C6472',
+                    'CHIP_TCI6486',
+                    'CHIP_TCI6486',
+                    'CHIP_TI814X',
+                  ];
+
 /* Platforms supported */
 var plat_supported = [
                         {
@@ -141,6 +164,9 @@ var plat_supported = [
                         },
                         {
                             platform: 'ti.platforms.evmTCI6486', targ : 'C64P_big_endian', objList: objListEVMTCI6486, dir : 'tci6486/'
+                        },
+                        {
+                            platform: 'ti.platforms.evmDM8148',targ : 'C674', objList: objListTI814X, dir : 'ti814x/'
                         }
                      ];
 
@@ -155,10 +181,12 @@ for each (var targ in Build.targets)
         {
             if (java.lang.String(plat).equals(plat_supported[i].platform))
             {
+                var chip = "-D";
                 if (java.lang.String(targ.name).equals(plat_supported[i].targ))
                 {
                     /* Choose the selected platform */
                     lib = lib + plat_supported[i].dir;
+                    chip = chip + chipdefines[i];
                     bool = 1;
                     break;
                 }
@@ -177,10 +205,10 @@ for each (var targ in Build.targets)
                 ).addObjects(plat_supported[i].objList);
         } else {
             Pkg.addLibrary(lib + "Debug/" + Pkg.name, targ,
-                { defs:"", profile: "debug"}
+                { defs:chip, profile: "debug"}
                 ).addObjects(plat_supported[i].objList);
             Pkg.addLibrary(lib + "Release/" + Pkg.name, targ,
-                { defs:"", profile: "release"}
+                { defs:chip, profile: "release"}
                 ).addObjects(plat_supported[i].objList);
         }
     }
@@ -197,6 +225,8 @@ Pkg.otherFiles=[
         'lib/omapl138/Release/ti.sdo.edma3.rm.sample.a674',
         'lib/omapl138/Debug/ti.sdo.edma3.rm.sample.ae9',
         'lib/omapl138/Release/ti.sdo.edma3.rm.sample.ae9',
+        'lib/ti814x/Debug/ti.sdo.edma3.rm.sample.a674',
+        'lib/ti814x/Release/ti.sdo.edma3.rm.sample.a674',
         'lib/tci6498/Debug/ti.sdo.edma3.rm.sample.a64P',
         'lib/tci6498/Debug/ti.sdo.edma3.rm.sample.a64Pe',
         'lib/tci6498/Release/ti.sdo.edma3.rm.sample.a64P',
@@ -226,10 +256,12 @@ Pkg.otherFiles=[
         'src/platforms/sample_omapl138_int_reg.c',
         'src/platforms/sample_omapl138_arm_cfg.c',
         'src/platforms/sample_omapl138_arm_int_reg.c',
+        'src/platforms/sample_ti814x_cfg.c',
+        'src/platforms/sample_ti814x_int_reg.c',
         'src/platforms/sample_tci6498_cfg.c',
         'src/platforms/sample_tci6498_int_reg.c',
-        'src/platforms/sample_dm740_cfg.c',
-        'src/platforms/sample_dm740_int_reg.c',
+        'src/platforms/sample_ti816x_cfg.c',
+        'src/platforms/sample_ti816x_int_reg.c',
         'src/platforms/sample_c6472_cfg.c',
         'src/platforms/sample_c6472_int_reg.c',
         'src/platforms/sample_tci6486_cfg.c',
index b3dc3bf34842031ded635e1b3eac8dae0f8637a9..c3131ef6ccc64b3470fcc0e4b84de692e92a587d 100755 (executable)
@@ -65,6 +65,7 @@ function getLibs(prog)
                         'TMS320CDM8168',
                         'TMS320C6472',
                         'TMS320CTCI6486',
+                        'TMS320DM8148',
                     ];
 
     /* Directories for each platform */
@@ -77,6 +78,7 @@ function getLibs(prog)
                 'evmti816x/',
                 'c6472/',
                 'tci6486/',
+               'ti814x/',
               ];