mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-02 20:35:32 +00:00
In order to remove Kconfig from the build process, acrn-config shall transform XML configuration files to config.h and config.mk by itself. This patch adds XSLT scripts that do the trick. Unfortunately, the scenario XML file along is not sufficient to generate config.h and config.mk, though. In addition to resource allocation (i.e. allocating physical RAM for the hypervisor), the transformation also need to do the following: 1. Translate UART info in board XML into several configuration entries depending on the UART selected in the scenario XML. 2. Use the MAX_MSIX_TABLE_NUM value in the board XML if the scenario XML does not specify it. In order to use XSLT to transform both XMLs in one shot, a template is provided to create another XML that includes (using XInclude) both board and scenario XMLs as sub-nodes. It will be instantiated once the transformations are integrated in the following patch. v2: * Add `allocation.xml` to `unified.xml` to include the results from static allocation. * Use HV_RAM_START and HV_RAM_SIZE in allocation results if they are not explicitly specified in the scenario XML. Tracked-On: #5644 Signed-off-by: Junjie Mao <junjie.mao@intel.com> |
||
---|---|---|
.. | ||
acpi_gen | ||
board_config | ||
config_app | ||
hv_config | ||
kconfig | ||
launch_config | ||
library | ||
scenario_config | ||
static_allocators | ||
target | ||
xforms | ||
README | ||
xmls |
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.