Skip to content

Commit

Permalink
classes: bundle: add RAUC_MANIFEST_EXTRA_LINES for custom manifest co…
Browse files Browse the repository at this point in the history
…ntent

Note that this content must still be valid manifest input since
otherwise RAUC will reject the manifest during parsing.

Signed-off-by: Enrico Jorns <[email protected]>
  • Loading branch information
ejoerns committed Jun 15, 2023
1 parent d7fb3b1 commit 2b1eeae
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions classes-recipe/bundle.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@
# RAUC_META_mydata[release-notes] = "a few notes here"
#
# RAUC_META_foo[bar] = "baz"
#
# Adding any sort of additional lines to the manifest can be done with the
# RAUC_MANIFEST_EXTRA_LINES variable (using '\n' to indicate newlines):
#
# RAUC_MANIFEST_EXTRA_LINES = "[section]\nkey=value\n"

LICENSE ?= "MIT"

Expand Down Expand Up @@ -327,6 +332,8 @@ def write_manifest(d):
manifest.write("%s=%s\n" % (meta_key, meta_value))
manifest.write("\n");

manifest.write((d.getVar('RAUC_MANIFEST_EXTRA_LINES') or "").replace(r'\n', '\n'))

manifest.close()

def try_searchpath(file, d):
Expand Down

0 comments on commit 2b1eeae

Please sign in to comment.