diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-10-31 23:46:01 +0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2019-04-22 06:56:01 +0000 |
commit | 9ade9881e50ce49acce81fbee337c680274b355e (patch) | |
tree | 87b087e6f484840405903f096b07f4ba8c517d98 | |
parent | fd28f0b4b5a41eb39cddf0304f9f8e633d05da23 (diff) | |
download | vboot-factory-scarlet-10211.B.tar.gz |
futility: updater: Add more legacy optionsfactory-scarlet-10211.B
To simplify the migration plan, we want to support the legacy arguments
used by FAFT and factory test "UpdateFirmware":
--noupdate_ec => --host_only
--noupdate_pd => --host_only
--nocheck_keys => --force
--update_{main,ec,pd} => ignore
BUG=chromium:882445,b:118509893,b:130401936,chromium:953993,b:130115628
TEST=make futil; tests/futility/run_test_scripts.sh $(pwd)/build/futility
BRANCH=None
Change-Id: I31652806085937fe5ca2f2facc7321021977cbb7
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1310253
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/1577340
-rw-r--r-- | futility/cmd_update.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/futility/cmd_update.c b/futility/cmd_update.c index 363cdd7a..9b19435a 100644 --- a/futility/cmd_update.c +++ b/futility/cmd_update.c @@ -14,6 +14,9 @@ #include "updater.h" #include "utility.h" +enum { + OPT_DUMMY = 0x100, +}; /* Command line options */ static struct option const long_opts[] = { @@ -42,6 +45,13 @@ static struct option const long_opts[] = { {"debug", 0, NULL, 'd'}, {"verbose", 0, NULL, 'v'}, {"help", 0, NULL, 'h'}, + /* TODO(hungte) Remove following deprecated options. */ + {"noupdate_ec", 0, NULL, 'H'}, /* --host_only */ + {"noupdate_pd", 0, NULL, 'H'}, /* --host_only */ + {"nocheck_keys", 0, NULL, 'F'}, /* --force */ + {"update_main", 0, NULL, OPT_DUMMY}, + {"update_ec", 0, NULL, OPT_DUMMY}, + {"update_pd", 0, NULL, OPT_DUMMY}, {NULL, 0, NULL, 0}, }; @@ -166,6 +176,8 @@ static int do_update(int argc, char *argv[]) args.verbosity++; break; + case OPT_DUMMY: + break; case 'h': print_help(argc, argv); return !!errorcnt; |