Changeset 940


Ignore:
Timestamp:
Feb 12, 2015, 2:59:18 PM (10 years ago)
Author:
cfuguet
Message:

reconf: the disk image path can be passes as parameter to the onerun.py
script.

File:
1 edited

Legend:

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

    r929 r940  
    2626    faultycore   -- a list containing faulty cores' coordinates (x, y, l)
    2727    debug        -- a list with debug's start cycle, stop cycle, PID and MID
     28    threads      -- number of OpenMP threads
     29    firmdebug    -- activate the DEBUG compilation mode on software
     30    diskimage    -- relative or absolute path to the disk image
    2831    """
    2932
     
    7679    command.extend(['-C', os.path.join(basedir, "soft")])
    7780    command.extend(["CONFIG=" + outdir])
     81    command.extend(["DEBUG=" + str(args.firmdebug)])
    7882    subprocess.call(command, stdout=logfile, stderr=logfile)
    7983
     
    9195    command = []
    9296    command.extend([os.path.join(basedir, "simul.x")])
    93     command.extend(["-DSOFT", os.path.join(basedir, "soft/build/boot.elf")])
    94     command.extend(["-SOFT", os.path.join(basedir, "soft/build/loader.elf")])
    95     command.extend(["-DISK", "file.dmg"])
     97    command.extend(["-DSOFT", "soft/build/boot.elf"])
     98    command.extend(["-SOFT", "soft/build/loader.elf"])
     99    command.extend(["-DISK", args.diskimage])
    96100
    97101    if args.faultyrouter != None:
     
    190194        help='number of OpenMP threads')
    191195
     196    parser.add_argument(
     197        '--firmware-debug', '-fg', dest='firmdebug', default=0,
     198        help='activate the DEBUG compilation mode on software')
     199
     200    parser.add_argument(
     201        '--disk-image', '-di', dest='diskimage', default="./file.dmg",
     202        help='relative or absolute path to the external firmware')
     203
    192204    run(parser.parse_args())
    193205
Note: See TracChangeset for help on using the changeset viewer.