]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
ccmake.bbclass: Fix up un-escaped quotes in output formatting
authorNathan Rossi <nathan@nathanrossi.com>
Thu, 11 Apr 2019 04:03:52 +0000 (04:03 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Apr 2019 20:19:27 +0000 (21:19 +0100)
The quotes should be generated in the output to match the expected cmake
syntax for setting cache variables.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/ccmake.bbclass

index 4114daa61b41a40a31ad3a9e8c6dd6622666363b..df5134a108a19375e80e567eaf82f9f04a481874 100644 (file)
@@ -81,7 +81,7 @@ python do_ccmake_diffconfig() {
 
                 with open(d.expand("${WORKDIR}/site-file.cmake"), "w") as f:
                     for k, kt, v in added:
-                        f.write("SET({0} \"{1}\" CACHE {2} "")\n".format(k, v, kt))
+                        f.write("SET({0} \"{1}\" CACHE {2} \"\")\n".format(k, v, kt))
                 bb.plain("Configuration cmake fragment written to: {0}".format(d.expand("${WORKDIR}/site-file.cmake")))
 
                 # restore the original config