changeset 0ac00d9a8aaf in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=0ac00d9a8aaf
description:
        options: add command line option for dtb file

diffstat:

 configs/common/FSConfig.py |  5 ++++-
 configs/common/Options.py  |  3 +++
 configs/example/fs.py      |  5 ++---
 3 files changed, 9 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 182d67b5b57a -r 0ac00d9a8aaf configs/common/FSConfig.py
--- a/configs/common/FSConfig.py        Fri Feb 15 18:48:59 2013 -0500
+++ b/configs/common/FSConfig.py        Fri Feb 15 18:48:59 2013 -0500
@@ -227,7 +227,8 @@
 
     return self
 
-def makeArmSystem(mem_mode, machine_type, mdesc = None, bare_metal=False):
+def makeArmSystem(mem_mode, machine_type, mdesc = None, dtb_filename = None,
+                  bare_metal=False):
     assert machine_type
 
     if bare_metal:
@@ -279,6 +280,8 @@
         self.mem_ranges = [self.physmem.range]
     else:
         self.kernel = binary('vmlinux.arm.smp.fb.2.6.38.8')
+        if dtb_filename is not None:
+            self.dtb_filename = dtb_filename
         self.machine_type = machine_type
         if convert.toMemorySize(mdesc.mem()) > int(self.realview.max_mem_size):
             print "The currently selected ARM platforms doesn't support"
diff -r 182d67b5b57a -r 0ac00d9a8aaf configs/common/Options.py
--- a/configs/common/Options.py Fri Feb 15 18:48:59 2013 -0500
+++ b/configs/common/Options.py Fri Feb 15 18:48:59 2013 -0500
@@ -173,6 +173,9 @@
                    help="Provide the raw system without the linux specific 
bits")
         parser.add_option("--machine-type", action="store", type="choice",
                 choices=ArmMachineType.map.keys(), default="RealView_PBX")
+        parser.add_option("--dtb-filename", action="store", type="string",
+              help="Specifies device tree blob file to use with device-tree-"\
+              "enabled kernels")
     # Benchmark options
     parser.add_option("--dual", action="store_true",
                       help="Simulate two systems attached with an ethernet 
link")
diff -r 182d67b5b57a -r 0ac00d9a8aaf configs/example/fs.py
--- a/configs/example/fs.py     Fri Feb 15 18:48:59 2013 -0500
+++ b/configs/example/fs.py     Fri Feb 15 18:48:59 2013 -0500
@@ -101,9 +101,8 @@
 elif buildEnv['TARGET_ISA'] == "x86":
     test_sys = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0])
 elif buildEnv['TARGET_ISA'] == "arm":
-    test_sys = makeArmSystem(test_mem_mode,
-            options.machine_type, bm[0],
-            bare_metal=options.bare_metal)
+    test_sys = makeArmSystem(test_mem_mode, options.machine_type, bm[0],
+            options.dtb_filename, bare_metal=options.bare_metal)
 else:
     fatal("Incapable of building %s full system!", buildEnv['TARGET_ISA'])
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to