mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-08 18:14:53 +00:00
acrn-config: add support to parse board defconfig from configurations
Board defconfig depends on hypervisor configurations and vm configurations, add this to support to parse board defconfig from vm configuration. Tracked-On: #4634 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Victor Sun <victor.sun@intel.com> Acked-by: Terry Zou <terry.zou@intel.com>
This commit is contained in:
@@ -335,7 +335,7 @@ def os_kern_args_check(id_kern_args_dic, prime_item, item):
|
||||
ERR_LIST[key] = "VM os config kernel service os should be SOS_VM_BOOTARGS"
|
||||
|
||||
|
||||
def os_kern_console_check(id_kern_console_dic, prime_item, item):
|
||||
def os_kern_console_check(tty_console, prime_item, item):
|
||||
"""
|
||||
Check os kernel console
|
||||
:param prime_item: the prime item in xml file
|
||||
@@ -343,10 +343,9 @@ def os_kern_console_check(id_kern_console_dic, prime_item, item):
|
||||
:return: None
|
||||
"""
|
||||
|
||||
for id_key, kern_console in id_kern_console_dic.items():
|
||||
if kern_console and "ttyS" not in kern_console:
|
||||
key = "vm:id={},{},{}".format(id_key, prime_item, item)
|
||||
ERR_LIST[key] = "VM os config kernel console should be ttyS[0..3]"
|
||||
if tty_console and "ttyS" not in tty_console:
|
||||
key = "hv:{},{}".format(prime_item, item)
|
||||
ERR_LIST[key] = "VM os config kernel console should be ttyS[0..3]"
|
||||
|
||||
|
||||
def os_kern_load_addr_check(id_kern_load_addr_dic, prime_item, item):
|
||||
|
||||
Reference in New Issue
Block a user