summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2017-06-17 03:07:58 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-06-20 11:30:47 -0700
commitc8d08ca31313d9ef5f85d0614f00eb3e4494aa71 (patch)
tree43ce9063bfbc49102320c6825b5809ff432d5fbb
parent2d160adf72cf5425c9142b602206f0ac2a675055 (diff)
downloadvboot-c8d08ca31313d9ef5f85d0614f00eb3e4494aa71.tar.gz
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>
-rw-r--r--futility/cmd_gbb_utility.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/futility/cmd_gbb_utility.c b/futility/cmd_gbb_utility.c
index f75cceb0..796eca7a 100644
--- a/futility/cmd_gbb_utility.c
+++ b/futility/cmd_gbb_utility.c
@@ -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");