]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - ipc-bios.bld
Changed GateAll to GateHwi since GateAll does not work in SMP BIOS according to SDOCM...
[ipc/ipcdev.git] / ipc-bios.bld
index 26908a800f1fd25c176449325f1d6d928696c356..e8dec958e0a645ed5fa42e4894a41b9ef83e92e0 100644 (file)
@@ -44,7 +44,7 @@
  */
 
 /*
- *  ======== ipc.bld ========
+ *  ======== ipc-bios.bld ========
  *  This script is run prior to all build scripts. It sets host-system-
  *  independent values for targets and platforms, then it attempts to
  *  find the host-system-specific user.bld script that sets rootDirs.
@@ -63,8 +63,6 @@
  *     Build       an alias for xdc.om.xdc.bld.BuildEnvironment
  */
 
-var build_smp = java.lang.System.getenv("BUILD_SMP");
-
 /* Common ccopts suffix used for all C6x targets */
 var c6xOpts = " -mi10 -mo -pdr -pden -pds=238 -pds=880 -pds1110 -g ";
 
@@ -107,10 +105,12 @@ var ccOpts = {
 };
 
 /* Enable building SMP-BIOS enabled libraries for targets that support it */
-xdc.module("ti.targets.arm.elf.M3").profiles["smp"] =
-        xdc.module("ti.targets.arm.elf.M3").profiles["debug"];
-xdc.module("ti.targets.arm.elf.M4").profiles["smp"] =
-        xdc.module("ti.targets.arm.elf.M4").profiles["debug"];
+if (Pkg.name.match(/^ti\.sdo\.(ipc|utils)/)) {
+    xdc.module("ti.targets.arm.elf.M3").profiles["smp"] =
+            xdc.module("ti.targets.arm.elf.M3").profiles["debug"];
+    xdc.module("ti.targets.arm.elf.M4").profiles["smp"] =
+            xdc.module("ti.targets.arm.elf.M4").profiles["debug"];
+}
 
 /* initialize local vars with those set in xdcpaths.mak (via XDCARGS) */
 for (arg = 0; arg < arguments.length; arg++) {
@@ -130,47 +130,44 @@ for (arg = 0; arg < arguments.length; arg++) {
     target.rootDir = rootDir;
     target.ccOpts.suffix += ccOpts[targetName];
 
-    /* Add appropriate platforms to build for based on target name */    
+    /* Add appropriate platforms to build for based on target name */
     if (targetName.match(/elf\.C674/)) {
         target.platforms = [ "ti.platforms.evmOMAPL138:DSP" ];
     }
 
     if (targetName.match(/elf\.C66/)) {
+        target.lnkOpts.prefix += " -e=ti_sysbios_family_c64p_Hwi0";
         target.lnkOpts.suffix += " -cr";
-        target.platforms = [ 
-            "ti.platforms.simKepler"
+        target.platforms = [
+            //"ti.platforms.simKepler"
             //"ti.platforms.evm6614:DSP"
+            "ti.platforms.evmTCI6638K2K",
+            /* NOTE: This platform (from omapzoom) is local, custom: */
+            "ti.platform.vayu.dsp1"
         ];
     }
 
     if (targetName.match(/elf\.C64T/)) {
         target.lnkOpts.prefix += " -e=ti_sysbios_family_c64p_Hwi0";
-        /* NOTE: These platforms (from omapzoom) are local, custom: */
+
         target.platforms = [
-                    //"ti.platform.omap4430.dsp",
-                    "ti.platform.omap54xx.dsp",
-                ];
+            "ti.platform.omap54xx.dsp",
+        ];
     }
 
-    if (targetName.match(/elf\.M3/)) {
+    /*
+     * TODO: for now, continue to support OMAP5 for M3 targets until all users
+     * migrate to the new OMAP5-based M4 platform.  Eventually remove omap54xx
+     * from the M3 target.platforms[] array.
+     */
+    if (targetName.match(/elf\.M(3|4)$/)) {
         target.lnkOpts.prefix += " --retain=.resource_table";
         target.lnkOpts.prefix += " --cinit_compression=off";
-        /* NOTE: These platforms (from omapzoom) are local, custom: */
-        /* Set default platform and list of all interested platforms for M3 */
-        if (build_smp == null || build_smp == "0") {
-            /* Helps boot times, plus unmasks issues w/ uninit'd vars */
-            target.lnkOpts.prefix +=  " --zero_init=off";
-            target.platforms = [
-                        //"ti.platform.omap4430.core0",
-                        "ti.platform.omap54xx.core0",
-                   ];
-        }
-        else {
-            target.platforms =  [
-                        //"ti.platform.omap4430.ipu",
-                        "ti.platform.omap54xx.ipu",
-                   ];
-        }
+
+        target.platforms =  [
+            "ti.platform.omap54xx.ipu",
+            "ti.platform.vayu.ipu2",
+        ];
     }
 
     Build.targets.$add(target);