From 1e78db8ce52d8d63a62e039b9903f0447142139a Mon Sep 17 00:00:00 2001 From: Francois Gaffie Date: Tue, 15 Oct 2013 11:17:58 +0200 Subject: Update xml generation scripts BZ: 99956 XML scripts does not support empty tuning file. This patches updates XML generation scripts to support empty tuning file. Change-Id: I2d3e11a950524c468c78e3b99cdebf3538b9e053 Signed-off-by: Francois Gaffie Reviewed-on: http://android.intel.com:8080/138519 Reviewed-by: Quintero, Jorge Reviewed-by: Centelles, Sylvain Reviewed-by: Rocard, KevinX Tested-by: Barthes, FabienX --- tools/xmlGenerator/PFWScriptGenerator.py | 4 ++-- tools/xmlGenerator/hostDomainGenerator.sh | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/xmlGenerator/PFWScriptGenerator.py b/tools/xmlGenerator/PFWScriptGenerator.py index ba3accf..17640d0 100755 --- a/tools/xmlGenerator/PFWScriptGenerator.py +++ b/tools/xmlGenerator/PFWScriptGenerator.py @@ -400,8 +400,8 @@ class Path (ElementWithInheritance) : return context.getPrefix() + \ self.PFWCommandParameter + " " + \ - self.getName() + " " + \ - self.option.getOption("value") + "\n" + self.getName() + " '" + \ + self.option.getOption("value") + "'\n" def Inheritance (self, context) : """check for path name inheritance""" diff --git a/tools/xmlGenerator/hostDomainGenerator.sh b/tools/xmlGenerator/hostDomainGenerator.sh index eeaf7a8..b67261b 100755 --- a/tools/xmlGenerator/hostDomainGenerator.sh +++ b/tools/xmlGenerator/hostDomainGenerator.sh @@ -252,8 +252,12 @@ PFWSendCommand="$remoteProcess $PFWHost $PFWSocket" $PFWSendCommand setTuningMode on -echo "Send the xml domain tunning file: $xmlDomainFilePath" -$PFWSendCommand setDomainsWithSettingsXML "$(cat $xmlDomainFilePath)" +# Send the xml domain tunning file +if test -s "$xmlDomainFilePath" +then + echo "Send the xml domain tunning file: $xmlDomainFilePath" + $PFWSendCommand setDomainsWithSettingsXML "$(cat $xmlDomainFilePath)" +fi # Send the extended domain description routing files converted to pfw commands m4 "$@" | -- cgit v1.1