acrn-config: fix the issue of generating the vuart with incorrect name

When generate the launch scripts, the pm_by_vuart setting of pm_notify_channel
in launch setting should be according to the config of SOS vuart1.

Tracked-On: #5154

Signed-off-by: Shixiong Zhang <shixiongx.zhang@intel.com>
This commit is contained in:
Shixiong Zhang
2020-09-14 02:17:56 -04:00
committed by wenlingz
parent 0660ab5a7b
commit fdbdf1aa5f
2 changed files with 3 additions and 2 deletions

View File

@@ -587,7 +587,8 @@ def dm_arg_set(names, sel, virt_io, dm, vmid, config):
err_key = "uos:id={}:poweroff_channel".format(vmid)
launch_cfg_lib.ERR_LIST[err_key] = "vuart1 of VM{} in scenario file should select 'SOS_COM2_BASE'".format(sos_vmid + vmid)
return
print(" {} \\".format(launch_cfg_lib.PM_CHANNEL_DIC[pm_key]), file=config)
scenario_cfg_lib.get_sos_vuart_settings()
print(" {} \\".format(launch_cfg_lib.PM_CHANNEL_DIC[pm_key] + scenario_cfg_lib.SOS_UART1_VALID_NUM), file=config)
# set logger_setting for all VMs
print(" $logger_setting \\", file=config)