summaryrefslogtreecommitdiff
path: root/configs/common/Options.py
diff options
context:
space:
mode:
authorChris Emmons <Chris.Emmons@arm.com>2015-03-19 04:06:14 -0400
committerChris Emmons <Chris.Emmons@arm.com>2015-03-19 04:06:14 -0400
commit142ab40c4b57315e20c924d0615470ee24f46d9e (patch)
treeea8fb6bcea5b95fbbef2ab28d5530843a8f36fb6 /configs/common/Options.py
parent9b4d8030e6d106e8ddae7b9940fe8f07d2621660 (diff)
downloadgem5-142ab40c4b57315e20c924d0615470ee24f46d9e.tar.xz
config: Specify OS type and release on command line
This patch enables users to speficy --os-type on the command line. This option is used to take specific actions for an OS type, such as changing the kernel command line. This patch is part of the Android KitKat enablement.
Diffstat (limited to 'configs/common/Options.py')
-rw-r--r--configs/common/Options.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/common/Options.py b/configs/common/Options.py
index 07059f23b..4cf1e6c5a 100644
--- a/configs/common/Options.py
+++ b/configs/common/Options.py
@@ -46,6 +46,8 @@ from Benchmarks import *
import CpuConfig
import MemConfig
+from FSConfig import os_types
+
def _listCpuTypes(option, opt, value, parser):
CpuConfig.print_cpu_list()
sys.exit(0)
@@ -241,6 +243,9 @@ def addFSOptions(parser):
# System options
parser.add_option("--kernel", action="store", type="string")
+ parser.add_option("--os-type", action="store", type="choice",
+ choices=os_types[buildEnv['TARGET_ISA']], default="linux",
+ help="Specifies type of OS to boot")
parser.add_option("--script", action="store", type="string")
parser.add_option("--frame-capture", action="store_true",
help="Stores changed frame buffers from the VNC server to compressed "\