From 0464696e29c1f8fc726a5aeb7522859a1f6b1379 Mon Sep 17 00:00:00 2001 From: Chun-Chen TK Hsu Date: Fri, 13 Sep 2019 12:25:18 +0800 Subject: [PATCH] config: Add --kernel-cmd option in fs_bigLITTLE.py Allow users to specify their custom Linux kernel command. Change-Id: I1e88523c918369ea5dd86c088eca82471663e76a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20900 Tested-by: kokoro Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- configs/example/arm/fs_bigLITTLE.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configs/example/arm/fs_bigLITTLE.py b/configs/example/arm/fs_bigLITTLE.py index 01619586f..378ac0d03 100644 --- a/configs/example/arm/fs_bigLITTLE.py +++ b/configs/example/arm/fs_bigLITTLE.py @@ -196,6 +196,8 @@ def addOptions(parser): "Default: %(default)s") parser.add_argument("--mem-size", type=str, default=default_mem_size, help="System memory size") + parser.add_argument("--kernel-cmd", type=str, default=None, + help="Custom Linux kernel command") parser.add_argument("-P", "--param", action="append", default=[], help="Set a SimObject parameter relative to the root node. " "An extended Python multi range slicing syntax can be used " @@ -233,7 +235,10 @@ def build(options): mem_size=options.mem_size) root.system = system - system.boot_osflags = " ".join(kernel_cmd) + if options.kernel_cmd: + system.boot_osflags = options.kernel_cmd + else: + system.boot_osflags = " ".join(kernel_cmd) if options.big_cpus + options.little_cpus == 0: m5.util.panic("Empty CPU clusters") -- 2.30.2