[PATCH 2/3] binman: Flesh out the pkcs11-tool bintool docstring
Simon Glass
sjg at chromium.org
Wed Apr 22 01:11:17 CEST 2026
The Sphinx-generated bintools.rst currently produces an empty section
for this bintool, since its class docstring is only a single line and
so the body under the heading is blank.
Extend the docstring with a short description of what pkcs11-tool does
and how binman uses it, so the generated documentation has useful
content.
Suggested-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
Signed-off-by: Simon Glass <sjg at chromium.org>
---
tools/binman/btool/pkcs11_tool.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/tools/binman/btool/pkcs11_tool.py b/tools/binman/btool/pkcs11_tool.py
index 673c0ea0ac3..c4c49bf7de1 100644
--- a/tools/binman/btool/pkcs11_tool.py
+++ b/tools/binman/btool/pkcs11_tool.py
@@ -7,7 +7,15 @@ from binman import bintool
class Bintoolpkcs11_tool(bintool.Bintool):
- """pkcs11-tool -- support tool for managing pkcs#11 tokens"""
+ """pkcs11-tool -- support tool for managing pkcs#11 tokens
+
+ This bintool supports running `pkcs11-tool`, a utility from the OpenSC
+ project for managing objects stored in PKCS#11 tokens. Binman uses it to
+ import signing keys and certificates into a token so that FIT images or
+ capsules can be signed via the PKCS#11 interface.
+
+ See https://github.com/OpenSC/OpenSC/wiki for more details.
+ """
def __init__(self, name):
super().__init__('pkcs11-tool',
'PKCS #11 tokens managing tool',
--
2.43.0
More information about the U-Boot
mailing list