summaryrefslogtreecommitdiff
path: root/configs/common
diff options
context:
space:
mode:
Diffstat (limited to 'configs/common')
-rw-r--r--configs/common/FSConfig.py7
-rw-r--r--configs/common/Options.py2
2 files changed, 6 insertions, 3 deletions
diff --git a/configs/common/FSConfig.py b/configs/common/FSConfig.py
index c08353a23..fc8765b6c 100644
--- a/configs/common/FSConfig.py
+++ b/configs/common/FSConfig.py
@@ -204,7 +204,8 @@ def makeSparcSystem(mem_mode, mdesc=None, cmdline=None):
def makeArmSystem(mem_mode, machine_type, num_cpus=1, mdesc=None,
dtb_filename=None, bare_metal=False, cmdline=None,
- external_memory="", ruby=False, security=False):
+ external_memory="", ruby=False, security=False,
+ ignore_dtb=False):
assert machine_type
default_dtbs = {
@@ -249,7 +250,7 @@ def makeArmSystem(mem_mode, machine_type, num_cpus=1, mdesc=None,
machine_type = platform_class.__name__
self.realview = platform_class()
- if not dtb_filename and not bare_metal:
+ if not dtb_filename and not (bare_metal or ignore_dtb):
try:
dtb_filename = default_dtbs[machine_type]
except KeyError:
@@ -305,7 +306,7 @@ def makeArmSystem(mem_mode, machine_type, num_cpus=1, mdesc=None,
if machine_type in default_kernels:
self.kernel = binary(default_kernels[machine_type])
- if dtb_filename:
+ if dtb_filename and not ignore_dtb:
self.dtb_filename = binary(dtb_filename)
self.machine_type = machine_type if machine_type in ArmMachineType.map \
diff --git a/configs/common/Options.py b/configs/common/Options.py
index ea7c75bb7..29ef74c9a 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -343,6 +343,8 @@ def addFSOptions(parser):
parser.add_option("--enable-context-switch-stats-dump", \
action="store_true", help="Enable stats dump at context "\
"switches and dump tasks file (required for Streamline)")
+ parser.add_option("--generate-dtb", action="store_true", default=False,
+ help="Automatically generate a dtb file")
# Benchmark options
parser.add_option("--dual", action="store_true",