From: Chun-Chen TK Hsu Date: Fri, 13 Sep 2019 04:25:18 +0000 (+0800) Subject: config: Add --kernel-cmd option in fs_bigLITTLE.py X-Git-Tag: v19.0.0.0~343 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0464696e29c1f8fc726a5aeb7522859a1f6b1379;p=gem5.git 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 --- 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")