summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Boisnard <fredericx.boisnard@intel.com>2014-03-05 19:40:34 +0100
committerMattijs Korpershoek <mattijsx.korpershoek@intel.com>2014-06-23 18:13:54 +0200
commitc4dd2ae2f070333da2917a93e30b3557caa38760 (patch)
treef253b761cfb02edb122c42ffe6b89edb703eda0f
parent0d10a8a19f4aadde2d65892a08831a56cd5e53bc (diff)
downloadexternal_parameter-framework-c4dd2ae2f070333da2917a93e30b3557caa38760.zip
external_parameter-framework-c4dd2ae2f070333da2917a93e30b3557caa38760.tar.gz
external_parameter-framework-c4dd2ae2f070333da2917a93e30b3557caa38760.tar.bz2
Fix "Argument list too long" bug during XML generation
BZ: 177060 When the initial XML file for tuning is too big, the XML generation fails with the message: "Argument list too long". This is because the generation relies on the PFW command "setDomainsWithSettingsXML", which takes XML data as string argument. There is a limitation concerning the size of this string, leading to the current issue. This patch replaces the call to "setDomainsWithSettingsXML" by "importDomainsWithSettingsXML", which takes a file as argument instead of a string. There is no limitation on the file size. Change-Id: Ieb12e6ba1391545021cd3f1e867dee0d28425d19 Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com>
-rwxr-xr-xtools/xmlGenerator/hostDomainGenerator.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xmlGenerator/hostDomainGenerator.sh b/tools/xmlGenerator/hostDomainGenerator.sh
index a6e5f37..7ee2966 100755
--- a/tools/xmlGenerator/hostDomainGenerator.sh
+++ b/tools/xmlGenerator/hostDomainGenerator.sh
@@ -267,8 +267,8 @@ $PFWSendCommand setTuningMode on
# Send the xml domain tunning file
if test -s "$xmlDomainFilePath"
then
- echo "Send the xml domain tunning file: $xmlDomainFilePath"
- $PFWSendCommand setDomainsWithSettingsXML "$(cat $xmlDomainFilePath)"
+ echo "Import the xml domain tunning file: $(readlink -e $xmlDomainFilePath)"
+ $PFWSendCommand importDomainsWithSettingsXML "$(readlink -e $xmlDomainFilePath)"
fi
# Send the extended domain description routing files converted to pfw commands