gooftool: Changes the argument name for project specific hwid
As hwid database is project specific instead of board specific now,
the program argument name for specifying which hwid database to use
should be changed from "--board" to "--project".
BUG=chromium:721582
TEST=None
Change-Id: I92aad8a2146a974260007f569c29f23aa4a01b68
Reviewed-on: https://chromium-review.googlesource.com/566797
Commit-Ready: Yong Hong <yhong@chromium.org>
Tested-by: Yong Hong <yhong@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
diff --git a/py/gooftool/commands.py b/py/gooftool/commands.py
index b7c6b9d..1d40a5f 100755
--- a/py/gooftool/commands.py
+++ b/py/gooftool/commands.py
@@ -64,9 +64,9 @@
if _global_gooftool is None:
with _gooftool_lock:
- board = getattr(options, 'board', None)
+ project = getattr(options, 'project', None)
hwdb_path = getattr(options, 'hwdb_path', None)
- _global_gooftool = Gooftool(hwid_version=3, board=board,
+ _global_gooftool = Gooftool(hwid_version=3, project=project,
hwdb_path=hwdb_path)
return _global_gooftool
@@ -114,9 +114,9 @@
print 'Wrote HWID: %r' % options.hwid
-_board_cmd_arg = CmdArg(
- '--board', metavar='BOARD',
- default=None, help='Board name to test.')
+_project_cmd_arg = CmdArg(
+ '--project', metavar='PROJECT',
+ default=None, help='Project name to test.')
_hwdb_path_cmd_arg = CmdArg(
'--hwdb_path', metavar='PATH',
@@ -491,7 +491,7 @@
help='Do not check write protection switch state.'),
_hwid_status_list_cmd_arg,
_hwdb_path_cmd_arg,
- _board_cmd_arg,
+ _project_cmd_arg,
_probe_results_cmd_arg,
_hwid_cmd_arg,
_rma_mode_cmd_arg,
@@ -681,7 +681,6 @@
_hwid_status_list_cmd_arg,
_upload_method_cmd_arg,
_add_file_cmd_arg,
- _board_cmd_arg,
_probe_results_cmd_arg,
_hwid_cmd_arg,
_rma_mode_cmd_arg,