Index: /branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
===================================================================
--- /branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py	(revision 939)
+++ /branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py	(revision 940)
@@ -26,4 +26,7 @@
     faultycore   -- a list containing faulty cores' coordinates (x, y, l)
     debug        -- a list with debug's start cycle, stop cycle, PID and MID
+    threads      -- number of OpenMP threads
+    firmdebug    -- activate the DEBUG compilation mode on software
+    diskimage    -- relative or absolute path to the disk image
     """
 
@@ -76,4 +79,5 @@
     command.extend(['-C', os.path.join(basedir, "soft")])
     command.extend(["CONFIG=" + outdir])
+    command.extend(["DEBUG=" + str(args.firmdebug)])
     subprocess.call(command, stdout=logfile, stderr=logfile)
 
@@ -91,7 +95,7 @@
     command = []
     command.extend([os.path.join(basedir, "simul.x")])
-    command.extend(["-DSOFT", os.path.join(basedir, "soft/build/boot.elf")])
-    command.extend(["-SOFT", os.path.join(basedir, "soft/build/loader.elf")])
-    command.extend(["-DISK", "file.dmg"])
+    command.extend(["-DSOFT", "soft/build/boot.elf"])
+    command.extend(["-SOFT", "soft/build/loader.elf"])
+    command.extend(["-DISK", args.diskimage])
 
     if args.faultyrouter != None:
@@ -190,4 +194,12 @@
         help='number of OpenMP threads')
 
+    parser.add_argument(
+        '--firmware-debug', '-fg', dest='firmdebug', default=0,
+        help='activate the DEBUG compilation mode on software')
+
+    parser.add_argument(
+        '--disk-image', '-di', dest='diskimage', default="./file.dmg",
+        help='relative or absolute path to the external firmware')
+
     run(parser.parse_args())
 
