From 74dc103d9e967deae96892b6ccceb025982791ce Mon Sep 17 00:00:00 2001 From: Kunhui-Li Date: Thu, 31 Mar 2022 18:57:56 +0800 Subject: [PATCH] config_tools: remove board and scenario attributes remove board and scenario attributes dependency for new configuration. To do: will remove board and scenario attributes in all scenario XML files and update the upgrader.py after the new configuration works. Tracked-On: #6690 Signed-off-by: Kunhui-Li Reviewed-by: Junjie Mao --- hypervisor/scripts/makefile/config.mk | 3 +++ .../board_config/board_cfg_gen.py | 6 ------ misc/config_tools/library/common.py | 11 ----------- misc/config_tools/library/launch_cfg_lib.py | 19 ------------------- .../scenario_config/scenario_cfg_gen.py | 6 ------ misc/config_tools/schema/config.xsd | 4 ++-- 6 files changed, 5 insertions(+), 44 deletions(-) diff --git a/hypervisor/scripts/makefile/config.mk b/hypervisor/scripts/makefile/config.mk index 24426b681..64c77fbfd 100644 --- a/hypervisor/scripts/makefile/config.mk +++ b/hypervisor/scripts/makefile/config.mk @@ -204,6 +204,9 @@ $(HV_SCENARIO_XML): echo "Scenario XML is being fetched from $(realpath $(SCENARIO_FILE))"; \ mkdir -p $(dir $(HV_SCENARIO_XML)); \ python3 $(HV_CONFIG_TOOL_DIR)/scenario_config/default_populator.py $(SCENARIO_FILE) $(HV_SCENARIO_XML); \ + if [ -z $$(xmllint --xpath 'string(//@scenario)' $(HV_SCENARIO_XML)) ]; then \ + sed "s# - - + +