From 2b1eeae95bdcac76fb04221ab77dd0ca5c41629c Mon Sep 17 00:00:00 2001 From: Enrico Jorns Date: Tue, 6 Jun 2023 12:40:42 +0200 Subject: [PATCH] classes: bundle: add RAUC_MANIFEST_EXTRA_LINES for custom manifest content Note that this content must still be valid manifest input since otherwise RAUC will reject the manifest during parsing. Signed-off-by: Enrico Jorns --- classes-recipe/bundle.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/classes-recipe/bundle.bbclass b/classes-recipe/bundle.bbclass index 056a0410..17509f66 100644 --- a/classes-recipe/bundle.bbclass +++ b/classes-recipe/bundle.bbclass @@ -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" @@ -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):