Updated package.xs to search library based on device name
authorPrasad Konnur <prasad.konnur@ti.com>
Wed, 21 Sep 2011 11:24:19 +0000 (16:54 +0530)
committerprasad <prasad.konnur@ti.com>
Wed, 5 Oct 2011 09:48:27 +0000 (15:18 +0530)
getlibs() function of xdc is edited to pick libraries based on device name insted of platform name.
For custom boards platform name is user defined.
Could not differentiate between Netra EVM and SIM libraries and SAIm libraries are never returned.

Signed-off-by: Prasad Konnur <prasad.konnur@ti.com>
packages/ti/sdo/edma3/drv/package.xs
packages/ti/sdo/edma3/drv/sample/package.xs
packages/ti/sdo/edma3/rm/package.xs
packages/ti/sdo/edma3/rm/sample/package.xs

index ab54e7a80c859a5c1db53aa5e3eca37a65055dd2..e367a364322297e0beca2e85688df31e7468f7f1 100755 (executable)
@@ -57,26 +57,25 @@ function getLibs(prog)
     var extension;
 
     /* Boards supported */
-    var boards = [
-                        'evmDA830',
-                        'simTCI6608',
-                        'simTCI6616',
-                        'evm6670',
-                        'evm6678',
-                        'evm6748',
-                        'evmOMAPL138',
-                        'simDM8168',
-                        'evmDM8168',
-                        'evm6472',
-                        'evmTCI6486',
-                        'evmDM8148',
-                        'evmTI814X',
-                        'evmTI816X',
+    var devices = [
+                        'TMS320DA830',
+                        'TMS320TCI6608',
+                        'TMS320TCI6616',
+                        'TMS320C6670',
+                        'TMS320C6678',
+                        'TMS320C6748',
+                        'OMAPL138',
+                        'TMS320DM8168',
+                        'TMS320C6472',
+                        'TMS320CTCI6486',
+                        'TMS320DM8148',
+                        'TMS320TI814X',
+                        'TMS320TI816X',
                     ];
 
-    for (var i = 0; i < boards.length; i++)
+    for (var i = 0; i < devices.length; i++)
         {
-        if (java.lang.String(Program.platformName).contains(boards[i]))
+        if (java.lang.String(Program.cpu.deviceName).equals(devices[i]))
             {
                 /* Choose the selected platform and build the complete name */
                 extension = ".a" + Program.build.target.suffix;
index 7ab7efa6836598dfa5000d20fb2b48b2606582fb..ac523044e4536f9000dfc1dddfc6ec029d866d88 100755 (executable)
@@ -56,22 +56,21 @@ function getLibs(prog)
     var target;
     var extension;
 
-    /* Boards supported */
-    var boards = [
-                        'evmDA830',
-                        'simTCI6608',
-                        'simTCI6616',
-                        'evm6670',
-                        'evm6678',
-                        'evm6748',
-                        'evmOMAPL138',
-                        'simDM8168',
-                        'evmDM8168',
-                        'evm6472',
-                        'evmTCI6486',
-                        'evmDM8148',
-                        'evmTI814X',
-                        'evmTI816X',
+    /* Devices supported */
+    var devices = [
+                        'TMS320DA830',
+                        'TMS320TCI6608',
+                        'TMS320TCI6616',
+                        'TMS320C6670',
+                        'TMS320C6678',
+                        'TMS320C6748',
+                        'OMAPL138',
+                        'TMS320DM8168',
+                        'TMS320C6472',
+                        'TMS320CTCI6486',
+                        'TMS320DM8148',
+                        'TMS320TI814X',
+                        'TMS320TI816X',
                     ];
 
     /* Directories for each platform */
@@ -83,7 +82,6 @@ function getLibs(prog)
                 'c6678-evm/',
                 'c6748-evm/',
                 'omapl138-evm/',
-                'ti816x-sim/',
                 'ti816x-evm/',
                 'c6472-evm/',
                 'tci6486-evm/',
@@ -92,9 +90,9 @@ function getLibs(prog)
                 'ti816x-evm/',
               ];
 
-    for (var i = 0; i < boards.length; i++)
+    for (var i = 0; i < devices.length; i++)
         {
-        if (java.lang.String(Program.platformName).contains(boards[i]))
+        if (java.lang.String(Program.cpu.deviceName).equals(devices[i]))
             {
                 /* Choose the selected platform */
                 lib = lib + dir[i];
index aebf86508584fb6aa8608c0fc1f0bbcecd773b55..84d971e08d2fdb9097f7f1f6911791b993eaa037 100755 (executable)
@@ -56,22 +56,21 @@ function getLibs(prog)
     var target;
     var extension;
 
-    /* Boards supported */
-    var boards = [
-                        'evmDA830',
-                        'simTCI6608',
-                        'simTCI6616',
-                        'evm6670',
-                        'evm6678',
-                        'evm6748',
-                        'evmOMAPL138',
-                        'simDM8168',
-                        'evmDM8168',
-                        'evm6472',
-                        'evmTCI6486',
-                        'evmDM8148',
-                        'evmTI814X',
-                        'evmTI816X',
+    /* Devices supported */
+    var devices = [
+                        'TMS320DA830',
+                        'TMS320TCI6608',
+                        'TMS320TCI6616',
+                        'TMS320C6670',
+                        'TMS320C6678',
+                        'TMS320C6748',
+                        'OMAPL138',
+                        'TMS320DM8168',
+                        'TMS320C6472',
+                        'TMS320CTCI6486',
+                        'TMS320DM8148',
+                        'TMS320TI814X',
+                        'TMS320TI816X',
                     ];
 
     /* Directories for each platform */
@@ -83,7 +82,6 @@ function getLibs(prog)
                 'c6678-evm/',
                 'c6748-evm/',
                 'omapl138-evm/',
-                'ti816x-sim/',
                 'ti816x-evm/',
                 'c6472-evm/',
                 'tci6486-evm/',
@@ -92,9 +90,9 @@ function getLibs(prog)
                 'ti816x-evm/',
               ];
 
-    for (var i = 0; i < boards.length; i++)
+    for (var i = 0; i < devices.length; i++)
         {
-        if (java.lang.String(Program.platformName).contains(boards[i]))
+        if (java.lang.String(Program.cpu.deviceName).equals(devices[i]))
             {
                 /* Choose the selected platform and build the complete name   */
                 lib = lib + dir[i];
index dda952de70beebe6c4e50452114f048a13a174e1..7ef4a03f7e001101efb4672a6648123138a245b2 100755 (executable)
@@ -56,22 +56,21 @@ function getLibs(prog)
     var target;
     var extension;
 
-    /* Boards supported */
-    var boards = [
-                        'evmDA830',
-                        'simTCI6608',
-                        'simTCI6616',
-                        'evm6670',
-                        'evm6678',
-                        'evm6748',
-                        'evmOMAPL138',
-                        'simDM8168',
-                        'evmDM8168',
-                        'evm6472',
-                        'evmTCI6486',
-                        'evmDM8148',
-                        'evmTI814X',
-                        'evmTI816X',
+    /* Devices supported */
+    var devices = [
+                        'TMS320DA830',
+                        'TMS320TCI6608',
+                        'TMS320TCI6616',
+                        'TMS320C6670',
+                        'TMS320C6678',
+                        'TMS320C6748',
+                        'OMAPL138',
+                        'TMS320DM8168',
+                        'TMS320C6472',
+                        'TMS320CTCI6486',
+                        'TMS320DM8148',
+                        'TMS320TI814X',
+                        'TMS320TI816X',
                     ];
 
     /* Directories for each platform */
@@ -83,7 +82,6 @@ function getLibs(prog)
                 'c6678-evm/',
                 'c6748-evm/',
                 'omapl138-evm/',
-                'ti816x-sim/',
                 'ti816x-evm/',
                 'c6472-evm/',
                 'tci6486-evm/',
@@ -92,9 +90,10 @@ function getLibs(prog)
                 'ti816x-evm/',
               ];
 
-    for (var i = 0; i < boards.length; i++)
+
+    for (var i = 0; i < devices.length; i++)
         {
-        if (java.lang.String(Program.platformName).contains(boards[i]))
+        if (java.lang.String(Program.cpu.deviceName).equals(devices[i]))
             {
                 /* Choose the selected platform */
                 lib = lib + dir[i];