diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-01-05 12:16:27 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-05 03:14:37 -0800 |
commit | 9de2d245cf0168131ddc8fda284e8ee169012fa3 (patch) | |
tree | ce282ec71090d46951a077d7f26bbdcb3be3c426 /board/soraka/board.c | |
parent | cfc69f6fb868b802a6033580ffe0cf73c092aca8 (diff) | |
download | chrome-ec-9de2d245cf0168131ddc8fda284e8ee169012fa3.tar.gz |
gsctool: Add option '--any' to auto-detect -s/-t availability.
For partners and developers, it's usually better to have a single simple
instruction to invoke commands. Currently gsctool needs either -s (if
/dev/tpm is not locked) or -t (if trunksd is running) and partners have
to either try both commands (-s or -t) or read the error messages and
try to figure out which option to use.
For example, see the extra logic in CL:831787.
Instead of putting the check everywhere in scripting, it seems easier
and more convenient to have a simple switch - "--any (-a)" that
automatically selects between -s and -t.
BUG=b:70184153
TEST=gsctool -f -a; stop trunksd; gsctool -f -a
Change-Id: Ie1590b0b8fef882178465ceee64a7150eda6b0dd
Reviewed-on: https://chromium-review.googlesource.com/851612
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'board/soraka/board.c')
0 files changed, 0 insertions, 0 deletions