]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blobdiff - packages/ti/sdo/edma3/drv/sample/package.bld
Support for the C6748 and OMAPL138 platforms.
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / drv / sample / package.bld
index 9998a24fb15334ed2f675ae9cf4d4b2b5a482531..cb03da8550b37d0f90e71d1e339c19f2b6c4e710 100755 (executable)
@@ -1,12 +1,43 @@
 /*
-*  Copyright 2006 by Texas Instruments Incorporated.
-*
-*  All rights reserved. Property of Texas Instruments Incorporated.
-*  Restricted rights to use, duplicate or disclose this code are
-*  granted through contract.
-*
+ * package.bld
+ *
+ * xdc build specification file for the EDMA DRV sample package.
+ *
+ * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ *
+ *  Redistribution and use in source and binary forms, with or without
+ *  modification, are permitted provided that the following conditions
+ *  are met:
+ *
+ *    Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *    Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the
+ *    distribution.
+ *
+ *    Neither the name of Texas Instruments Incorporated nor the names of
+ *    its contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
 */
 
+
+
 var Build = xdc.useModule('xdc.bld.BuildEnvironment');
 var Pkg = xdc.useModule('xdc.bld.PackageContents');
 
@@ -17,6 +48,20 @@ var objListDA830 = [
     "src/sample_init.c",
 ];
 
+var objListC6748 = [
+    "src/platforms/sample_c6748_cfg.c",
+    "src/platforms/sample_c6748_int_reg.c",
+    "src/sample_cs.c",
+    "src/sample_init.c",
+];
+
+var objListOMAPL138 = [
+    "src/platforms/sample_omapl138_cfg.c",
+    "src/platforms/sample_omapl138_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",
@@ -25,76 +70,90 @@ var objListSimTCI6498 = [
 ];
 
 var objList = [
-       objListDA830,
-       objListSimTCI6498,
+    objListDA830,
+    objListSimTCI6498,
+    objListC6748,
+    objListOMAPL138,
 ];
 
 /* Platforms supported */
 var plat_supported = [
                     'ti.platforms.evmDA830',
                     'ti.platforms.simTCI6498',
+                    'ti.platforms.evm6748',
+                    'ti.platforms.evmOMAPL138',
                ];
 
 /* Directories for each platform */
 var dir = [
             'da830/',
             'tci6498/',
+            'c6748/',
+            'omapl138/',
           ];
 
 for each (var targ in Build.targets)
 {
-       for each (var plat in targ.platforms)
-       {
-               var lib = "lib/";
-               var bool = 0;
-
-           for (var i = 0; i < plat_supported.length; i++)
-               {
-               if (java.lang.String(plat).equals(plat_supported[i]))
-                   {
-                       /* Choose the selected platform */
-                       lib = lib + dir[i];
-                       bool = 1;
-                       break;
-                   }
-               }
-
-           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,
-                               { 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]);
-               }
-       }
+    for each (var plat in targ.platforms)
+    {
+        var lib = "lib/";
+        var bool = 0;
+
+        for (var i = 0; i < plat_supported.length; i++)
+            {
+            if (java.lang.String(plat).equals(plat_supported[i]))
+                {
+                    /* Choose the selected platform */
+                    lib = lib + dir[i];
+                    bool = 1;
+                    break;
+                }
+            }
+
+        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,
+                { 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',
+        '.settings/org.eclipse.cdt.core.prefs',
         'lib/da830/Debug/ti.sdo.edma3.drv.sample.a674',
         'lib/da830/Release/ti.sdo.edma3.drv.sample.a674',
+        'lib/c6748/Debug/ti.sdo.edma3.drv.sample.a674',
+        'lib/c6748/Release/ti.sdo.edma3.drv.sample.a674',
+        'lib/omapl138/Debug/ti.sdo.edma3.drv.sample.a674',
+        'lib/omapl138/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',
         'lib/tci6498/Release/ti.sdo.edma3.drv.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',
+        'src/platforms/sample_da830_cfg.c',
+        'src/platforms/sample_da830_int_reg.c',
+        'src/platforms/sample_c6748_cfg.c',
+        'src/platforms/sample_c6748_int_reg.c',
+        'src/platforms/sample_omapl138_cfg.c',
+        'src/platforms/sample_omapl138_int_reg.c',
+        'src/platforms/sample_tci6498_cfg.c',
+        'src/platforms/sample_tci6498_int_reg.c',
         '.cdtproject',
         '.project',
         'bios6_edma3_drv_sample.h',