summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-08-31 10:49:00 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-09-05 21:07:19 -0700
commit35da86f58928bf3063b496d329e1903bdca09ecd (patch)
treee6ca9e95920279138deb43d1203b4394b4c20e6b
parent16426bf1667a223f3ef52f1129fd5fe2b91787ba (diff)
downloadvboot-35da86f58928bf3063b496d329e1903bdca09ecd.tar.gz
futility: Make help text for sign-rwsig accurate
This patch updates the help text for futility sign --type rwsig command. The change describes what FMAP regions are required. It also names each mode (data only, data+signature, key+data+signature) and explains how each mode is selected. BUG=b:65027647 BRANCH=none TEST=Run futility help sign rwsig Change-Id: Ib43f5396ce4f1319f4825ef85d412483bd92d18f Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/646377 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--futility/cmd_sign.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/futility/cmd_sign.c b/futility/cmd_sign.c
index 5b686342..8599c74c 100644
--- a/futility/cmd_sign.c
+++ b/futility/cmd_sign.c
@@ -479,16 +479,23 @@ static void print_help_rwsig(int argc, char *argv[])
"\n"
"This signs a %s.\n"
"\n"
+ "Data only mode\n"
+ "This mode requires OUTFILE.\n"
"The INFILE is a binary blob of arbitrary size. It is signed using the\n"
"private key and the vb21_signature blob emitted.\n"
"\n"
+ "Data + Signature mode\n"
"If no OUTFILE is specified, the INFILE should contain an existing\n"
"vb21_signature blob near its end. The data_size from that signature is\n"
"used to re-sign a portion of the INFILE, and the old signature blob is\n"
"replaced.\n"
- "Alternatively, if INFILE contains an FMAP, RW and signatures offsets\n"
- "are read from that table, and, if a public key is provided, the\n"
- "public key is replaced in the RO image.\n"
+ "\n"
+ "Key + Data + Signature mode\n"
+ "This mode also takes no output file.\n"
+ "If INFILE contains an FMAP, RW and signatures offsets are read from\n"
+ "FMAP. These regions must be named EC_RW and SIG_RW respectively.\n"
+ "If a public key is found in the region named KEY_RO, it will be replaced\n"
+ "in the RO image.\n"
"\n"
"Options:\n"
"\n"