futility: Change 'gbb_utility' to sub command 'gbb'.

'gbb_utility' is the command name before it has been merged to futility.
However, it's pretty long and redundant today if we have to type
'futility gbb_utility ...'. New features of futility are now implemented
as sub-commands (futility cmd) instead of symlinks (for example,
'create', 'show', 'sign', 'verify') so it seems reasonable to just
change gbb_utility to a sub-command style name 'gbb'.

Meanwhile, for backward compatibility, the 'gbb_utility' name is still
supported so symlinks will still work.

BRANCH=none
BUG=None
TEST=emerge vboot_reference; futility gbb

Change-Id: I4de59bcc564576420ab71157cb166fc8a42e85ad
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/538398
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Hung-Te Lin
2017-06-17 03:07:58 +08:00
committed by chrome-bot
parent 2d160adf72
commit c8d08ca313

View File

@@ -353,7 +353,7 @@ done_close:
return r; return r;
} }
static int do_gbb_utility(int argc, char *argv[]) static int do_gbb(int argc, char *argv[])
{ {
enum do_what_now { DO_GET, DO_SET, DO_CREATE } mode = DO_GET; enum do_what_now { DO_GET, DO_SET, DO_CREATE } mode = DO_GET;
char *infile = NULL; char *infile = NULL;
@@ -658,5 +658,7 @@ static int do_gbb_utility(int argc, char *argv[])
return !!errorcnt; return !!errorcnt;
} }
DECLARE_FUTIL_COMMAND(gbb_utility, do_gbb_utility, VBOOT_VERSION_ALL, DECLARE_FUTIL_COMMAND(gbb, do_gbb, VBOOT_VERSION_ALL,
"Manipulate the Google Binary Block (GBB)"); "Manipulate the Google Binary Block (GBB)");
DECLARE_FUTIL_COMMAND(gbb_utility, do_gbb, VBOOT_VERSION_ALL,
"Legacy name for `gbb` command");