From 2a647fa164bc867a6bedd3fb1ef1e3e069b609ec Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 17 Oct 2019 11:04:20 +0800 Subject: [PATCH] acrn-config: define vm name for Preempt-RT Linux in launch script The vm name for Preempt-RT Linux is not defined in launch script, causing Preempt RT linux launch failed. This patch refine the vm name and define the vm name for Preempt-RT Linux to fix such kinds of issues. Tracked-On: #3852 Signed-off-by: Wei Liu Acked-by: Victor Sun --- misc/acrn-config/launch_config/com.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/misc/acrn-config/launch_config/com.py b/misc/acrn-config/launch_config/com.py index aa8bd0848..d9d0048a2 100644 --- a/misc/acrn-config/launch_config/com.py +++ b/misc/acrn-config/launch_config/com.py @@ -35,7 +35,7 @@ def tap_uos_net(names, vmid, config): print("mac_seed=${mac:9:8}-${vm_name}", file=config) print("", file=config) - if uos_type in ("VXWORKS", "ZEPHYR", "WINDOWS"): + if uos_type in ("VXWORKS", "ZEPHYR", "WINDOWS", "PREEMPT-RT LINUX"): print("vm_name={}_vm$1".format(vm_name), file=config) if uos_type in ("CLEARLINUX", "ANDROID", "ALIOS"): @@ -289,7 +289,7 @@ def uos_launch(names, args, vmid, config): if uos_type == "VXWORKS": print("launch_{} 1".format(launch_uos), file=config) if uos_type == "PREEMPT-RT LINUX": - print("launch_{}".format(launch_uos), file=config) + print("launch_{} 1".format(launch_uos), file=config) if uos_type == "WINDOWS": print('launch_{} 1 "{}"'.format(launch_uos, gvt_args), file=config) if uos_type == "ZEPHYR": @@ -513,10 +513,7 @@ def dm_arg_set(names, sel, dm, vmid, config): print(" --enable_trusty \\", file=config) set_dm_pt(names, sel, vmid, config) - if uos_type != "PREEMPT-RT LINUX": - print(" $vm_name", file=config) - else: - print(" hard_rtvm", file=config) + print(" $vm_name", file=config) print("}", file=config)