mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-06 07:55:29 +00:00
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:
@@ -353,7 +353,7 @@ done_close:
|
||||
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;
|
||||
char *infile = NULL;
|
||||
@@ -658,5 +658,7 @@ static int do_gbb_utility(int argc, char *argv[])
|
||||
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)");
|
||||
DECLARE_FUTIL_COMMAND(gbb_utility, do_gbb, VBOOT_VERSION_ALL,
|
||||
"Legacy name for `gbb` command");
|
||||
|
||||
Reference in New Issue
Block a user