]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/blobdiff - packages/ti/ipc/family/omap54xx/package.bld
OMAP5: Remove BIOS-side SMP build flag
[ipc/ipcdev.git] / packages / ti / ipc / family / omap54xx / package.bld
index 10efe6cbe957814ebe6e676641f79b9c5b28e38b..ce888f4d0b726b9efddef0b95ee241f9b4ffc285 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2013-2012, Texas Instruments Incorporated
+ * Copyright (c) 2011-2013, Texas Instruments Incorporated
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-
 /*
  *  ======== package.bld ========
- *
  */
 
-/* explicit references to global objects */
 var Build = xdc.useModule('xdc.bld.BuildEnvironment');
 var Pkg = xdc.useModule('xdc.bld.PackageContents');
-var smpBuild = java.lang.System.getenv("BUILD_SMP");
 
-/* clean lib folder */
-Pkg.generatedFiles.$add("lib/");
-Pkg.libDir = "package/";
+/*
+ * This package distributes its sources in the default release.  This is to
+ * enable better understanding by the customer/field, as well as enable
+ * modification and profiling techniques in the field.
+ */
+Pkg.attrs.exportSrc = true;
+
+Pkg.otherFiles = ["package.bld", "InterruptProxy.h", "InterruptDsp.h",
+        "InterruptIpu.h"];
 
-/* add custom files to all releases */
-Pkg.attrs.exportSrc = false;
-Pkg.attrs.exportCfg = true;
-Pkg.otherFiles = [
-    "InterruptProxy.h",
-];
+/* remove this output directory during a clean */
+Pkg.generatedFiles.$add("lib/");
 
 /* list of libraries to build */
 var libArray = new Array();
-if (smpBuild == "1") {
-    /* rpmsg library for IPU SMP target */
-    libArray.push(
-        {
-            name: "ti.ipc.rpmsg_smp",
-            sources: [
-                "VirtQueue",
-                "InterruptIpu",
-            ],
-            libAttrs: {
-                defs: " -DSMP"
-            },
-            isas: [ "v7M" ],
-        }
-    );
-}
-else {
-    /* rpmsg library for IPU non-SMP target */
-    libArray.push(
-        {
-            name: "ti.ipc.rpmsg",
-            sources: [
-                "VirtQueue",
-                "InterruptIpu",
-                "OffloadM3",
-            ],
-            libAttrs: {
-                defs: " -DM3_ONLY"
-            },
-            isas: [ "v7M" ],
-        }
-    );
-
-    /* rpmsg library for DSP target */
-    libArray.push(
-        {
-            name: "ti.ipc.rpmsg",
-            sources: [
-                "VirtQueue",
-                "InterruptDsp",
-            ],
-            libAttrs: {
-                defs: " -DDSP"
-            },
-            isas: [ "64T" ],
-        }
-    );
-}
 
-/* generate the package libraries */
-/* check if profile specified in XDCARGS */
-/* XDCARGS="... profile=debug ..." */
-var cmdlProf = (" " + arguments.join(" ") + " ").match(/ profile=([^ ]+) /);
-cmdlProf = cmdlProf != null ? cmdlProf[1] : null;
+/* rpmsg library for IPU SMP target */
+libArray.push(
+    {
+        name: "ti.ipc.rpmsg_smp",
+        sources: [
+            "VirtQueue",
+            "InterruptIpu",
+        ],
+        libAttrs: {
+            defs: " -DSMP"
+        },
+        isas: [ "v7M" ],
+    }
+);
+
+/* rpmsg library for IPU non-SMP target */
+libArray.push(
+    {
+        name: "ti.ipc.rpmsg",
+        sources: [
+            "VirtQueue",
+            "InterruptIpu",
+            "OffloadM3",
+        ],
+        libAttrs: {
+            defs: " -DM3_ONLY"
+        },
+        isas: [ "v7M" ],
+    }
+);
+
+/* rpmsg library for DSP target */
+libArray.push(
+    {
+        name: "ti.ipc.rpmsg",
+        sources: [
+            "VirtQueue",
+            "InterruptDsp",
+        ],
+        libAttrs: {
+            defs: " -DDSP"
+        },
+        isas: [ "64T" ],
+    }
+);
+
 
 /* ==== loop over array of libraries ==== */
 for (var i = 0; i < libArray.length; i++) {
@@ -116,19 +107,6 @@ for (var i = 0; i < libArray.length; i++) {
     for (var j = 0; j < Build.targets.length; j++) {
         var targ = Build.targets[j];
 
-        /* skip target if not compatible with source code */
-        if ("icw" in lib) {
-            var skipTarget = true;
-            var targIsaChain = "/" + targ.getISAChain().join("/") + "/";
-            for (var k = 0; k < lib.icw.length; k++) {
-                if (targIsaChain.match("/" + lib.icw[k] + "/")) {
-                    skipTarget = false;
-                    break;
-                }
-            }
-            if (skipTarget) continue;
-        }
-
         /* skip target if it does not generate code for the given isa */
         if ("isas" in lib) {
             var skipTarget = true;
@@ -142,11 +120,6 @@ for (var i = 0; i < libArray.length; i++) {
         /* ==== loop over all profiles ==== */
         for (var profile in targ.profiles) {
 
-            /* skip profile if different than specified on command line */
-            if ((cmdlProf != null) && (profile != cmdlProf)) {
-                continue;
-            }
-
             /* name = lib/profile/name.a+suffix */
             var name = "lib/" + profile + "/" + lib.name;