diff --git a/packages/ti/ipc/family/omap54xx/package.xs b/packages/ti/ipc/family/omap54xx/package.xs
index f91b6c7851bdcd32f7f004b3d25f8c142df0f715..f38d08dfaf6e4aa27ca498a0db9dd5477b2c1118 100644 (file)
*/
function close()
{
+ if (xdc.om.$name != "cfg") {
+ return;
+ }
+
/* bring in modules we use in this package */
- xdc.useModule('ti.sysbios.knl.Swi');
- xdc.useModule('ti.sysbios.hal.Cache');
+ xdc.useModule('ti.ipc.remoteproc.Resource');
xdc.loadPackage('ti.pm');
+ xdc.useModule('ti.sysbios.gates.GateAll');
+ xdc.useModule('ti.sysbios.hal.Cache');
+ xdc.useModule('ti.sysbios.knl.Semaphore');
+ xdc.useModule('ti.sysbios.knl.Swi');
}
/*
return ("");
}
- if (prog.platformName.match(/ipu/)) {
+ var BIOS = xdc.module('ti.sysbios.BIOS');
+ if (BIOS.smpEnabled) {
smp = "_smp";
}
/* make sure the library exists, else fallback to a built library */
- file = "lib/" + profile + "/ti.ipc.rpmsg" + smp + ".a" + suffix;
+ file = "lib/" + profile + "/ti.ipc.family.omap54xx" + smp + ".a" + suffix;
if (java.io.File(this.packageBase + file).exists()) {
libAry.push(file);
}
else {
- file = "lib/release/ti.ipc.rpmsg" + smp + ".a" + suffix;
+ file = "lib/release/ti.ipc.family.omap54xx" + smp + ".a" + suffix;
if (java.io.File(this.packageBase + file).exists()) {
libAry.push(file);
}
return libAry.join(";");
}
+
+/*
+ * ======== validate ========
+ */
+function validate()
+{
+ if (xdc.om.$name == "cfg") {
+ if (Program.build.target.isa.match(/v7M4/)) {
+ /* On OMAP5's IPU, only SMP BIOS is supported */
+ var BIOS = xdc.module('ti.sysbios.BIOS');
+ if (!BIOS.smpEnabled) {
+ throw new Error(this.$name + " must have BIOS.smpEnabled " +
+ "set to true.");
+ }
+ }
+ }
+}