]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
binman: Flesh out the softhsm2-util bintool docstring
authorSimon Glass <sjg@chromium.org>
Tue, 5 May 2026 18:12:54 +0000 (12:12 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 11 May 2026 18:05:10 +0000 (12:05 -0600)
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 softhsm2-util
does and how binman uses it, so the generated documentation has useful
content.

Suggested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/btool/softhsm2_util.py

index 869221d841df6826ab0422160349a6e0fdee4b7b..fd2ff2d6473eff0e3bac074b9a5842d773eeac1e 100644 (file)
@@ -7,7 +7,17 @@ from binman import bintool
 
 
 class Bintoolsofthsm2_util(bintool.Bintool):
-    """SoftHSMv2 -- support tool for libsofthsm2"""
+    """SoftHSMv2 -- support tool for libsofthsm2
+
+    This bintool wraps the `softhsm2-util` command shipped with SoftHSMv2 (a
+    software implementation of a PKCS#11 token). Binman uses this wrapper only
+    to check that softhsm2-util is installed (and to fetch it if missing); any
+    actual token initialisation or key import for signing FIT images or
+    capsules is done outside binman, typically via mkimage and the OpenSSL
+    PKCS#11 engine.
+
+    See https://www.opendnssec.org/softhsm/ for more details.
+    """
     def __init__(self, name):
         super().__init__('softhsm2-util',
                          'SoftHSMv2 support tool for libsofthsm2',