mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-09 04:39:34 +00:00
acrn-config: enhance the target config
1. add misc.py to get systemd ram and root device 2. add more specify comments for arguments of functions v1-v2: typo: Parser -> Parse some grammar check v2-v3: add the message for Cx state Tracked-On: #3602 Signed-off-by: Wei Liu <weix.w.liu@intel.com> Acked-by: Terry Zou <terry.zou@intel.com> Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
@@ -12,9 +12,11 @@ CMDS = {
|
||||
|
||||
|
||||
def generate_info(board_info):
|
||||
"""Get bios and base board information"""
|
||||
"""Get bios and base board information
|
||||
:param board_info: this is the file which stores the hardware board information
|
||||
"""
|
||||
with open(board_info, 'a+') as config:
|
||||
parser_lib.dump_excute(CMDS['BIOS_INFO'], 'BIOS_INFO', config)
|
||||
parser_lib.dump_execute(CMDS['BIOS_INFO'], 'BIOS_INFO', config)
|
||||
print("", file=config)
|
||||
parser_lib.dump_excute(CMDS['BASE_BOARD_INFO'], 'BASE_BOARD_INFO', config)
|
||||
parser_lib.dump_execute(CMDS['BASE_BOARD_INFO'], 'BASE_BOARD_INFO', config)
|
||||
print("", file=config)
|
||||
|
Reference in New Issue
Block a user