rpmsg: Add Rpmsg NS 2.0 to OmapL138 platform
authorSam Nelson <sam.nelson@ti.com>
Thu, 30 Mar 2017 18:39:19 +0000 (14:39 -0400)
committerAngela Stegmaier <angelabaker@ti.com>
Fri, 31 Mar 2017 15:07:24 +0000 (10:07 -0500)
Additional of OMAPL138 in upcoming SDK releases will require support of
NS_2.0
( Note: The default will break compatibility with Upstream kernel which
does not support NS_2.0
The Non-NS_2.0 libraries are also created for customer to use, in case
if customer is using upstream kernel, but this will not fully tested)

Signed-off-by: Sam Nelson <sam.nelson@ti.com>
packages/ti/ipc/rpmsg/Build.xs
packages/ti/ipc/rpmsg/package.bld
packages/ti/ipc/tests/package.bld
packages/ti/ipc/transports/package.bld
packages/ti/ipc/transports/package.xs

index 2d560e2f0300e946273d80d5dec822ec2188e068..b444ca45f9407201c0157c5bb90690609c05a57c 100644 (file)
@@ -51,7 +51,7 @@ function getDefs()
     if (target.isa == "674") {
         switch (device) {
             case "OMAPL138":
-                defs += " -DOMAPL138";
+                defs += " -DOMAPL138 -DRPMSG_NS_2_0";
                 break;
             default:
                 throw new Error("Unsupported device: " + device);
index 0570055fdb1c5dc3bba2adcf4dd0ac57a0754e31..6ee819d187af0d6d69bc192d4a28eb13f664fb40 100644 (file)
@@ -66,7 +66,7 @@ for (var i = 0; i < Build.targets.length; i++) {
             Pkg.addLibrary("lib/" + profile + "/" + name + "_omapl138", targ, {
                 profile: profile,
                 copts: myCopts,
-                defs: "-DOMAPL138"
+                defs: "-DOMAPL138 -DRPMSG_NS_2_0"
             }).addObjects(objList);
         }
         else if (targ.isa == "66") {
index 72b488021bd0c6b7582a1e6cec962be24a6fe93e..9494c726acf640144c8db102c25f780c46ef9f4c 100644 (file)
@@ -516,7 +516,8 @@ for (var i = 0; i < Build.targets.length; i++) {
         /* Vayu and OMAP5 require MmRpc and therefore use RPMSG_NS_2_0 */
         if (platform.match(/^ti\.platform\.vayu/) ||
                 platform.match(/^ti\.platforms\.evmDRA7XX/) ||
-                platform.match(/^ti\.platforms\.sdp5430/)) {
+                platform.match(/^ti\.platforms\.sdp5430/) ||
+                platform.match(/^ti\.platforms\.evmOMAPL138/)) {
             extraDefs = " -DRPMSG_NS_2_0";
         }
 
index 206da0134cf6242af99a611f1c43aa80ba29e2a9..367ca4cfdea50177c2c26d73b75a173d65fc89eb 100644 (file)
@@ -72,7 +72,7 @@ for (var i = 0; i < Build.targets.length; i++) {
             copts: myCopts
         }).addObjects(objList);
 
-        if (targ.isa.match(/^(64T|66|v7M4?)$/)) {
+        if (targ.isa.match(/^(64T|66|674|v7M4?)$/)) {
             /* And for select targets, build a rpmsg2-compatible lib */
             Pkg.addLibrary("lib/" + profile + "/" + name + "_rpmsg2", targ, {
                 profile: profile,
index 2d54c7da5bc8fafab72962f76003ec7ee7e0dc6c..a37e477c7d780c6ec309e754206545d0aacb0580 100644 (file)
@@ -42,7 +42,8 @@ var rpmsg2Device = {
     'OMAP4430'      : { special: "_rpmsg2" },
     'OMAP5430'      : { special: "_rpmsg2" },
     'Vayu'          : { special: "_rpmsg2" },
-    'TMS320TCI6634' : { special: "_rpmsg2" }
+    'TMS320TCI6634' : { special: "_rpmsg2" },
+    'OMAPL138'      : { special: "_rpmsg2" }
 };
 
 /*