Fix make configurator not picking up schema changes

Artificates left over from a previous make configurator build prevented
changes to a schema (.xsd) file from getting incorporated into a
subsequent make configurator build.

Tracked-on: #7461

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2022-05-11 13:21:28 -07:00 committed by acrnsi-robot
parent 8ffb0dee4d
commit 3a133d3138
2 changed files with 4 additions and 1 deletions

View File

@ -78,15 +78,17 @@ make configurator
Run following command in the 'acrn-hypervisor' directory.
```shell
cd misc/config_tools
cd misc\config_tools
python scenario_config/schema_slicer.py
python scenario_config/jsonschema/convert.py
xmllint --xinclude schema/datachecks.xsd > schema/allchecks.xsd
python -m build
del configurator/packages/configurator/thirdLib/acrn_config_tools-3.0-py3-none-any.whl
cd configurator
python packages/configurator/thirdLib/manager.py install
yarn
yarn build
```

View File

@ -209,6 +209,7 @@ def create_configurator_deb(build_dir):
add_cmd_list(cmd_list, 'python3 converter.py', scenario_config_path / "jsonschema")
add_cmd_list(cmd_list, 'bash -c "xmllint --xinclude schema/datachecks.xsd > schema/allchecks.xsd"', config_tools_path)
add_cmd_list(cmd_list, 'python3 -m build', config_tools_path)
add_cmd_list(cmd_list, 'bash -c "rm -f ./configurator/packages/configurator/thirdLib/acrn_config_tools-3.0-py3-none-any.whl"', config_tools_path)
add_cmd_list(cmd_list, 'python3 packages/configurator/thirdLib/manager.py install', configurator_path)
add_cmd_list(cmd_list, 'yarn', configurator_path)
add_cmd_list(cmd_list, 'yarn build', configurator_path)