diff options
author | Francois Gaffie <francois.gaffie@intel.com> | 2013-10-15 11:17:58 +0200 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-12 17:04:15 +0100 |
commit | 1e78db8ce52d8d63a62e039b9903f0447142139a (patch) | |
tree | 66b5c7b49ae46411216c6104bfdad2eaeb940121 /tools | |
parent | a0c3b8a42e473fa96ec469c2e691a919f31df26d (diff) | |
download | external_parameter-framework-1e78db8ce52d8d63a62e039b9903f0447142139a.zip external_parameter-framework-1e78db8ce52d8d63a62e039b9903f0447142139a.tar.gz external_parameter-framework-1e78db8ce52d8d63a62e039b9903f0447142139a.tar.bz2 |
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 <francois.gaffie@intel.com>
Reviewed-on: http://android.intel.com:8080/138519
Reviewed-by: Quintero, Jorge <jorge.quintero@intel.com>
Reviewed-by: Centelles, Sylvain <sylvain.centelles@intel.com>
Reviewed-by: Rocard, KevinX <kevinx.rocard@intel.com>
Tested-by: Barthes, FabienX <fabienx.barthes@intel.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/xmlGenerator/PFWScriptGenerator.py | 4 | ||||
-rwxr-xr-x | tools/xmlGenerator/hostDomainGenerator.sh | 8 |
2 files changed, 8 insertions, 4 deletions
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 "$@" | |