mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-10-14 17:07:56 +00:00
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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user