Add fast firmware check in verify_components test.
BUG=chrome-os-partner:19763
TEST=Manually on my DUT.
Change-Id: I3f9677a8c87ad9c62d9f3cca560a6f1652c8fd04
Reviewed-on: https://gerrit.chromium.org/gerrit/58640
Commit-Queue: Ricky Liang <jcliang@chromium.org>
Reviewed-by: Ricky Liang <jcliang@chromium.org>
Tested-by: Ricky Liang <jcliang@chromium.org>
diff --git a/py/gooftool/gooftool.py b/py/gooftool/gooftool.py
index 53d9b8e..5c5637d 100755
--- a/py/gooftool/gooftool.py
+++ b/py/gooftool/gooftool.py
@@ -281,6 +281,9 @@
@Command('probe',
CmdArg('--comps', nargs='*',
help='List of keys from the component_db registry.'),
+ CmdArg('--fast_fw_probe', action='store_true',
+ help='Do a fast probe for EC and main firmware versions only. '
+ 'This implies --no_vol and --no_ic.'),
CmdArg('--no_vol', action='store_true',
help='Do not probe volatile data.'),
CmdArg('--no_ic', action='store_true',
@@ -291,6 +294,7 @@
"""Print yaml-formatted breakdown of probed device properties."""
print GetGooftool(options).Probe(
target_comp_classes=options.comps,
+ fast_fw_probe=options.fast_fw_probe,
probe_volatile=not options.no_vol,
probe_initial_config=not options.no_ic,
probe_vpd=options.include_vpd).Encode()