Ignore:
Timestamp:
Dec 12, 2014, 4:52:48 PM (10 years ago)
Author:
cfuguet
Message:

reconf: generate the linux device tree when running simulation script

Location:
branches/reconfiguration/platforms/tsar_generic_iob/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/arch.py

    r900 r907  
    358358    return mapping
    359359
    360 def main(x, y, p, hard_path, xml_path):
     360def main(x, y, p, hard_path, xml_path, dts_path):
    361361    """main function: it generates the map.xml and the hard_config.h file based
    362362    on the Mapping object returned by arch()"""
     
    369369    with open(hard_path, "w") as hard_config:
    370370        hard_config.write(mapping.hard_config())
     371    with open(dts_path, "w") as linux_dts:
     372        linux_dts.write(mapping.linux_dts())
    371373
    372374################################# platform test ################################
     
    377379         p=int(sys.argv[3]),
    378380         hard_path="hard_config.test.h",
    379          xml_path="map.test.xml")
     381         xml_path="map.test.xml",
     382         dts_path="linux.dts")
    380383
    381384# Local Variables:
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py

    r906 r907  
    4343    faultpath = os.path.join(outdir, "config/fault_config.h")
    4444    hardpath = os.path.join(outdir, "config/hard_config.h")
    45     xmlpath = os.path.join(outdir, "config/map.xml")
    46     arch.main(args.x, args.y, args.nprocs, hardpath, xmlpath)
     45    xmlpath = os.path.join(outdir, "config/giet.map.xml")
     46    dtspath = os.path.join(outdir, "config/linux.dts")
     47    arch.main(args.x, args.y, args.nprocs, hardpath, xmlpath, dtspath)
    4748    faultyprocs.generate(args.faultycore, faultpath)
    4849
Note: See TracChangeset for help on using the changeset viewer.