Fix Error in using EDMA as XDC package
authorPrasad Konnur <prasad.konnur@ti.com>
Tue, 7 Jun 2011 08:32:21 +0000 (14:02 +0530)
committerPrasad Konnur <prasad.konnur@ti.com>
Fri, 10 Jun 2011 15:05:26 +0000 (20:35 +0530)
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 1e4d71854045aa6946401e349406fb796b9d8f80..4b0810ce86cc8b156975619e4ab35bebd6dcde04 100755 (executable)
@@ -14,7 +14,7 @@ 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');
 var cortexA8 = xdc.useModule('ti.targets.arm.elf.A8F');
-var C64T_ELF = xdc.useModule('ti.targets.elf.C64T');
+//var C64T_ELF = xdc.useModule('ti.targets.elf.C64T');
 var M3 = xdc.useModule('ti.targets.arm.elf.M3');
 
 /* compiler paths for the CCS4.0                   */
@@ -26,7 +26,7 @@ C64P.rootDir = cgtools;
 C64Pe.rootDir = cgtools;
 C674.rootDir = cgtools;
 C64P_ELF.rootDir = cgtools_elf;
-C64T_ELF.rootDir = cgtools_elf;
+//C64T_ELF.rootDir = cgtools_elf;
 C64Pe_ELF.rootDir = cgtools_elf;
 C674_ELF.rootDir = cgtools_elf;
 C66.rootDir = cgtools_elf;
@@ -42,14 +42,14 @@ C64P.ccOpts.suffix += " -mi10 -mo ";
 C64Pe.ccOpts.suffix += " -mi10 -mo -me ";
 C674.ccOpts.suffix += " -mi10 -mo ";
 C64P_ELF.ccOpts.suffix += " -mi10 -mo ";
-C64T_ELF.ccOpts.suffix += " -mi10 -mo ";
+//C64T_ELF.ccOpts.suffix += " -mi10 -mo ";
 C64Pe_ELF.ccOpts.suffix += " -mi10 -mo -me ";
 C674_ELF.ccOpts.suffix += " -mi10 -mo ";
 C66.ccOpts.suffix += " -mi10 -mo ";
 C66e.ccOpts.suffix += " -mi10 -mo -me ";
 Arm.ccOpts.suffix += " ";
 cortexA8.ccOpts.suffix += "";
-
+M3.ccOpts.suffix += "";
 
 /* set default platform and list of all interested platforms */
 C64P.platforms = [
@@ -72,9 +72,9 @@ C64P_ELF.platforms = [
                      "ti.platforms.evm6472",
                      "ti.platforms.evmTCI6486",
                  ];
-C64T_ELF.platforms = [
-                     "ti.platforms.sdp4430",
-                 ];
+//C64T_ELF.platforms = [
+//                     "ti.platforms.sdp4430",
+//                 ];
 C64Pe_ELF.platforms = [
                      "ti.platforms.evm6472",
                      "ti.platforms.evmTCI6486",
@@ -107,8 +107,7 @@ cortexA8.platforms = [
                          "ti.platforms.evmDM8148",
                      ];
 M3.platforms = [
-                     "ti.platforms.evmTI816X:core0",
-                     "ti.platforms.evmTI816X:core1",
+                     "ti.platforms.evmTI816X",
                  ];
 
 /* select the default platform */
@@ -116,18 +115,18 @@ C64P.platform = C64P.platforms[0];
 C64Pe.platform = C64Pe.platforms[0];
 C674.platform = C674.platforms[0];
 C64P_ELF.platform = C64P_ELF.platforms[0];
-C64T_ELF.platform = C64T_ELF.platforms[0];
+//C64T_ELF.platform = C64T_ELF.platforms[0];
 C64Pe_ELF.platform = C64Pe_ELF.platforms[0];
 C674_ELF.platform = C674_ELF.platforms[0];
 C66.platform = C66.platforms[0];
 C66e.platform = C66e.platforms[0];
 Arm.platform = Arm.platforms[0];
 cortexA8.platform = cortexA8.platforms[0];
-M3.platform = M3.platforms[1];
+M3.platform = M3.platforms[0];
 
 /* list interested targets in Build.targets array  */
 Build.targets = [
-                  C64T_ELF,
+                  //C64T_ELF,
                     //C64,
                     C64P,
                     C64Pe,
index 6382c39fb6648b33c6a543d9a5e2b84a7dbcdefc..176c87fbd99ff089d83ccd2aeb89edcd36f4f71a 100755 (executable)
@@ -54,6 +54,7 @@ var targ_supported = [
                     'A8F',
                     'C66',
                     'C66_big_endian',
+                    'M3',
                ];
 
 /* Directories for each target */
@@ -65,6 +66,7 @@ var dir = [
             'a8/',
             '66/',
             '66/',
+            'm3/',
           ];
 
 for each (var targ in Build.targets)
index d26e637649b6cb8422df54ea3c90082b6a16f622..b0f39cde8a6c589200e33b2901e7d4bf1cd7e548 100755 (executable)
@@ -137,6 +137,12 @@ var objListEVMTCI6486 = [
     "src/sample_init.c",
 ];
 
+var objListTI816XARM = [
+    "src/platforms/sample_ti816x_m3video_cfg.c",
+    "src/platforms/sample_ti816x_m3video_int_reg.c",
+    "src/sample_arm_cs.c",
+    "src/sample_arm_init.c",
+];
 
 var chipdefines = [
                     'CHIP_DA830',
@@ -158,7 +164,8 @@ var chipdefines = [
                     'CHIP_TCI6486',
                     'CHIP_TCI6486',
                     'CHIP_TI814X',
-                    'CHIP_TI814X'
+                    'CHIP_TI814X',
+                    'CHIP_TI816X',
                   ];
 
 /* Platforms supported */
@@ -222,7 +229,10 @@ var plat_supported = [
                         },
                         {
                             platform: 'ti.platforms.evmDM8148',targ : 'A8F', objList: objListTI814XARM, dir : 'ti814x-evm/a8/'
-                        }
+                        },
+                        {
+                            platform: 'ti.platforms.evmTI816X',targ : 'M3', objList: objListTI816XARM, dir : 'ti816x-evm/m3/'
+                        },
                      ];
 
 for each (var targ in Build.targets)
@@ -252,7 +262,9 @@ for each (var targ in Build.targets)
         }
 
         if (bool == 0)
+               {
             throw new Error('Unexpected value in "platform" parameter')
+               }
 
         if (java.lang.String(targ.model.endian).equals("big"))  {
             Pkg.addLibrary(lib + "debug/" + Pkg.name, targ,
index 7498201b74c5c0d52557427f7560c5fa19ac31c3..085ac84ff4190d232045ae305a2fc93556412265 100755 (executable)
@@ -153,6 +153,15 @@ var objListGeneric = [
     "src/edma3_rm_gbl_data.c",
 ];
 
+var objListTI816XARM = [
+    /* The configuration file. */
+    "src/configs/edma3_ti816x_cfg.c",
+    /* Common file. */
+    "src/edma3resmgr.c",
+    /* File defining internal data structures. */
+    "src/edma3_rm_gbl_data.c",
+];
+
 /* Platforms supported */
 var plat_supported = [
                         {
@@ -214,7 +223,10 @@ var plat_supported = [
                         },
                         {
                             platform: 'ti.platforms.evmDM8148',targ : 'A8F', objList: objListTI814X, dir : 'ti814x-evm/a8/'
-                        }
+                        },
+                        {
+                            platform: 'ti.platforms.evmTI816X',targ : 'M3', objList: objListTI816XARM, dir : 'ti816x-evm/m3/'
+                        },
                      ];
 
 /* Targets supported */
@@ -226,6 +238,7 @@ var targ_supported = [
                     'A8F',
                     'C66',
                     'C66_big_endian',
+                    'M3'
                ];
 
 /* Directories for each target */
@@ -237,6 +250,7 @@ var dir = [
             'a8/',
             '66/',
             '66/',
+            'm3/',
           ];
 
 for each (var targ in Build.targets)
index f910371b5b3d534a4aaf4f71aba3f05659c03ec5..839169b1381c2e8932c6a475c9e898ce1f64f243 100755 (executable)
@@ -136,6 +136,12 @@ var objListEVMTCI6486= [
     "src/sample_init.c",
 ];
 
+var objListTI816XARM = [
+    "src/platforms/sample_ti816x_cfg.c",
+    "src/platforms/sample_ti816x_int_reg.c",
+    "src/sample_arm_cs.c",
+    "src/sample_arm_init.c",
+];
 
 var chipdefines = [
                     'CHIP_DA830',
@@ -157,7 +163,8 @@ var chipdefines = [
                     'CHIP_TCI6486',
                     'CHIP_TCI6486',
                     'CHIP_TI814X',
-                    'CHIP_TI814X'
+                    'CHIP_TI814X',
+                    'CHIP_TI816X',
                   ];
 
 /* Platforms supported */
@@ -221,7 +228,10 @@ var plat_supported = [
                         },
                         {
                             platform: 'ti.platforms.evmDM8148',targ : 'A8F', objList: objListTI814XARM, dir : 'ti814x-evm/a8/'
-                        }
+                        },
+                        {
+                            platform: 'ti.platforms.evmTI816X',targ : 'M3', objList: objListTI816XARM, dir : 'ti816x-evm/m3/'
+                        },
                      ];
 
 for each (var targ in Build.targets)