Skip to contentSkip to conversation

mkimage: Improve documentation of algo-name parameter

PATCH Superseded Jan Kiszka 2 participants 2 messages Feb 3, 2022 – Feb 4, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 mkimage: Improve documentation of algo-name parameter

From: Jan Kiszka <[email protected]>

Addresses the feedback provided on 5902a397d029 which raced with the merge.

---
 doc/mkimage.1     | 2 +-
 tools/imagetool.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
doc/mkimage.1 +1 -1
index 0734bd36a11..fc84cca066b 100644
@@ -158,7 +158,7 @@ CONFIG_OF_CONTROL in U-Boot.
 .TP
 .BI "\-o [" "signing algorithm" "]"
 Specifies the algorithm to be used for signing a FIT image. The default is
-taken from the target signature nodes 'algo' properties.
+taken from the signature node's 'algo' property.
 
 .TP
 .BI "\-p [" "external position" "]"
tools/imagetool.h +2 -1
index a4105515d81..12f911600f9 100644
@@ -71,7 +71,8 @@ struct image_tool_params {
 	const char *keydest;	/* Destination .dtb for public key */
 	const char *keyfile;	/* Filename of private or public key */
 	const char *comment;	/* Comment to add to signature node */
-	const char *algo_name;	/* Algorithm name to use hashing/signing */
+	const char *algo_name;	/* Algorithm name to use for hashing/signing or
+				   NULL to use the one specified in the its */
 	int require_keys;	/* 1 to mark signing keys as 'required' */
 	int file_size;		/* Total size of output file */
 	int orig_file_size;	/* Original size for file before padding */
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Addresses the feedback provided on 5902a397d029 which raced with the merge.

---
 doc/mkimage.1     | 2 +-
 tools/imagetool.h | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

nit below

Quoted 18 lines
doc/mkimage.1 +1 -1
index 0734bd36a11..fc84cca066b 100644
@@ -158,7 +158,7 @@ CONFIG_OF_CONTROL in U-Boot.
 .TP
 .BI "\-o [" "signing algorithm" "]"
 Specifies the algorithm to be used for signing a FIT image. The default is
-taken from the target signature nodes 'algo' properties.
+taken from the signature node's 'algo' property.
 
 .TP
 .BI "\-p [" "external position" "]"
tools/imagetool.h +0 -0
index a4105515d81..12f911600f9 100644

tools/imagetool.h struct image_tool_params { · line 75

Quoted 6 lines
tools/imagetool.h +2 -1
@@ -71,7 +71,8 @@ struct image_tool_params {
        const char *keydest;    /* Destination .dtb for public key */
        const char *keyfile;    /* Filename of private or public key */
        const char *comment;    /* Comment to add to signature node */
-       const char *algo_name;  /* Algorithm name to use hashing/signing */
+       const char *algo_name;  /* Algorithm name to use for hashing/signing or
+                                  NULL to use the one specified in the its */

Best to move this to before the code line, since we try to avoid splitting one-line comments like this.

Quoted 5 lines
tools/imagetool.h +0 -1
        int require_keys;       /* 1 to mark signing keys as 'required' */
        int file_size;          /* Total size of output file */
        int orig_file_size;     /* Original size for file before padding */
--

2.34.1