mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-01 08:56:55 +00:00
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 <kunhuix.li@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
@@ -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#<acrn-config#<acrn-config scenario=\"$(subst .xml,,$(notdir $(SCENARIO_FILE)))\"#g" -i $(HV_SCENARIO_XML); \
|
||||
fi; \
|
||||
else \
|
||||
echo "No pre-defined scenario available at $(SCENARIO_FILE)"; \
|
||||
echo "Try setting another predefined BOARD or SCENARIO or specifying a scenario XML file"; \
|
||||
|
Reference in New Issue
Block a user