summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2014-12-04 16:42:07 -0800
committerGabe Black <gabeblack@google.com>2014-12-04 16:42:07 -0800
commit7540656fc5b8ce0cafb54f41b913a7e81cbfb4b3 (patch)
tree9d71ff1e0fec15253c091bb077aea8c854d23141 /configs/common/Options.py
parent22aaa5867f2449e2a73b7891fc34072c12c199b3 (diff)
downloadgem5-7540656fc5b8ce0cafb54f41b913a7e81cbfb4b3.tar.xz
config: Add two options for setting the kernel command line.
Both options accept template which will, through python string formatting, have "mem", "disk", and "script" values substituted in from the mdesc. Additional values can be used on a case by case basis by passing them as keyword arguments to the fillInCmdLine function. That makes it possible to have specialized parameters for a particular ISA, for instance. The first option lets you specify the template directly, and the other lets you specify a file which has the template in it.
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r--configs/common/Options.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index 19c504d97..a788af290 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -265,3 +265,11 @@ def addFSOptions(parser):
# Disk Image Options
parser.add_option("--disk-image", action="store", type="string", default=None,
help="Path to the disk image to use.")
+
+ # Command line options
+ parser.add_option("--command-line", action="store", type="string",
+ default=None,
+ help="Template for the kernel command line.")
+ parser.add_option("--command-line-file", action="store",
+ default=None, type="string",
+ help="File with a template for the kernel command line")