options: add command line option for dtb file
This commit is contained in:
parent
f7107fb795
commit
21aa950318
|
@ -227,7 +227,8 @@ def makeSparcSystem(mem_mode, mdesc = None):
|
||||||
|
|
||||||
return self
|
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
|
assert machine_type
|
||||||
|
|
||||||
if bare_metal:
|
if bare_metal:
|
||||||
|
@ -279,6 +280,8 @@ def makeArmSystem(mem_mode, machine_type, mdesc = None, bare_metal=False):
|
||||||
self.mem_ranges = [self.physmem.range]
|
self.mem_ranges = [self.physmem.range]
|
||||||
else:
|
else:
|
||||||
self.kernel = binary('vmlinux.arm.smp.fb.2.6.38.8')
|
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
|
self.machine_type = machine_type
|
||||||
if convert.toMemorySize(mdesc.mem()) > int(self.realview.max_mem_size):
|
if convert.toMemorySize(mdesc.mem()) > int(self.realview.max_mem_size):
|
||||||
print "The currently selected ARM platforms doesn't support"
|
print "The currently selected ARM platforms doesn't support"
|
||||||
|
|
|
@ -173,6 +173,9 @@ def addFSOptions(parser):
|
||||||
help="Provide the raw system without the linux specific bits")
|
help="Provide the raw system without the linux specific bits")
|
||||||
parser.add_option("--machine-type", action="store", type="choice",
|
parser.add_option("--machine-type", action="store", type="choice",
|
||||||
choices=ArmMachineType.map.keys(), default="RealView_PBX")
|
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
|
# Benchmark options
|
||||||
parser.add_option("--dual", action="store_true",
|
parser.add_option("--dual", action="store_true",
|
||||||
help="Simulate two systems attached with an ethernet link")
|
help="Simulate two systems attached with an ethernet link")
|
||||||
|
|
|
@ -101,9 +101,8 @@ elif buildEnv['TARGET_ISA'] == "sparc":
|
||||||
elif buildEnv['TARGET_ISA'] == "x86":
|
elif buildEnv['TARGET_ISA'] == "x86":
|
||||||
test_sys = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0])
|
test_sys = makeLinuxX86System(test_mem_mode, options.num_cpus, bm[0])
|
||||||
elif buildEnv['TARGET_ISA'] == "arm":
|
elif buildEnv['TARGET_ISA'] == "arm":
|
||||||
test_sys = makeArmSystem(test_mem_mode,
|
test_sys = makeArmSystem(test_mem_mode, options.machine_type, bm[0],
|
||||||
options.machine_type, bm[0],
|
options.dtb_filename, bare_metal=options.bare_metal)
|
||||||
bare_metal=options.bare_metal)
|
|
||||||
else:
|
else:
|
||||||
fatal("Incapable of building %s full system!", buildEnv['TARGET_ISA'])
|
fatal("Incapable of building %s full system!", buildEnv['TARGET_ISA'])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue