mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-07 07:56:56 +00:00
This patch adds the acpiparser.aml.builder module which provides methods to construct AML trees from scratch in Python. Similar to how parsers and binary generators are implemented, this module constructs most builder methods from the AML grammar defined in the acpiparser.aml.grammar module. AML objects whose grammar are not present in the grammar module require special treatment and their builders are implemented explicitly. The methods have the same name as the AML tree labels defined in the grammar. In addition, this module also provides the method `build_value` which converts plain integers, strings or interpreter values (which are defined in the datatypes module) to AML trees. With the builders, the `interpret_method_call` method in the ConcreteInterpreter is refined to build the (fake) MethodInvocation node using the builders and handle the actual parameters as well. Tracked-On: #6287 Signed-off-by: Junjie Mao <junjie.mao@intel.com> |
||
---|---|---|
.. | ||
acpi_gen | ||
acpi_template/template | ||
board_config | ||
board_inspector | ||
config_app | ||
data | ||
hv_config | ||
kconfig | ||
launch_config | ||
library | ||
scenario_config | ||
schema | ||
static_allocators | ||
xforms | ||
README |
folder structure Kconfig : Select working scenario and target board, configure ACRN hypervisor capabilities and features. target : Get target board information under native Linux environment and generate board_info XML. board_config : Parse board_info XML and scenario XML to generate board related configuration files under misc/acrn-config/xmls/board-xmls/ folder. scenario_config : Parse board_info XML and scenario XML to generate scenario based VM configuration files under misc/acrn-config/xmls/config-xmls/$(BOARD)/ folder. launch_config : Parse board_info XML, scenario XML and devicemodel param XML to generate launch script for post-launched vm under misc/acrn-config/xmls/config-xmls/$(BOARD)/ folder. library : The folder stores shared software modules or libs for acrn-config offline tool.