Skip to content

Commit

Permalink
bundle.bbclass: fix variable expansion of RAUC_META_* varflags
Browse files Browse the repository at this point in the history
Variables assigned to `RAUC_META_<section>[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: ffba61f ("bundle.bbclass: simplify varflag usage")
Signed-off-by: Ludovic Jozeau <ludovic.jozeau@scle.fr>
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
(cherry picked from commit 792b1cc)
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
  • Loading branch information
FederAndInk authored and jluebbe committed Jul 25, 2024
1 parent e88d958 commit f4d80f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes-recipe/bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,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");

Expand Down

0 comments on commit f4d80f9

Please sign in to comment.