Browse Source

add package.xs

Signed-off-by: surenyi <surenyi82@qq.com>
master
surenyi 6 years ago
parent
commit
703c900717
  1. 13
      packages/vsky/libdsp/SGMII.xs
  2. 3
      packages/vsky/libdsp/package.bld
  3. 20
      packages/vsky/libdsp/package.xs

13
packages/vsky/libdsp/SGMII.xs

@ -1,5 +1,3 @@
var Program = null;
function module$static$init(obj, mod)
{
}
@ -11,15 +9,4 @@ function module$use()
xdc.useModule('ti.drv.pa.Settings');
xdc.useModule('ti.ndk.config.Global');
xdc.useModule('ti.sysbios.knl.Task');
Program = xdc.useModule('xdc.cfg.Program');
Program.sectMap[".qmss"] = "DDR3";
Program.sectMap[".cppi"] = "DDR3";
Program.sectMap[".nimu_eth_ll2"] = "DDR3";
Program.sectMap[".resmgr_memregion"] = {loadSegment: "DDR3", loadAlign:128}; /* QMSS descriptors region */
Program.sectMap[".resmgr_handles"] = {loadSegment: "DDR3", loadAlign:16}; /* CPPI/QMSS/PA Handles */
Program.sectMap[".resmgr_pa"] = {loadSegment: "DDR3", loadAlign:8}; /* PA Memory */
Program.sectMap[".far:taskStackSection"] = "DDR3";
Program.sectMap[".far:NDK_OBJMEM"] = {loadSegment: "DDR3", loadAlign: 8};
Program.sectMap[".far:NDK_PACKETMEM"] = {loadSegment: "DDR3", loadAlign: 128};
}

3
packages/vsky/libdsp/package.bld

@ -1,4 +1,5 @@
Pkg.otherFiles = [
"config.bld",
"package.bld",
"package.xdc",
"package.inc",
@ -59,6 +60,8 @@ for (var i = 0; i < Build.targets.length; i++) {
lib.addObjects(objFiles);
}
Pkg.attrs.profile = "debug";
Pkg.attrs.exportSrc = false;
Pkg.attrs.exportCfg = true;
Pkg.attrs.compress = true;

20
packages/vsky/libdsp/package.xs

@ -0,0 +1,20 @@
var sectName = "DDR3";
function close()
{
if (xdc.om.$name != "cfg")
return;
var Program = xdc.useModule("xdc.cfg.Program");
Program = xdc.useModule('xdc.cfg.Program');
Program.sectMap[".qmss"] = sectName;
Program.sectMap[".cppi"] = sectName;;
Program.sectMap[".nimu_eth_ll2"] = sectName;
Program.sectMap[".far:taskStackSection"] = sectName;
Program.sectMap[".resmgr_memregion"] = {loadSegment: sectName, loadAlign: 128}; /* QMSS descriptors region */
Program.sectMap[".resmgr_handles"] = {loadSegment: sectName, loadAlign: 16}; /* CPPI/QMSS/PA Handles */
Program.sectMap[".resmgr_pa"] = {loadSegment: sectName, loadAlign: 8}; /* PA Memory */
Program.sectMap[".far:NDK_OBJMEM"] = {loadSegment: sectName, loadAlign: 8};
Program.sectMap[".far:NDK_PACKETMEM"] = {loadSegment: sectName, loadAlign: 128};
}
Loading…
Cancel
Save