From 8fd3907bf5658004d7e6ff2ecdd1efa9f26030e7 Mon Sep 17 00:00:00 2001 From: Ludovic Jozeau Date: Wed, 24 Jul 2024 16:12:45 +0200 Subject: [PATCH] bundle.bbclass: fix variable expansion of RAUC_META_* varflags Variables assigned to `RAUC_META_
[varflag]` are not expanded anymore. This is caused by `getVarFlags` not expanding variables by default, revert to using `getVarFlag` which does expand variables by default. Fixes: #335 Fixes: ffba61f2f79e ("bundle.bbclass: simplify varflag usage") Signed-off-by: Ludovic Jozeau Signed-off-by: Jan Luebbe --- classes-recipe/bundle.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes-recipe/bundle.bbclass b/classes-recipe/bundle.bbclass index 09692eb..856dffc 100644 --- a/classes-recipe/bundle.bbclass +++ b/classes-recipe/bundle.bbclass @@ -315,7 +315,8 @@ def write_manifest(d): for meta_section in (d.getVar('RAUC_META_SECTIONS') or "").split(): manifest.write("[meta.%s]\n" % meta_section) - for meta_key, meta_value in d.getVarFlags('RAUC_META_%s' % meta_section).items(): + for meta_key in d.getVarFlags('RAUC_META_%s' % meta_section): + meta_value = d.getVarFlag('RAUC_META_%s' % meta_section, meta_key) manifest.write("%s=%s\n" % (meta_key, meta_value)) manifest.write("\n");