Skip to content

Commit 2a647fa

Browse files
Wei Liuwenlingz
authored andcommitted
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 <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
1 parent a2430f1 commit 2a647fa

File tree

1 file changed

+3
-6
lines changed
  • misc/acrn-config/launch_config

1 file changed

+3
-6
lines changed

misc/acrn-config/launch_config/com.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def tap_uos_net(names, vmid, config):
3535
print("mac_seed=${mac:9:8}-${vm_name}", file=config)
3636
print("", file=config)
3737

38-
if uos_type in ("VXWORKS", "ZEPHYR", "WINDOWS"):
38+
if uos_type in ("VXWORKS", "ZEPHYR", "WINDOWS", "PREEMPT-RT LINUX"):
3939
print("vm_name={}_vm$1".format(vm_name), file=config)
4040

4141
if uos_type in ("CLEARLINUX", "ANDROID", "ALIOS"):
@@ -289,7 +289,7 @@ def uos_launch(names, args, vmid, config):
289289
if uos_type == "VXWORKS":
290290
print("launch_{} 1".format(launch_uos), file=config)
291291
if uos_type == "PREEMPT-RT LINUX":
292-
print("launch_{}".format(launch_uos), file=config)
292+
print("launch_{} 1".format(launch_uos), file=config)
293293
if uos_type == "WINDOWS":
294294
print('launch_{} 1 "{}"'.format(launch_uos, gvt_args), file=config)
295295
if uos_type == "ZEPHYR":
@@ -513,10 +513,7 @@ def dm_arg_set(names, sel, dm, vmid, config):
513513
print(" --enable_trusty \\", file=config)
514514

515515
set_dm_pt(names, sel, vmid, config)
516-
if uos_type != "PREEMPT-RT LINUX":
517-
print(" $vm_name", file=config)
518-
else:
519-
print(" hard_rtvm", file=config)
516+
print(" $vm_name", file=config)
520517
print("}", file=config)
521518

522519

0 commit comments

Comments
 (0)