config_tools/target: generate Software SRAM related info

This patch parsees physical RTCT entries and dump information about pseudo
RAM into the board XML files. A macro named PRE_RTVM_SW_SRAM_BASE_GPA is
added to the generated misc_cfg.h according to recent design changes.

This patch still writes the board XML file manually, following the
convention of the current framework. Using XML-based approach requires a
complete refinement of the current generation process as the root
`acrn-config` node has its own text among adjacent children.

Tracked-On: #5649
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
Junjie Mao
2021-01-27 13:02:26 +08:00
committed by wenlingz
parent ba02583f2d
commit daf495bfc8
4 changed files with 86 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import acpi
import clos
import misc
import parser_lib
import rtct
OUTPUT = "./out/"
PY_CACHE = "__pycache__"
@@ -134,6 +135,9 @@ if __name__ == '__main__':
# Generate misc info
misc.generate_info(BOARD_INFO)
# Generate pseudo RAM info
rtct.generate_info(BOARD_INFO)
with open(BOARD_INFO, 'a+') as f:
print("</acrn-config>", file=f)