diff options
author | Quentin Schulz | 2022-09-01 17:51:42 +0200 |
---|---|---|
committer | Simon Glass | 2022-09-01 11:36:36 -0600 |
commit | 9c9678632765678e607a88f0ebe7f5260ad6fdaa (patch) | |
tree | 2268bbecac824f6e6306e371c2190a29cf56d07e /tools | |
parent | 4508fb9a7784b691bc6807bb3f8b79d07a15fd26 (diff) |
binman: btool: futility: use Bintool.version
Bintool.version can now be passed the binary argument to return the
version text, so there's no need to override it in futility anymore.
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/binman/btool/futility.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tools/binman/btool/futility.py b/tools/binman/btool/futility.py index 8d00966a9d0..75a05c2ac66 100644 --- a/tools/binman/btool/futility.py +++ b/tools/binman/btool/futility.py @@ -69,7 +69,7 @@ class Bintoolfutility(bintool.Bintool): https://chromium.googlesource.com/chromiumos/platform/vboot/+/refs/heads/main/_vboot_reference/README """ def __init__(self, name): - super().__init__(name, 'Chromium OS firmware utility') + super().__init__(name, 'Chromium OS firmware utility', r'^(.*)$', 'version') def gbb_create(self, fname, sizes): """Create a new Google Binary Block @@ -165,14 +165,3 @@ class Bintoolfutility(bintool.Bintool): fname, tmpdir = self.fetch_from_drive( '1hdsInzsE4aJbmBeJ663kYgjOQyW1I-E0') return fname, tmpdir - - def version(self): - """Version handler for futility - - Returns: - str: Version string for futility - """ - out = self.run_cmd('version').strip() - if not out: - return super().version() - return out |