Adding TCI6498 support in RM sample init lib
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / package.bld
old mode 100644 (file)
new mode 100755 (executable)
index 93062da..437448f
@@ -11,23 +11,34 @@ var Build = xdc.useModule('xdc.bld.BuildEnvironment');
 var Pkg = xdc.useModule('xdc.bld.PackageContents');
 
 var objListDA830 = [
-    "src/bios6_edma3_rm_sample_da830_cfg.c",
-    "src/bios6_edma3_rm_sample_cs.c",
-    "src/bios6_edma3_rm_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,16 +62,41 @@ 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]);
+               }
        }
 }
 
 
 Pkg.otherFiles=[
+               '.settings/org.eclipse.cdt.core.prefs',
         'lib/da830/Debug/ti.sdo.edma3.rm.sample.a674',
         'lib/da830/Release/ti.sdo.edma3.rm.sample.a674',
-        'src',
+        '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',
+        'lib/tci6498/Release/ti.sdo.edma3.rm.sample.a64Pe',
+        'src/sample_cs.c',
+        'src/sample_init.c',
+               'src/platforms/sample_da830_cfg.c',
+               'src/platforms/sample_da830_int_reg.c',
+               'src/platforms/sample_tci6498_cfg.c',
+               'src/platforms/sample_tci6498_int_reg.c',
+        '.cdtproject',
+        '.project',
         'bios6_edma3_rm_sample.h',
         'package.bld',
         'package.xs',