config-tools: ignore the scenario and board field
Ignore the "scenario" and "board" field in <scenario>.xml: <acrn-config board="whl-ipc-i5" scenario="shared"> Tracked-On: #7345 Signed-off-by: Conghui <conghui.chen@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
c0fd2e9ce0
commit
a2e2640507
|
@ -209,9 +209,7 @@ $(HV_SCENARIO_XML):
|
|||
echo "Scenario XML is being fetched from $(abspath $(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=\"$(SCENARIO)\"#g" -i $(HV_SCENARIO_XML); \
|
||||
fi; \
|
||||
sed "s#<acrn-config.*#<acrn-config scenario=\"$(SCENARIO)\" >#g" -i $(HV_SCENARIO_XML); \
|
||||
else \
|
||||
echo "No pre-defined scenario available at $(SCENARIO_FILE)"; \
|
||||
echo "Try setting another predefined BOARD or SCENARIO or specifying a scenario XML file"; \
|
||||
|
|
Loading…
Reference in New Issue