void $$SINGLETONS() { pkgP.init( "ti.platforms.evm6424.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.platforms.evm6424")); pkgP.bind("$capsule", $$UNDEF); pkgV.init2(pkgP, "ti.platforms.evm6424", Value.DEFAULT, false); pkgV.bind("$name", "ti.platforms.evm6424"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "ti.platforms.evm6424."); pkgV.bind("$vers", Global.newArray("1, 0, 0, 0")); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); imports.add(Global.newArray("ti.catalog.c6000", Global.newArray())); imports.add(Global.newArray("xdc.platform", Global.newArray(1, 0, 1))); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['ti.platforms.evm6424'];\n"); sb.append("if (pkg.$vers.length >= 3) {\n"); sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append("];\n"); sb.append("if('suffix' in xdc.om['xdc.IPackage$$LibDesc']) {\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void $$SINGLETONS() { pkgP.init( "host.platforms.SUN.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "host.platforms.SUN")); Scriptable cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/package.xs"); om.bind("xdc.IPackage$$capsule", cap); Object fxn; fxn = Global.get(cap, "init"); if (fxn != null) pkgP.addFxn( "init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "close"); if (fxn != null) pkgP.addFxn( "close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "validate"); if (fxn != null) pkgP.addFxn( "validate", (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "exit"); if (fxn != null) pkgP.addFxn( "exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "getLibs"); if (fxn != null) pkgP.addFxn( "getLibs", (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "host.platforms.SUN"), fxn); fxn = Global.get(cap, "getSects"); if (fxn != null) pkgP.addFxn( "getSects", (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "host.platforms.SUN"), fxn); pkgP.bind("$capsule", cap); pkgV.init2(pkgP, "host.platforms.SUN", Value.DEFAULT, false); pkgV.bind("$name", "host.platforms.SUN"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "host.platforms.SUN."); pkgV.bind("$vers", Global.newArray("1, 0, 0, 1")); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); imports.add(Global.newArray("xdc.platform", Global.newArray())); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['host.platforms.SUN'];\n"); sb.append("if (pkg.$vers.length >= 3) {\n"); sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append("];\n"); sb.append("if('suffix' in xdc.om['xdc.IPackage$$LibDesc']) {\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void $$SINGLETONS() { pkgP.init( "ti.sdo.ce.utils.rtcfg.osal.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ce.utils.rtcfg.osal")); pkgP.bind("$capsule", $$UNDEF); pkgV.init2(pkgP, "ti.sdo.ce.utils.rtcfg.osal", Value.DEFAULT, false); pkgV.bind("$name", "ti.sdo.ce.utils.rtcfg.osal"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "ti.sdo.ce.utils.rtcfg.osal."); pkgV.bind("$vers", Global.newArray("1, 0, 0")); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['ti.sdo.ce.utils.rtcfg.osal'];\n"); sb.append("if (pkg.$vers.length >= 3) {\n"); sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append("];\n"); Global.eval(sb.toString()); }
void $$SINGLETONS() { pkgP.init( "xdc.services.mapping.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "xdc.services.mapping")); pkgP.bind("$capsule", $$UNDEF); pkgV.init2(pkgP, "xdc.services.mapping", Value.DEFAULT, false); pkgV.bind("$name", "xdc.services.mapping"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "xdc.services.mapping."); pkgV.bind("$vers", Global.newArray(1, 0, 0)); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['xdc.services.mapping'];\n"); sb.append("if (pkg.$vers.length >= 3) {\n"); sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n"); sb.append("}\n"); sb.append("if ('xdc.services.mapping$$stat$base' in xdc.om) {\n"); sb.append("pkg.packageBase = xdc.om['xdc.services.mapping$$stat$base'];\n"); sb.append("pkg.packageRepository = xdc.om['xdc.services.mapping$$stat$root'];\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append("];\n"); Global.eval(sb.toString()); }
void SupportLogger$$TYPES() { Scriptable cap; Proto.Obj po; Proto.Str ps; Proto.Typedef pt; Object fxn; cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/SupportLogger.xs"); om.bind("ti.sysbios.rta.SupportLogger$$capsule", cap); po = (Proto.Obj) om.findStrict("ti.sysbios.rta.SupportLogger.Module", "ti.sysbios.rta"); po.init( "ti.sysbios.rta.SupportLogger.Module", om.findStrict("xdc.runtime.IModule.Module", "ti.sysbios.rta")); po.addFld("$hostonly", $$T_Num, 0, "r"); if (isCFG) { po.addFld( "LM_timestampFreq", (Proto) om.findStrict("xdc.runtime.Log$$Event", "ti.sysbios.rta"), Global.newObject( "mask", Global.eval("0x0100 | 0x0200"), "msg", "LM_timestampFreq: Timestamp Frequency hi: %d, lo: %d"), "w"); po.addFld("createLogSize", Proto.Elm.newCNum("(xdc_Int)"), 32L, "w"); } // isCFG fxn = Global.get(cap, "module$use"); if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$use", true); if (fxn != null) po.addFxn("module$use", $$T_Met, fxn); fxn = Global.get(cap, "module$meta$init"); if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$meta$init", true); if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn); fxn = Global.get(cap, "module$static$init"); if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$static$init", true); if (fxn != null) po.addFxn("module$static$init", $$T_Met, fxn); fxn = Global.get(cap, "module$validate"); if (fxn != null) om.bind("ti.sysbios.rta.SupportLogger$$module$validate", true); if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn); }
void SunSparc7$$CREATES() { Proto.Fxn fxn; StringBuilder sb; fxn = (Proto.Fxn) om.bind( "host.platforms.SUN.SunSparc7$$create", new Proto.Fxn( om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"), om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"), 2, 1, false)); fxn.addArg(0, "revision", $$T_Str, $$UNDEF); fxn.addArg( 1, "__params", (Proto) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"), Global.newObject()); sb = new StringBuilder(); sb.append("host$platforms$SUN$SunSparc7$$create = function( revision, __params ) {\n"); sb.append("var __mod = xdc.om['host.platforms.SUN.SunSparc7'];\n"); sb.append("var __inst = xdc.om['host.platforms.SUN.SunSparc7.Instance'].$$make();\n"); sb.append("__inst.$$bind('$package', xdc.om['host.platforms.SUN']);\n"); sb.append("__inst.$$bind('$index', __mod.$instances.length);\n"); sb.append("__inst.$$bind('$category', 'Instance');\n"); sb.append("__inst.$$bind('$args', {revision:revision});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$instances.$add(__inst);\n"); sb.append("__inst.cpuCore = __mod.PARAMS.cpuCore;\n"); sb.append("__inst.cpuCoreRevision = __mod.PARAMS.cpuCoreRevision;\n"); sb.append("__inst.minProgUnitSize = __mod.PARAMS.minProgUnitSize;\n"); sb.append("__inst.minDataUnitSize = __mod.PARAMS.minDataUnitSize;\n"); sb.append("__inst.dataWordSize = __mod.PARAMS.dataWordSize;\n"); sb.append("for (__p in __params) __inst[__p] = __params[__p];\n"); sb.append("var save = xdc.om.$curpkg;\n"); sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n"); sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [revision]);\n"); sb.append("xdc.om.$$bind('$curpkg', save);\n"); sb.append("__inst.$$bless();\n"); sb.append("return __inst;\n"); sb.append("}\n"); Global.eval(sb.toString()); fxn = (Proto.Fxn) om.bind( "host.platforms.SUN.SunSparc7$$construct", new Proto.Fxn( om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN"), null, 3, 1, false)); fxn.addArg( 0, "__obj", (Proto) om.findStrict("host.platforms.SUN.SunSparc7$$Object", "host.platforms.SUN"), null); fxn.addArg(1, "revision", $$T_Str, $$UNDEF); fxn.addArg( 2, "__params", (Proto) om.findStrict("host.platforms.SUN.SunSparc7.Params", "host.platforms.SUN"), Global.newObject()); sb = new StringBuilder(); sb.append( "host$platforms$SUN$SunSparc7$$construct = function( __obj, revision, __params ) {\n"); sb.append("var __mod = xdc.om['host.platforms.SUN.SunSparc7'];\n"); sb.append("var __inst = __obj;\n"); sb.append("__inst.$$bind('$args', {revision:revision});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$objects.$add(__inst);\n"); sb.append("__inst.cpuCore = __mod.PARAMS.cpuCore;\n"); sb.append("__inst.cpuCoreRevision = __mod.PARAMS.cpuCoreRevision;\n"); sb.append("__inst.minProgUnitSize = __mod.PARAMS.minProgUnitSize;\n"); sb.append("__inst.minDataUnitSize = __mod.PARAMS.minDataUnitSize;\n"); sb.append("__inst.dataWordSize = __mod.PARAMS.dataWordSize;\n"); sb.append("for (__p in __params) __inst[__p] = __params[__p];\n"); sb.append("__inst.$$bless();\n"); sb.append("return null;\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void Platform$$CREATES() { Proto.Fxn fxn; StringBuilder sb; fxn = (Proto.Fxn) om.bind( "host.platforms.SUN.Platform$$create", new Proto.Fxn( om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN"), om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN"), 3, 2, false)); fxn.addArg(0, "name", $$T_Str, $$UNDEF); fxn.addArg(1, "args", $$T_Obj, $$UNDEF); fxn.addArg( 2, "__params", (Proto) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"), Global.newObject()); sb = new StringBuilder(); sb.append("host$platforms$SUN$Platform$$create = function( name, args, __params ) {\n"); sb.append("var __mod = xdc.om['host.platforms.SUN.Platform'];\n"); sb.append("var __inst = xdc.om['host.platforms.SUN.Platform.Instance'].$$make();\n"); sb.append("__inst.$$bind('$package', xdc.om['host.platforms.SUN']);\n"); sb.append("__inst.$$bind('$index', __mod.$instances.length);\n"); sb.append("__inst.$$bind('$category', 'Instance');\n"); sb.append("__inst.$$bind('$args', {name:name, args:args});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$instances.$add(__inst);\n"); sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n"); sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n"); sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n"); sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n"); sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n"); sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n"); sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n"); sb.append("__inst.remoteHost = __mod.PARAMS.remoteHost;\n"); sb.append("for (__p in __params) __inst[__p] = __params[__p];\n"); sb.append("var save = xdc.om.$curpkg;\n"); sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n"); sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [name, args]);\n"); sb.append("xdc.om.$$bind('$curpkg', save);\n"); sb.append("__inst.$$bless();\n"); sb.append("return __inst;\n"); sb.append("}\n"); Global.eval(sb.toString()); fxn = (Proto.Fxn) om.bind( "host.platforms.SUN.Platform$$construct", new Proto.Fxn( om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN"), null, 4, 2, false)); fxn.addArg( 0, "__obj", (Proto) om.findStrict("host.platforms.SUN.Platform$$Object", "host.platforms.SUN"), null); fxn.addArg(1, "name", $$T_Str, $$UNDEF); fxn.addArg(2, "args", $$T_Obj, $$UNDEF); fxn.addArg( 3, "__params", (Proto) om.findStrict("host.platforms.SUN.Platform.Params", "host.platforms.SUN"), Global.newObject()); sb = new StringBuilder(); sb.append( "host$platforms$SUN$Platform$$construct = function( __obj, name, args, __params ) {\n"); sb.append("var __mod = xdc.om['host.platforms.SUN.Platform'];\n"); sb.append("var __inst = __obj;\n"); sb.append("__inst.$$bind('$args', {name:name, args:args});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$objects.$add(__inst);\n"); sb.append("__inst.externalMemoryMap = __mod.PARAMS.externalMemoryMap;\n"); sb.append("__inst.customMemoryMap = __mod.PARAMS.customMemoryMap;\n"); sb.append("__inst.renameMap = __mod.PARAMS.renameMap;\n"); sb.append("__inst.dataMemory = __mod.PARAMS.dataMemory;\n"); sb.append("__inst.codeMemory = __mod.PARAMS.codeMemory;\n"); sb.append("__inst.stackMemory = __mod.PARAMS.stackMemory;\n"); sb.append("__inst.sectMap = __mod.PARAMS.sectMap;\n"); sb.append("__inst.remoteHost = __mod.PARAMS.remoteHost;\n"); sb.append("for (__p in __params) __inst[__p] = __params[__p];\n"); sb.append("__inst.$$bless();\n"); sb.append("return null;\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void $$SINGLETONS() { pkgP.init( "ti.sdo.ce.universal.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sdo.ce.universal")); Scriptable cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sdo/ce/universal/package.xs"); om.bind("xdc.IPackage$$capsule", cap); Object fxn; fxn = Global.get(cap, "init"); if (fxn != null) pkgP.addFxn( "init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "ti.sdo.ce.universal"), fxn); fxn = Global.get(cap, "close"); if (fxn != null) pkgP.addFxn( "close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "ti.sdo.ce.universal"), fxn); fxn = Global.get(cap, "validate"); if (fxn != null) pkgP.addFxn( "validate", (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "ti.sdo.ce.universal"), fxn); fxn = Global.get(cap, "exit"); if (fxn != null) pkgP.addFxn( "exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "ti.sdo.ce.universal"), fxn); fxn = Global.get(cap, "getLibs"); if (fxn != null) pkgP.addFxn( "getLibs", (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "ti.sdo.ce.universal"), fxn); fxn = Global.get(cap, "getSects"); if (fxn != null) pkgP.addFxn( "getSects", (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "ti.sdo.ce.universal"), fxn); pkgP.bind("$capsule", cap); pkgV.init2(pkgP, "ti.sdo.ce.universal", Value.DEFAULT, false); pkgV.bind("$name", "ti.sdo.ce.universal"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "ti.sdo.ce.universal."); pkgV.bind("$vers", Global.newArray("1, 0, 0")); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['ti.sdo.ce.universal'];\n"); sb.append("if (pkg.$vers.length >= 3) {\n"); sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("'lib/debug/universal.aem3',\n"); sb.append("'lib/release/universal.aem3',\n"); sb.append("'lib/debug/universal.ae674',\n"); sb.append("'lib/release/universal.ae674',\n"); sb.append("'lib/debug/universal.av5T',\n"); sb.append("'lib/release/universal.av5T',\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append("['lib/debug/universal.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n"); sb.append( "['lib/release/universal.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n"); sb.append("['lib/debug/universal.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n"); sb.append( "['lib/release/universal.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n"); sb.append( "['lib/debug/universal.av5T', {target: 'gnu.targets.arm.GCArmv5T', suffix: 'v5T'}],\n"); sb.append( "['lib/release/universal.av5T', {target: 'gnu.targets.arm.GCArmv5T', suffix: 'v5T'}],\n"); sb.append("];\n"); Global.eval(sb.toString()); }
void ResourceBundle$$CREATES() { Proto.Fxn fxn; StringBuilder sb; fxn = (Proto.Fxn) om.bind( "xdc.tools.ResourceBundle$$create", new Proto.Fxn( om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools"), om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"), 3, 2, false)); fxn.addArg(0, "pkgName", $$T_Str, $$UNDEF); fxn.addArg(1, "lang", $$T_Str, $$UNDEF); fxn.addArg( 2, "__params", (Proto) om.findStrict("xdc.tools.ResourceBundle.Params", "xdc.tools"), Global.newObject()); sb = new StringBuilder(); sb.append("xdc$tools$ResourceBundle$$create = function( pkgName, lang, __params ) {\n"); sb.append("var __mod = xdc.om['xdc.tools.ResourceBundle'];\n"); sb.append("var __inst = xdc.om['xdc.tools.ResourceBundle.Instance'].$$make();\n"); sb.append("__inst.$$bind('$package', xdc.om['xdc.tools']);\n"); sb.append("__inst.$$bind('$index', __mod.$instances.length);\n"); sb.append("__inst.$$bind('$category', 'Instance');\n"); sb.append("__inst.$$bind('$args', {pkgName:pkgName, lang:lang});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$instances.$add(__inst);\n"); sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n"); sb.append("var save = xdc.om.$curpkg;\n"); sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n"); sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [pkgName, lang]);\n"); sb.append("xdc.om.$$bind('$curpkg', save);\n"); sb.append("__inst.$$bless();\n"); sb.append("return __inst;\n"); sb.append("}\n"); Global.eval(sb.toString()); fxn = (Proto.Fxn) om.bind( "xdc.tools.ResourceBundle$$construct", new Proto.Fxn( om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools"), null, 4, 2, false)); fxn.addArg( 0, "__obj", (Proto) om.findStrict("xdc.tools.ResourceBundle$$Object", "xdc.tools"), null); fxn.addArg(1, "pkgName", $$T_Str, $$UNDEF); fxn.addArg(2, "lang", $$T_Str, $$UNDEF); fxn.addArg( 3, "__params", (Proto) om.findStrict("xdc.tools.ResourceBundle.Params", "xdc.tools"), Global.newObject()); sb = new StringBuilder(); sb.append( "xdc$tools$ResourceBundle$$construct = function( __obj, pkgName, lang, __params ) {\n"); sb.append("var __mod = xdc.om['xdc.tools.ResourceBundle'];\n"); sb.append("var __inst = __obj;\n"); sb.append("__inst.$$bind('$args', {pkgName:pkgName, lang:lang});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$objects.$add(__inst);\n"); sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n"); sb.append("__inst.$$bless();\n"); sb.append("return null;\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void Cmdr$$CREATES() { Proto.Fxn fxn; StringBuilder sb; fxn = (Proto.Fxn) om.bind( "xdc.tools.Cmdr$$create", new Proto.Fxn( om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools"), om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"), 2, 1, false)); fxn.addArg(0, "cmdmod", $$T_Obj, $$UNDEF); fxn.addArg( 1, "__params", (Proto) om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools"), Global.newObject()); sb = new StringBuilder(); sb.append("xdc$tools$Cmdr$$create = function( cmdmod, __params ) {\n"); sb.append("var __mod = xdc.om['xdc.tools.Cmdr'];\n"); sb.append("var __inst = xdc.om['xdc.tools.Cmdr.Instance'].$$make();\n"); sb.append("__inst.$$bind('$package', xdc.om['xdc.tools']);\n"); sb.append("__inst.$$bind('$index', __mod.$instances.length);\n"); sb.append("__inst.$$bind('$category', 'Instance');\n"); sb.append("__inst.$$bind('$args', {cmdmod:cmdmod});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$instances.$add(__inst);\n"); sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n"); sb.append("var save = xdc.om.$curpkg;\n"); sb.append("xdc.om.$$bind('$curpkg', __mod.$package.$name);\n"); sb.append("__mod.instance$meta$init.$fxn.apply(__inst, [cmdmod]);\n"); sb.append("xdc.om.$$bind('$curpkg', save);\n"); sb.append("__inst.$$bless();\n"); sb.append("return __inst;\n"); sb.append("}\n"); Global.eval(sb.toString()); fxn = (Proto.Fxn) om.bind( "xdc.tools.Cmdr$$construct", new Proto.Fxn( om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools"), null, 3, 1, false)); fxn.addArg(0, "__obj", (Proto) om.findStrict("xdc.tools.Cmdr$$Object", "xdc.tools"), null); fxn.addArg(1, "cmdmod", $$T_Obj, $$UNDEF); fxn.addArg( 2, "__params", (Proto) om.findStrict("xdc.tools.Cmdr.Params", "xdc.tools"), Global.newObject()); sb = new StringBuilder(); sb.append("xdc$tools$Cmdr$$construct = function( __obj, cmdmod, __params ) {\n"); sb.append("var __mod = xdc.om['xdc.tools.Cmdr'];\n"); sb.append("var __inst = __obj;\n"); sb.append("__inst.$$bind('$args', {cmdmod:cmdmod});\n"); sb.append("__inst.$$bind('$module', __mod);\n"); sb.append("__mod.$objects.$add(__inst);\n"); sb.append("for (var __p in __params) __inst[__p] = __params[__p];\n"); sb.append("__inst.$$bless();\n"); sb.append("return null;\n"); sb.append("}\n"); Global.eval(sb.toString()); }
void $$SINGLETONS() { pkgP.init( "ti.sysbios.rta.Package", (Proto.Obj) om.findStrict("xdc.IPackage.Module", "ti.sysbios.rta")); Scriptable cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/package.xs"); om.bind("xdc.IPackage$$capsule", cap); Object fxn; fxn = Global.get(cap, "init"); if (fxn != null) pkgP.addFxn("init", (Proto.Fxn) om.findStrict("xdc.IPackage$$init", "ti.sysbios.rta"), fxn); fxn = Global.get(cap, "close"); if (fxn != null) pkgP.addFxn("close", (Proto.Fxn) om.findStrict("xdc.IPackage$$close", "ti.sysbios.rta"), fxn); fxn = Global.get(cap, "validate"); if (fxn != null) pkgP.addFxn( "validate", (Proto.Fxn) om.findStrict("xdc.IPackage$$validate", "ti.sysbios.rta"), fxn); fxn = Global.get(cap, "exit"); if (fxn != null) pkgP.addFxn("exit", (Proto.Fxn) om.findStrict("xdc.IPackage$$exit", "ti.sysbios.rta"), fxn); fxn = Global.get(cap, "getLibs"); if (fxn != null) pkgP.addFxn( "getLibs", (Proto.Fxn) om.findStrict("xdc.IPackage$$getLibs", "ti.sysbios.rta"), fxn); fxn = Global.get(cap, "getSects"); if (fxn != null) pkgP.addFxn( "getSects", (Proto.Fxn) om.findStrict("xdc.IPackage$$getSects", "ti.sysbios.rta"), fxn); pkgP.bind("$capsule", cap); pkgV.init2(pkgP, "ti.sysbios.rta", Value.DEFAULT, false); pkgV.bind("$name", "ti.sysbios.rta"); pkgV.bind("$category", "Package"); pkgV.bind("$$qn", "ti.sysbios.rta."); pkgV.bind("$vers", Global.newArray("2, 0, 0, 0")); Value.Map atmap = (Value.Map) pkgV.getv("$attr"); atmap.seal("length"); imports.clear(); pkgV.bind("$imports", imports); StringBuilder sb = new StringBuilder(); sb.append("var pkg = xdc.om['ti.sysbios.rta'];\n"); sb.append("if (pkg.$vers.length >= 3) {\n"); sb.append("pkg.$vers.push(Packages.xdc.services.global.Vers.getDate(xdc.csd() + '/..'));\n"); sb.append("}\n"); sb.append("pkg.build.libraries = [\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a28L',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a28FP',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64P',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a64Pe',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a674',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430X',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.a430XS',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae430X',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae430XS',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ar430XS',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64P',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64Pe',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae674',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae64T',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae66',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae66e',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aearp32',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aearp32F',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.ae9',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aea8f',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aea8fnv',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem3',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem4',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aem4f',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aer4te',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aer4fte',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.am3g',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.am4g',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.am4fg',\n"); sb.append("'lib/sysbios/debug/ti.sysbios.rta.aa15g',\n"); sb.append("'lib/smpbios/debug/ti.sysbios.rta.aem3',\n"); sb.append("'lib/smpbios/debug/ti.sysbios.rta.aem4',\n"); sb.append("];\n"); sb.append("pkg.build.libDesc = [\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a28L', {target: 'ti.targets.C28_large', suffix: '28L'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a28FP', {target: 'ti.targets.C28_float', suffix: '28FP'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a64', {target: 'ti.targets.C64', suffix: '64'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a64P', {target: 'ti.targets.C64P', suffix: '64P'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a64Pe', {target: 'ti.targets.C64P_big_endian', suffix: '64Pe'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a674', {target: 'ti.targets.C674', suffix: '674'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a430', {target: 'ti.targets.msp430.MSP430', suffix: '430'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a430X', {target: 'ti.targets.msp430.MSP430X', suffix: '430X'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.a430XS', {target: 'ti.targets.msp430.MSP430X_small', suffix: '430XS'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae430X', {target: 'ti.targets.msp430.elf.MSP430X', suffix: 'e430X'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae430XS', {target: 'ti.targets.msp430.elf.MSP430X_small', suffix: 'e430XS'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ar430XS', {target: 'iar.targets.msp430.MSP430X_small', suffix: 'r430XS'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae64P', {target: 'ti.targets.elf.C64P', suffix: 'e64P'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae64Pe', {target: 'ti.targets.elf.C64P_big_endian', suffix: 'e64Pe'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae674', {target: 'ti.targets.elf.C674', suffix: 'e674'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae64T', {target: 'ti.targets.elf.C64T', suffix: 'e64T'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae66', {target: 'ti.targets.elf.C66', suffix: 'e66'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae66e', {target: 'ti.targets.elf.C66_big_endian', suffix: 'e66e'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aearp32', {target: 'ti.targets.arp32.elf.ARP32', suffix: 'earp32'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aearp32F', {target: 'ti.targets.arp32.elf.ARP32_far', suffix: 'earp32F'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.ae9', {target: 'ti.targets.arm.elf.Arm9', suffix: 'e9'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aea8f', {target: 'ti.targets.arm.elf.A8F', suffix: 'ea8f'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aea8fnv', {target: 'ti.targets.arm.elf.A8Fnv', suffix: 'ea8fnv'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aem4', {target: 'ti.targets.arm.elf.M4', suffix: 'em4'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aem4f', {target: 'ti.targets.arm.elf.M4F', suffix: 'em4f'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aer4te', {target: 'ti.targets.arm.elf.R4t_big_endian', suffix: 'er4te'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aer4fte', {target: 'ti.targets.arm.elf.R4Ft_big_endian', suffix: 'er4fte'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.am3g', {target: 'gnu.targets.arm.M3', suffix: 'm3g'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.am4g', {target: 'gnu.targets.arm.M4', suffix: 'm4g'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.am4fg', {target: 'gnu.targets.arm.M4F', suffix: 'm4fg'}],\n"); sb.append( "['lib/sysbios/debug/ti.sysbios.rta.aa15g', {target: 'gnu.targets.arm.A15', suffix: 'a15g'}],\n"); sb.append( "['lib/smpbios/debug/ti.sysbios.rta.aem3', {target: 'ti.targets.arm.elf.M3', suffix: 'em3'}],\n"); sb.append( "['lib/smpbios/debug/ti.sysbios.rta.aem4', {target: 'ti.targets.arm.elf.M4', suffix: 'em4'}],\n"); sb.append("];\n"); Global.eval(sb.toString()); }