mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
acrn-config: set default package value for _S3 and _S5
Some BIOS does not support s3/s5, so there might be no _S3 or _S5 package in host ACPI table, previous code did not handle this, so the build would be failed with the generated board file. Set default s3/s5 package value to 0 for such case. 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:
@@ -91,6 +91,11 @@ def multi_info_parser(config, default_platform, msg_s, msg_e):
|
||||
multi_lines = board_cfg_lib.get_info(board_cfg_lib.BOARD_INFO_FILE, msg_s, msg_e)
|
||||
|
||||
for s_line in multi_lines:
|
||||
# parse the commend line
|
||||
if '/*' in s_line:
|
||||
print("{}".format(s_line), file=config)
|
||||
continue
|
||||
|
||||
if s_line.split()[1] in write_direct:
|
||||
if "PM1A_CNT" in s_line.split()[1] and int(s_line.split()[2].strip('UL'), 16) == 0:
|
||||
pm_ac_sz.pm1a_cnt_ac_sz = False
|
||||
|
||||
Reference in New Issue
Block a user