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 8fd3907)
Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
  • Loading branch information
FederAndInk authored and ejoerns committed Sep 9, 2024
1 parent 87c1cc2 commit dcbb871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,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 dcbb871

Please sign in to comment.