mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-11-24 18:05:22 +00:00
misc: configurator: Add entry "None" to HV console selector
Add an explicit "None" entry in HV console selector if user would like to disable debug console or there is no serial console available. Tracked-On: #7546 Signed-off-by: Calvin Zhang <calvinzhang.cool@gmail.com>
This commit is contained in:
committed by
acrnsi-robot
parent
579e5247fb
commit
17d8eaa7ae
@@ -53,15 +53,16 @@ class BusDevFunc(namedtuple(
|
||||
|
||||
def parse_hv_console(scenario_etree):
|
||||
"""
|
||||
There may be 3 types in the console item
|
||||
There may be 4 types in the console item
|
||||
1. BDF:(00:18.2) seri:/dev/ttyS2
|
||||
2. /dev/ttyS2
|
||||
3. ttyS2
|
||||
4. "None"
|
||||
"""
|
||||
ttys_n = ''
|
||||
ttys = common.get_node("//SERIAL_CONSOLE/text()", scenario_etree)
|
||||
|
||||
if not ttys or ttys == None:
|
||||
if not ttys or ttys == None or ttys == 'None':
|
||||
return ttys_n
|
||||
|
||||
if ttys and 'BDF' in ttys or '/dev' in ttys:
|
||||
|
||||
Reference in New Issue
Block a user