mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-17 12:51:12 +00:00
Many of the license and Intel copyright headers include the "All rights reserved" string. It is not relevant in the context of the BSD-3-Clause license that the code is released under. This patch removes those strings throughout the code (hypervisor, devicemodel and misc). Tracked-On: #7254 Signed-off-by: Geoffroy Van Cutsem <geoffroy.vancutsem@intel.com>
23 lines
622 B
Python
23 lines
622 B
Python
# Copyright (C) 2019 Intel Corporation.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
import parser_lib
|
|
|
|
CMDS = {
|
|
'BIOS_INFO':"dmidecode -t 0",
|
|
'BASE_BOARD_INFO':"dmidecode -t 2",
|
|
}
|
|
|
|
|
|
def generate_info(board_info):
|
|
"""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_execute(CMDS['BIOS_INFO'], 'BIOS_INFO', config)
|
|
print("", file=config)
|
|
parser_lib.dump_execute(CMDS['BASE_BOARD_INFO'], 'BASE_BOARD_INFO', config)
|
|
print("", file=config)
|