mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-02 00:08:43 +00:00
misc: add processing for Console vUART is None
The current code assume there was one Console vUART all the time, and there is an issue when the Console vUART is None. This patch add the case of "None" and add assert to check no serial console config. Tracked-On: #6690 Signed-off-by: Chenli Wei chenli.wei@intel.com
This commit is contained in:
parent
181ab6afea
commit
ddefcccb26
@ -43,4 +43,10 @@
|
||||
</xs:annotation>
|
||||
</xs:assert>
|
||||
|
||||
<xs:assert test="not (//BUILD_TYPE = 'debug' and //SERIAL_CONSOLE = 'None')">
|
||||
<xs:annotation acrn:severity="error" acrn:report-on="//BUILD_TYPE">
|
||||
<xs:documentation>You can't use debug Build type when there is no serial console config</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:assert>
|
||||
|
||||
</xs:schema>
|
||||
|
@ -43,6 +43,8 @@ def get_console_vuart_port(scenario_etree, vm_name):
|
||||
port = "0x3E8U"
|
||||
elif port == "COM Port 4":
|
||||
port = "0x2E8U"
|
||||
else:
|
||||
port = "0x0U"
|
||||
|
||||
return port
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user