mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 10:04:42 +00:00
acrn-config: unify get_vuart_info_id api in config tool
1. unify get_vuart_info_id/get_vuart_id api in board/scenario/launch config tool. 2. if vm use 'vuart1(tty)' method to power off, make sure this vm have select the vuart1 'SOS_COM2_BASE'. Tracked-On: #3854 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -14,17 +14,11 @@ MISC_CFG_END = """#endif /* MISC_CFG_H */"""
|
||||
|
||||
class Vuart:
|
||||
|
||||
t_vm_id = []
|
||||
t_vuart_id = []
|
||||
v_type = []
|
||||
v_base = []
|
||||
v_irq = []
|
||||
|
||||
def style_check_1(self):
|
||||
self.v_irq = []
|
||||
|
||||
def style_check_2(self):
|
||||
self.v_irq = []
|
||||
t_vm_id = {}
|
||||
t_vuart_id = {}
|
||||
v_type = {}
|
||||
v_base = {}
|
||||
v_irq = {}
|
||||
|
||||
|
||||
def sos_bootarg_diff(sos_cmdlines, config):
|
||||
@@ -159,7 +153,6 @@ def generate_file(config):
|
||||
print("#define SOS_COM2_BASE\t\t{}U".format(vuart1_port_base), file=config)
|
||||
print("#define SOS_COM2_IRQ\t\t{}U".format(vuart1_irq), file=config)
|
||||
|
||||
|
||||
# sos boot command line
|
||||
print("", file=config)
|
||||
if "SOS_VM" in vm_types:
|
||||
|
||||
Reference in New Issue
Block a user