mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-26 07:21:37 +00:00
acrn-config: set S3/S5 to default value while BIOS not support them
If S3/S5 are not support by BIOS in some platform, will set them to 0 as default. 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:
parent
037e7a4a2c
commit
658dccfbe3
@ -90,6 +90,12 @@ def multi_info_parser(config, default_platform, msg_s, msg_e):
|
|||||||
pm_ac_sz = OverridAccessSize()
|
pm_ac_sz = OverridAccessSize()
|
||||||
multi_lines = board_cfg_lib.get_info(board_cfg_lib.BOARD_INFO_FILE, msg_s, msg_e)
|
multi_lines = board_cfg_lib.get_info(board_cfg_lib.BOARD_INFO_FILE, msg_s, msg_e)
|
||||||
|
|
||||||
|
# S3/S5 not supported by BIOS
|
||||||
|
sx_name = msg_s.split('_')[0].strip('<')
|
||||||
|
if not multi_lines and sx_name in ("S3", "S5"):
|
||||||
|
print("/* {} is not supported by BIOS */".format(sx_name), file=config)
|
||||||
|
return
|
||||||
|
|
||||||
for s_line in multi_lines:
|
for s_line in multi_lines:
|
||||||
# parse the commend line
|
# parse the commend line
|
||||||
if '/*' in s_line:
|
if '/*' in s_line:
|
||||||
|
Loading…
Reference in New Issue
Block a user