summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-12 13:49:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-07-13 23:28:31 +0100
commitebb0f1e390814a2ccd647558cca7ba22037cf373 (patch)
treeade72f4d34c732f3f1825b6504ac618c2081c7be /meta
parenta5de8f412c5bd5ddfc9b28533f1517da50b31f2c (diff)
downloadpoky-ebb0f1e390814a2ccd647558cca7ba22037cf373.tar.gz
meson: Fix native meson config
When the optimization flags were reduced to a single option, a different and clearly untested codepath was used where the output was unquoted. This caused errors when testing meson in the SDK. Use repr() in the single item case as per the multiple item case to correctly quote the output and fix build failures. (From OE-Core rev: 7c2b573e6cbe518f54ea5c3539fc91ed63b80ebf) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/meson/meson_1.4.0.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/meson/meson_1.4.0.bb b/meta/recipes-devtools/meson/meson_1.4.0.bb
index 5db100ff1c..a0c2ee633a 100644
--- a/meta/recipes-devtools/meson/meson_1.4.0.bb
+++ b/meta/recipes-devtools/meson/meson_1.4.0.bb
@@ -47,7 +47,7 @@ inherit meson-routines
47# them. 47# them.
48def var_list2str(var, d): 48def var_list2str(var, d):
49 items = d.getVar(var).split() 49 items = d.getVar(var).split()
50 return items[0] if len(items) == 1 else ', '.join(repr(s) for s in items) 50 return repr(items[0]) if len(items) == 1 else ', '.join(repr(s) for s in items)
51 51
52def generate_native_link_template(d): 52def generate_native_link_template(d):
53 val = ['-L@{OECORE_NATIVE_SYSROOT}${libdir_native}', 53 val = ['-L@{OECORE_NATIVE_SYSROOT}${libdir_native}',