From 3bf77446ccfa1263c752518884851a70f2721352 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Wed, 13 Sep 2017 13:19:01 +0900 Subject: [PATCH] mcreboot-smp-x86.sh: add extra_kopts param This lets one specify arbitrary kernel parameters, instead of manually fiddling with the script. Could ultimately replace params like -t (turbo) and -d (dump_level) that do not have any side effect (logmode starts a userland daemon) --- arch/x86/tools/mcreboot-smp-x86.sh.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/tools/mcreboot-smp-x86.sh.in b/arch/x86/tools/mcreboot-smp-x86.sh.in index 3d94d58b..1a91e0f8 100644 --- a/arch/x86/tools/mcreboot-smp-x86.sh.in +++ b/arch/x86/tools/mcreboot-smp-x86.sh.in @@ -45,7 +45,7 @@ turbo="" ihk_irq="" umask_old=`umask` -while getopts :tk:c:m:o:f:r:q:i:d: OPT +while getopts :tk:c:m:o:f:r:q:i:d:e: OPT do case ${OPT} in f) facility=${OPTARG} @@ -64,6 +64,8 @@ do ;; t) turbo="turbo" ;; + e) extra_kopts=${OPTARG} + ;; d) DUMP_LEVEL=${OPTARG} ;; i) mon_interval=${OPTARG} @@ -385,7 +387,7 @@ if ! ${SBINDIR}/ihkosctl 0 load ${KERNDIR}/mckernel.img; then fi # Set kernel arguments -if ! ${SBINDIR}/ihkosctl 0 kargs "hidos $turbo dump_level=${DUMP_LEVEL}"; then +if ! ${SBINDIR}/ihkosctl 0 kargs "hidos $turbo dump_level=${DUMP_LEVEL} $extra_kopts"; then echo "error: setting kernel arguments" >&2 error_exit "os_created" fi