예제 #1
0
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
   Global.callFxn("loadPackage", xdcO, "xdc.runtime");
   Global.callFxn("loadPackage", xdcO, "ti.sysbios.knl");
   Global.callFxn("loadPackage", xdcO, "xdc.rov");
 }
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "xdc.bld");
   Global.callFxn("loadPackage", xdcO, "gnu.targets");
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
   Global.callFxn("loadPackage", xdcO, "google.targets");
 }
예제 #3
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sdo.ipc.examples.Examples", "ti.sdo.ipc.examples"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.ipc.examples.Examples")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ipc.examples")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("google.targets.arm.Bionic", "google.targets.arm"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("google.targets.arm.Bionic")).bless();
    ((Value.Arr) om.findStrict("$packages", "google.targets.arm")).add(pkgV);
  }
예제 #5
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.platforms.evm6424.Platform", "ti.platforms.evm6424"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.platforms.evm6424.Platform")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.platforms.evm6424")).add(pkgV);
  }
예제 #6
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("xdc.tools.cdoc.sg.Main", "xdc.tools.cdoc.sg"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("xdc.tools.cdoc.sg.Main")).bless();
    ((Value.Arr) om.findStrict("$packages", "xdc.tools.cdoc.sg")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable)
            om.findStrict("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC", "ti.sdo.codecs.mpeg4vdec.ce"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.codecs.mpeg4vdec.ce.MPEG4VDEC")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.codecs.mpeg4vdec.ce")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sdo.ce.universal.UNIVERSALConfig", "ti.sdo.ce.universal"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sdo.ce.universal.UNIVERSALConfig")).bless();
    ((Value.Obj) om.getv("ti.sdo.ce.universal.IUNIVERSAL")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.universal")).add(pkgV);
  }
예제 #9
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn(
        "module$meta$init", (Scriptable) om.findStrict("ti.sysbios.rta.Agent", "ti.sysbios.rta"));
    Global.callFxn(
        "module$meta$init",
        (Scriptable) om.findStrict("ti.sysbios.rta.SupportLogger", "ti.sysbios.rta"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("ti.sysbios.rta.Agent")).bless();
    ((Value.Obj) om.getv("ti.sysbios.rta.SupportLogger")).bless();
    ((Value.Arr) om.findStrict("$packages", "ti.sysbios.rta")).add(pkgV);
  }
예제 #10
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("module$meta$init", (Scriptable) om.findStrict("xdc.tools.Cmdr", "xdc.tools"));
    Global.callFxn(
        "module$meta$init", (Scriptable) om.findStrict("xdc.tools.ResourceBundle", "xdc.tools"));
    Global.callFxn("init", pkgV);
    ((Value.Obj) om.getv("xdc.tools.Cmdr")).bless();
    ((Value.Obj) om.getv("xdc.tools.ResourceBundle")).bless();
    ((Value.Obj) om.getv("xdc.tools.ICmd")).bless();
    ((Value.Obj) om.getv("xdc.tools.IProductView")).bless();
    ((Value.Obj) om.getv("xdc.tools.IRtscProductTemplate")).bless();
    ((Value.Arr) om.findStrict("$packages", "xdc.tools")).add(pkgV);
  }
예제 #11
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "ti.platforms.sdbTitan")).add(pkgV);
  }
예제 #12
0
 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 $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.utils.rtcfg.osal")).add(pkgV);
  }
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "ti.sdo.ce.examples.extensions")).add(pkgV);
  }
예제 #15
0
  void $$INITIALIZATION() {
    Value.Obj vo;

    if (isCFG) {} // isCFG
    Global.callFxn("init", pkgV);
    ((Value.Arr) om.findStrict("$packages", "xdc.services.mapping")).add(pkgV);
  }
예제 #16
0
  void Main$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/cdoc/sg/Main.xs");
    om.bind("xdc.tools.cdoc.sg.Main$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.cdoc.sg.Main.Module", "xdc.tools.cdoc.sg");
    po.init("xdc.tools.cdoc.sg.Main.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$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("xdc.tools.cdoc.sg.Main$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.cdoc.sg.Main$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po.addFxn(
        "main",
        (Proto.Fxn) om.findStrict("xdc.tools.cdoc.sg.Main$$main", "xdc.tools.cdoc.sg"),
        Global.get(cap, "main"));
  }
예제 #17
0
  void Agent$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/sysbios/rta/Agent.xs");
    om.bind("ti.sysbios.rta.Agent$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.sysbios.rta.Agent.Module", "ti.sysbios.rta");
    po.init("ti.sysbios.rta.Agent.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("loadLogging", $$T_Bool, true, "wh");
    po.addFld("loadLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("loadLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 512L, "wh");
    po.addFld("loadLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("mainLogging", $$T_Bool, true, "wh");
    po.addFld("mainLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("mainLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh");
    po.addFld("mainLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("sysbiosHwiLogging", $$T_Bool, false, "wh");
    po.addFld("sysbiosHwiLoggingRuntimeControl", $$T_Bool, false, "wh");
    po.addFld("sysbiosSwiLogging", $$T_Bool, false, "wh");
    po.addFld("sysbiosSwiLoggingRuntimeControl", $$T_Bool, false, "wh");
    po.addFld("sysbiosTaskLogging", $$T_Bool, true, "wh");
    po.addFld("sysbiosTaskLoggingRuntimeControl", $$T_Bool, true, "wh");
    po.addFld("sysbiosLoggerSize", Proto.Elm.newCNum("(xdc_SizeT)"), 4096L, "wh");
    po.addFld("sysbiosLoggerBufferSection", $$T_Str, "[Default]", "wh");
    po.addFld("configureSystemLog", $$T_Bool, true, "wh");
    po.addFld("numSystemRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh");
    po.addFld("configureLoadLog", $$T_Bool, true, "wh");
    po.addFld("numLoadRecords", Proto.Elm.newCNum("(xdc_Int)"), 64L, "wh");
    po.addFld("periodInMs", Proto.Elm.newCNum("(xdc_Int)"), 100L, "wh");
    po.addFld("priority", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("agentStackSize", Proto.Elm.newCNum("(xdc_SizeT)"), 1024L, "wh");
    po.addFld("agentStackSection", $$T_Str, "[Default]", "wh");
    po.addFld("transferBufferSize", Proto.Elm.newCNum("(xdc_Int)"), 85L, "wh");
    po.addFld("transferBufferSection", $$T_Str, $$UNDEF, "wh");
    po.addFld("addSupportLogger", $$T_Bool, true, "wh");
    po.addFld("supportControl", $$T_Bool, true, "wh");
    po.addFld(
        "transport",
        (Proto) om.findStrict("ti.sysbios.rta.Agent.Transport", "ti.sysbios.rta"),
        om.find("ti.sysbios.rta.Agent.Transport_STOP_MODE_ONLY"),
        "wh");
    po.addFld("dataStream", $$T_Str, "/rtdx0", "wh");
    po.addFld("commandStream", $$T_Str, "/rtdx1", "wh");
    po.addFld("responseStream", $$T_Str, "/rtdx1", "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$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.Agent$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.sysbios.rta.Agent$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
  }
예제 #18
0
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "ti.catalog.c6000");
   Global.callFxn("loadPackage", xdcO, "ti.catalog.arm.cortexm3");
   Global.callFxn("loadPackage", xdcO, "ti.catalog.arm.cortexa9");
   Global.callFxn("loadPackage", xdcO, "xdc.platform");
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
 }
예제 #19
0
  void ICmd$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/ICmd.xs");
    om.bind("xdc.tools.ICmd$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd.Module", "xdc.tools");
    po.init("xdc.tools.ICmd.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("usage", new Proto.Arr($$T_Str, false), Global.newArray(new Object[] {}), "wh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.ICmd$$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("xdc.tools.ICmd$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.ICmd$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.ICmd$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "main");
    if (fxn != null)
      po.addFxn("main", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$main", "xdc.tools"), fxn);
    fxn = Global.get(cap, "exec");
    if (fxn != null)
      po.addFxn("exec", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$exec", "xdc.tools"), fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd.Instance", "xdc.tools");
    po.init("xdc.tools.ICmd.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    fxn = Global.get(cap, "run");
    if (fxn != null)
      po.addFxn("run", (Proto.Fxn) om.findStrict("xdc.tools.ICmd$$run", "xdc.tools"), fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.ICmd$$Params", "xdc.tools");
    po.init("xdc.tools.ICmd.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
  }
예제 #20
0
  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);
  }
예제 #21
0
  void SunSparc7$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/SunSparc7.xs");
    om.bind("host.platforms.SUN.SunSparc7$$capsule", cap);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Module", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Module",
        om.findStrict("xdc.platform.ICpuDataSheet.Module", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.SunSparc7$$create", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$SunSparc7$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.SunSparc7$$construct", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$SunSparc7$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$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("host.platforms.SUN.SunSparc7$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("host.platforms.SUN.SunSparc7$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Instance",
        om.findStrict("xdc.platform.ICpuDataSheet.Instance", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("cpuCore", $$T_Str, "sparc7", "wh");
    po.addFld("cpuCoreRevision", $$T_Str, "1.0", "wh");
    po.addFld("minProgUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("minDataUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("dataWordSize", Proto.Elm.newCNum("(xdc_Int)"), 4L, "wh");
    po.addFld(
        "memMap",
        new Proto.Map((Proto) om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN")),
        Global.newArray(new Object[] {}),
        "wh");
    fxn = Global.get(cap, "getMemoryMap");
    if (fxn != null)
      po.addFxn(
          "getMemoryMap",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getMemoryMap", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getRegisterSet");
    if (fxn != null)
      po.addFxn(
          "getRegisterSet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getRegisterSet", "host.platforms.SUN"),
          fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7$$Params", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Params",
        om.findStrict("xdc.platform.ICpuDataSheet$$Params", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("cpuCore", $$T_Str, "sparc7", "wh");
    po.addFld("cpuCoreRevision", $$T_Str, "1.0", "wh");
    po.addFld("minProgUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("minDataUnitSize", Proto.Elm.newCNum("(xdc_Int)"), 1L, "wh");
    po.addFld("dataWordSize", Proto.Elm.newCNum("(xdc_Int)"), 4L, "wh");
    po.addFld(
        "memMap",
        new Proto.Map((Proto) om.findStrict("xdc.platform.IPlatform.Memory", "host.platforms.SUN")),
        Global.newArray(new Object[] {}),
        "wh");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.SunSparc7$$Object", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.SunSparc7.Object",
        om.findStrict("host.platforms.SUN.SunSparc7.Instance", "host.platforms.SUN"));
    fxn = Global.get(cap, "getMemoryMap");
    if (fxn != null)
      po.addFxn(
          "getMemoryMap",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getMemoryMap", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getRegisterSet");
    if (fxn != null)
      po.addFxn(
          "getRegisterSet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.ICpuDataSheet$$getRegisterSet", "host.platforms.SUN"),
          fxn);
  }
예제 #22
0
  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "host/platforms/SUN/Platform.xs");
    om.bind("host.platforms.SUN.Platform$$capsule", cap);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform.Module", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "host.platforms.SUN"),
        Global.newObject(
            "id", "0", "boardName", "sun-sparc", "boardFamily", "sun-sparc", "boardRevision", null),
        "rh");
    po.addFld(
        "CPU",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "host.platforms.SUN"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            750.0,
            "catalogName",
            "host.platforms.SUN",
            "deviceName",
            "SunSparc7",
            "revision",
            ""),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.Platform$$create", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("host.platforms.SUN.Platform$$construct", "host.platforms.SUN"),
        Global.get("host$platforms$SUN$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$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("host.platforms.SUN.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("host.platforms.SUN.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("remoteHost", $$T_Str, $$UNDEF, "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExeContext", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "host.platforms.SUN"),
          fxn);
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform$$Params", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "host.platforms.SUN"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("remoteHost", $$T_Str, $$UNDEF, "wh");
    po = (Proto.Obj) om.findStrict("host.platforms.SUN.Platform$$Object", "host.platforms.SUN");
    po.init(
        "host.platforms.SUN.Platform.Object",
        om.findStrict("host.platforms.SUN.Platform.Instance", "host.platforms.SUN"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExeContext", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "host.platforms.SUN"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "host.platforms.SUN"),
          fxn);
  }
예제 #23
0
  void Platform$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "ti/platforms/evm6424/Platform.xs");
    om.bind("ti.platforms.evm6424.Platform$$capsule", cap);
    po = (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform.Module", "ti.platforms.evm6424");
    po.init(
        "ti.platforms.evm6424.Platform.Module",
        om.findStrict("xdc.platform.IPlatform.Module", "ti.platforms.evm6424"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "BOARD",
        (Proto) om.findStrict("xdc.platform.IPlatform.Board", "ti.platforms.evm6424"),
        Global.newObject(
            "id", "0", "boardName", "evm6424", "boardFamily", "evm6424", "boardRevision", null),
        "rh");
    po.addFld(
        "CPU",
        (Proto) om.findStrict("xdc.platform.IExeContext.Cpu", "ti.platforms.evm6424"),
        Global.newObject(
            "id",
            "0",
            "clockRate",
            594L,
            "catalogName",
            "ti.catalog.c6000",
            "deviceName",
            "TMS320C6424",
            "revision",
            ""),
        "rh");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("ti.platforms.evm6424.Platform$$create", "ti.platforms.evm6424"),
        Global.get("ti$platforms$evm6424$Platform$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn)
            om.findStrict("ti.platforms.evm6424.Platform$$construct", "ti.platforms.evm6424"),
        Global.get("ti$platforms$evm6424$Platform$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("ti.platforms.evm6424.Platform$$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.platforms.evm6424.Platform$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("ti.platforms.evm6424.Platform$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("ti.platforms.evm6424.Platform$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po =
        (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform.Instance", "ti.platforms.evm6424");
    po.init(
        "ti.platforms.evm6424.Platform.Instance",
        om.findStrict("xdc.platform.IPlatform.Instance", "ti.platforms.evm6424"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "externalMemoryMap",
        new Proto.Map(
            (Proto) om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.evm6424")),
        Global.newArray(
            new Object[] {
              Global.newArray(
                  new Object[] {
                    "DDR2",
                    Global.newObject("name", "DDR2", "base", 0x80000000L, "len", 0x08000000L)
                  }),
              Global.newArray(
                  new Object[] {
                    "SRAM",
                    Global.newObject("name", "SRAM", "base", 0x42000000L, "len", 0x00200000L)
                  })
            }),
        "rh");
    po.addFld("codeMemory", $$T_Str, "DDR2", "wh");
    po.addFld("dataMemory", $$T_Str, "DDR2", "wh");
    po.addFld("stackMemory", $$T_Str, "DDR2", "wh");
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.evm6424"),
          fxn);
    po = (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform$$Params", "ti.platforms.evm6424");
    po.init(
        "ti.platforms.evm6424.Platform.Params",
        om.findStrict("xdc.platform.IPlatform$$Params", "ti.platforms.evm6424"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "externalMemoryMap",
        new Proto.Map(
            (Proto) om.findStrict("xdc.platform.IPlatform.Memory", "ti.platforms.evm6424")),
        Global.newArray(
            new Object[] {
              Global.newArray(
                  new Object[] {
                    "DDR2",
                    Global.newObject("name", "DDR2", "base", 0x80000000L, "len", 0x08000000L)
                  }),
              Global.newArray(
                  new Object[] {
                    "SRAM",
                    Global.newObject("name", "SRAM", "base", 0x42000000L, "len", 0x00200000L)
                  })
            }),
        "rh");
    po.addFld("codeMemory", $$T_Str, "DDR2", "wh");
    po.addFld("dataMemory", $$T_Str, "DDR2", "wh");
    po.addFld("stackMemory", $$T_Str, "DDR2", "wh");
    po = (Proto.Obj) om.findStrict("ti.platforms.evm6424.Platform$$Object", "ti.platforms.evm6424");
    po.init(
        "ti.platforms.evm6424.Platform.Object",
        om.findStrict("ti.platforms.evm6424.Platform.Instance", "ti.platforms.evm6424"));
    fxn = Global.get(cap, "getCpuDataSheet");
    if (fxn != null)
      po.addFxn(
          "getCpuDataSheet",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCpuDataSheet", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getCreateArgs");
    if (fxn != null)
      po.addFxn(
          "getCreateArgs",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getCreateArgs", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getExeContext");
    if (fxn != null)
      po.addFxn(
          "getExeContext",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getExeContext", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getExecCmd");
    if (fxn != null)
      po.addFxn(
          "getExecCmd",
          (Proto.Fxn) om.findStrict("xdc.platform.IPlatform$$getExecCmd", "ti.platforms.evm6424"),
          fxn);
    fxn = Global.get(cap, "getLinkTemplate");
    if (fxn != null)
      po.addFxn(
          "getLinkTemplate",
          (Proto.Fxn)
              om.findStrict("xdc.platform.IPlatform$$getLinkTemplate", "ti.platforms.evm6424"),
          fxn);
  }
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
   Global.callFxn("loadPackage", xdcO, "ti.sdo.ce");
 }
예제 #25
0
  void Cmdr$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/Cmdr.xs");
    om.bind("xdc.tools.Cmdr$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Module", "xdc.tools");
    po.init("xdc.tools.Cmdr.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$create", "xdc.tools"),
        Global.get("xdc$tools$Cmdr$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$construct", "xdc.tools"),
        Global.get("xdc$tools$Cmdr$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$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("xdc.tools.Cmdr$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.Cmdr$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools");
    po.init("xdc.tools.Cmdr.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "context",
        (Proto) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
        om.find("xdc.tools.Cmdr.SHELL"),
        "wh");
    po.addFld("tid", Proto.Elm.newCNum("(xdc_Int)"), 0L, "wh");
    po.addFld("socket", $$T_Obj, null, "wh");
    po.addFxn(
        "error",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$error", "xdc.tools"),
        Global.get(cap, "error"));
    po.addFxn(
        "getopts",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$getopts", "xdc.tools"),
        Global.get(cap, "getopts"));
    po.addFxn(
        "info",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$info", "xdc.tools"),
        Global.get(cap, "info"));
    po.addFxn(
        "read",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$read", "xdc.tools"),
        Global.get(cap, "read"));
    po.addFxn(
        "time",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$time", "xdc.tools"),
        Global.get(cap, "time"));
    po.addFxn(
        "usage",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$usage", "xdc.tools"),
        Global.get(cap, "usage"));
    po.addFxn(
        "verbose",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$verbose", "xdc.tools"),
        Global.get(cap, "verbose"));
    po.addFxn(
        "warning",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$warning", "xdc.tools"),
        Global.get(cap, "warning"));
    po.addFxn(
        "write",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$write", "xdc.tools"),
        Global.get(cap, "write"));
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr$$Params", "xdc.tools");
    po.init("xdc.tools.Cmdr.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld(
        "context",
        (Proto) om.findStrict("xdc.tools.Cmdr.Context", "xdc.tools"),
        om.find("xdc.tools.Cmdr.SHELL"),
        "wh");
    po.addFld("tid", Proto.Elm.newCNum("(xdc_Int)"), 0L, "wh");
    po.addFld("socket", $$T_Obj, null, "wh");
    po = (Proto.Obj) om.findStrict("xdc.tools.Cmdr$$Object", "xdc.tools");
    po.init("xdc.tools.Cmdr.Object", om.findStrict("xdc.tools.Cmdr.Instance", "xdc.tools"));
    po.addFxn(
        "error",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$error", "xdc.tools"),
        Global.get(cap, "error"));
    po.addFxn(
        "getopts",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$getopts", "xdc.tools"),
        Global.get(cap, "getopts"));
    po.addFxn(
        "info",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$info", "xdc.tools"),
        Global.get(cap, "info"));
    po.addFxn(
        "read",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$read", "xdc.tools"),
        Global.get(cap, "read"));
    po.addFxn(
        "time",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$time", "xdc.tools"),
        Global.get(cap, "time"));
    po.addFxn(
        "usage",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$usage", "xdc.tools"),
        Global.get(cap, "usage"));
    po.addFxn(
        "verbose",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$verbose", "xdc.tools"),
        Global.get(cap, "verbose"));
    po.addFxn(
        "warning",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$warning", "xdc.tools"),
        Global.get(cap, "warning"));
    po.addFxn(
        "write",
        (Proto.Fxn) om.findStrict("xdc.tools.Cmdr$$write", "xdc.tools"),
        Global.get(cap, "write"));
  }
 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());
 }
예제 #27
0
  void ResourceBundle$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "xdc/tools/ResourceBundle.xs");
    om.bind("xdc.tools.ResourceBundle$$capsule", cap);
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle.Module", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Module", $$Module);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "create",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$create", "xdc.tools"),
        Global.get("xdc$tools$ResourceBundle$$create"));
    po.addFxn(
        "construct",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$construct", "xdc.tools"),
        Global.get("xdc$tools$ResourceBundle$$construct"));
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$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("xdc.tools.ResourceBundle$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "instance$meta$init");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$instance$meta$init", true);
    if (fxn != null) po.addFxn("instance$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("xdc.tools.ResourceBundle$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    po.addFxn(
        "getResourceBundle",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getResourceBundle", "xdc.tools"),
        Global.get(cap, "getResourceBundle"));
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Instance", $$Instance);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFxn(
        "getString",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getString", "xdc.tools"),
        Global.get(cap, "getString"));
    po.addFxn(
        "formatMessage",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$formatMessage", "xdc.tools"),
        Global.get(cap, "formatMessage"));
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle$$Params", "xdc.tools");
    po.init("xdc.tools.ResourceBundle.Params", $$Params);
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po = (Proto.Obj) om.findStrict("xdc.tools.ResourceBundle$$Object", "xdc.tools");
    po.init(
        "xdc.tools.ResourceBundle.Object",
        om.findStrict("xdc.tools.ResourceBundle.Instance", "xdc.tools"));
    po.addFxn(
        "getString",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$getString", "xdc.tools"),
        Global.get(cap, "getString"));
    po.addFxn(
        "formatMessage",
        (Proto.Fxn) om.findStrict("xdc.tools.ResourceBundle$$formatMessage", "xdc.tools"),
        Global.get(cap, "formatMessage"));
  }
  void Bionic$$TYPES() {
    Scriptable cap;
    Proto.Obj po;
    Proto.Str ps;
    Proto.Typedef pt;
    Object fxn;

    cap = (Scriptable) Global.callFxn("loadCapsule", xdcO, "google/targets/arm/Bionic.xs");
    om.bind("google.targets.arm.Bionic$$capsule", cap);
    po = (Proto.Obj) om.findStrict("google.targets.arm.Bionic.Module", "google.targets.arm");
    po.init(
        "google.targets.arm.Bionic.Module",
        om.findStrict("google.targets.ITarget.Module", "google.targets.arm"));
    po.addFld("$hostonly", $$T_Num, 1, "r");
    po.addFld("name", $$T_Str, "Bionic", "rh");
    po.addFld("os", $$T_Str, "Linux", "rh");
    po.addFld("suffix", $$T_Str, "bnc", "rh");
    po.addFld("isa", $$T_Str, "v5T", "rh");
    po.addFld(
        "model",
        (Proto) om.findStrict("xdc.bld.ITarget.Model", "google.targets.arm"),
        Global.newObject("endian", "little"),
        "rh");
    po.addFld("rts", $$T_Str, "google.targets.arm.rts", "rh");
    po.addFld("platform", $$T_Str, "host.platforms.arm", "wh");
    po.addFld("LONGNAME", $$T_Str, $$UNDEF, "wh");
    po.addFld("libcDir", $$T_Str, $$UNDEF, "wh");
    po.addFld("fsDir", $$T_Str, $$UNDEF, "wh");
    po.addFld("stdInclude", $$T_Str, "google/targets/arm/std.h", "rh");
    po.addFld(
        "cc",
        (Proto) om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"),
        Global.newObject(
            "cmd",
            "$(rootDir)/$(LONGNAME) -c -MD -MF [email protected]",
            "opts",
            "-march=armv5t -fno-short-enums "),
        "rh");
    po.addFld(
        "ccOpts",
        (Proto) om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"),
        Global.newObject("prefix", "-fPIC -Wunused", "suffix", "-Dfar=  -D_ANDROID_"),
        "wh");
    po.addFld(
        "asm",
        (Proto) om.findStrict("xdc.bld.ITarget2.Command", "google.targets.arm"),
        Global.newObject("cmd", "$(rootDir)/$(LONGNAME) -c -x assembler", "opts", "-march=armv5t"),
        "rh");
    po.addFld(
        "lnkOpts",
        (Proto) om.findStrict("xdc.bld.ITarget2.Options", "google.targets.arm"),
        Global.newObject("prefix", "", "suffix", "-Wl,-Map=$(XDCCFGDIR)/[email protected] "),
        "wh");
    po.addFld(
        "stdTypes",
        (Proto) om.findStrict("xdc.bld.ITarget.StdTypes", "google.targets.arm"),
        Global.newObject(
            "t_IArg",
            Global.newObject("size", 4L, "align", 4L),
            "t_Char",
            Global.newObject("size", 1L, "align", 1L),
            "t_Double",
            Global.newObject("size", 8L, "align", 4L),
            "t_Float",
            Global.newObject("size", 4L, "align", 4L),
            "t_Fxn",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int8",
            Global.newObject("size", 1L, "align", 1L),
            "t_Int16",
            Global.newObject("size", 2L, "align", 2L),
            "t_Int32",
            Global.newObject("size", 4L, "align", 4L),
            "t_Int64",
            Global.newObject("size", 8L, "align", 4L),
            "t_Long",
            Global.newObject("size", 4L, "align", 4L),
            "t_LDouble",
            Global.newObject("size", 8L, "align", 4L),
            "t_LLong",
            Global.newObject("size", 8L, "align", 4L),
            "t_Ptr",
            Global.newObject("size", 4L, "align", 4L),
            "t_Short",
            Global.newObject("size", 2L, "align", 2L),
            "t_Size",
            Global.newObject("size", 4L, "align", 4L)),
        "rh");
    fxn = Global.get(cap, "module$use");
    if (fxn != null) om.bind("google.targets.arm.Bionic$$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("google.targets.arm.Bionic$$module$meta$init", true);
    if (fxn != null) po.addFxn("module$meta$init", $$T_Met, fxn);
    fxn = Global.get(cap, "module$validate");
    if (fxn != null) om.bind("google.targets.arm.Bionic$$module$validate", true);
    if (fxn != null) po.addFxn("module$validate", $$T_Met, fxn);
    fxn = Global.get(cap, "archive");
    if (fxn != null)
      po.addFxn(
          "archive",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$archive", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "compile");
    if (fxn != null)
      po.addFxn(
          "compile",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$compile", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "scompile");
    if (fxn != null)
      po.addFxn(
          "scompile",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$scompile", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "link");
    if (fxn != null)
      po.addFxn(
          "link", (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$link", "google.targets.arm"), fxn);
    fxn = Global.get(cap, "getVersion");
    if (fxn != null)
      po.addFxn(
          "getVersion",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$getVersion", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "getISAChain");
    if (fxn != null)
      po.addFxn(
          "getISAChain",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$getISAChain", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "findSuffix");
    if (fxn != null)
      po.addFxn(
          "findSuffix",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$findSuffix", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "selectSuffix");
    if (fxn != null)
      po.addFxn(
          "selectSuffix",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget$$selectSuffix", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genConstCustom");
    if (fxn != null)
      po.addFxn(
          "genConstCustom",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genConstCustom", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleData");
    if (fxn != null)
      po.addFxn(
          "genVisibleData",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleData", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleFxns");
    if (fxn != null)
      po.addFxn(
          "genVisibleFxns",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleFxns", "google.targets.arm"),
          fxn);
    fxn = Global.get(cap, "genVisibleLibFxns");
    if (fxn != null)
      po.addFxn(
          "genVisibleLibFxns",
          (Proto.Fxn) om.findStrict("xdc.bld.ITarget2$$genVisibleLibFxns", "google.targets.arm"),
          fxn);
  }
예제 #29
0
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "xdc.platform");
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
 }
예제 #30
0
 void $$IMPORTS() {
   Global.callFxn("loadPackage", xdcO, "ti.catalog.c5500");
   Global.callFxn("loadPackage", xdcO, "xdc");
   Global.callFxn("loadPackage", xdcO, "xdc.corevers");
 }