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>
This commit is contained in:
parent
a2430f1313
commit
2a647fa164
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue