acrn-hypervisor/misc/config_tools/scenario_config
Junjie Mao 06eacfa32d config_tools: walk through xs:alternative
The "xs:alternative" nodes in XML schema enables specifying different types
for the same node according to the contents of that node. A typical usage
of this construct in the schema of scenario XMLs is to specify different
types for a `vm` node depending on whether it is a pre-launched,
post-launched or service VMs, so that each VM contains only configurations
supported in that kind of VM.

This patch adds support of xs:alternative nodes to the schema transformer
so that default values can be populated appropriately after we add
xs:alternative nodes to the schema.

Tracked-On: #6690
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
2022-03-15 10:22:37 +08:00
..
default_populator.py config_tools: abstract schema walk as a separate class 2022-03-15 10:22:37 +08:00
README acrn-config: Reorg config tool folder 2021-01-27 11:08:28 +08:00
scenario_cfg_gen.py config tool: add load_order and redefine vm_type 2022-02-22 16:25:27 +08:00
scenario_item.py config_tools: merge board_private.rootfs and board_private.bootargs to os_config.bootargs 2022-01-19 13:14:49 +08:00
scenario_transformer.py config_tools: walk through xs:alternative 2022-03-15 10:22:37 +08:00
validator.py config_tools: abstract schema walk as a separate class 2022-03-15 10:22:37 +08:00

Please run scenario_cfg_gen.py to generate board related configuration files.

usage: python3 scenario_cfg_gen.py [h] --board <board_info_file> --scenario <scenario_info_file>
positional arguments:
  board_info_file  : file name of the board info XML
  scenario_info_file  : file name of the scenario info XML