config_tools: update board_inspector to copy RTCT file

1. Remove acpi_template/ehl-crb-b/PTCT and acpi_template/tgl-rvp/PTCT files.
2. Update board_inspector/legacy/acpi.py script to copy RTCT file.

Tracked-On: #6238
Signed-off-by: Kunhui-Li <kunhuix.li@intel.com>
This commit is contained in:
Kunhui-Li 2021-07-01 11:03:46 +08:00 committed by wenlingz
parent 28509b61c9
commit e6d447e462
3 changed files with 4 additions and 1 deletions

View File

@ -654,8 +654,11 @@ def generate_info(board_file):
with open(board_file, 'a+') as config:
gen_acpi_info(config)
# get the PTCT table from native environment
# get the PTCT/RTCT table from native environment
out_dir = os.path.dirname(board_file)
if os.path.isfile(SYS_PATH[1] + 'PTCT'):
shutil.copy(SYS_PATH[1] + 'PTCT', out_dir if out_dir != "" else "./")
print("PTCT table has been saved to {} successfully!".format(os.path.join(out_dir, 'PTCT')))
if os.path.isfile(SYS_PATH[1] + 'RTCT'):
shutil.copy(SYS_PATH[1] + 'RTCT', out_dir if out_dir != "" else "./")
print("RTCT table has been saved to {} successfully!".format(os.path.join(out_dir, 'RTCT')))