diff options
| author | Wojciech Dubowik <[email protected]> | 2026-02-20 10:15:14 +0100 |
|---|---|---|
| committer | Simon Glass <[email protected]> | 2026-03-18 06:14:17 -0600 |
| commit | a251d46e68470706d0585711943e8d36cd432675 (patch) | |
| tree | 7030c1f87cb61963c7911984428aa38ce20ddc97 | |
| parent | 84432436bf564adc5f48ea81672ee8d5b374cb3d (diff) | |
binman: Add dump signature option to mkeficapsule
It will be used to capsule signature verification.
Signed-off-by: Wojciech Dubowik <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | tools/binman/btool/mkeficapsule.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/binman/btool/mkeficapsule.py b/tools/binman/btool/mkeficapsule.py index f2ac654db81..7638c941a8e 100644 --- a/tools/binman/btool/mkeficapsule.py +++ b/tools/binman/btool/mkeficapsule.py @@ -38,7 +38,8 @@ class Bintoolmkeficapsule(bintool.Bintool): def generate_capsule(self, image_index, image_guid, hardware_instance, payload, output_fname, priv_key, pub_key, - monotonic_count=0, version=0, oemflags=0): + monotonic_count=0, version=0, oemflags=0, + dump_sig=False): """Generate a capsule through commandline-provided parameters Args: @@ -53,6 +54,7 @@ class Bintoolmkeficapsule(bintool.Bintool): monotonic_count (int): Count used when signing an image version (int): Image version (Optional) oemflags (int): Optional 16 bit OEM flags + dump_sig (bool): Dump signature to a file (Optional). Default no. Returns: str: Tool output @@ -73,6 +75,8 @@ class Bintoolmkeficapsule(bintool.Bintool): f'--private-key={priv_key}', f'--certificate={pub_key}' ] + if dump_sig: + args += [f'--dump-sig'] args += [ payload, |
