aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2022-09-01 17:51:41 +0200
committerSimon Glass <sjg@chromium.org>2022-09-01 11:36:36 -0600
commit4508fb9a7784b691bc6807bb3f8b79d07a15fd26 (patch)
tree315a36e03ae6c5792640ffa02899abcc64b939a4 /tools
parente440843448d27f2cc5a6446decd1bcbaae3b1533 (diff)
downloadu-boot-4508fb9a7784b691bc6807bb3f8b79d07a15fd26.zip
u-boot-4508fb9a7784b691bc6807bb3f8b79d07a15fd26.tar.gz
u-boot-4508fb9a7784b691bc6807bb3f8b79d07a15fd26.tar.bz2
binman: btool: fiptool: 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 fiptool 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/fiptool.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/binman/btool/fiptool.py b/tools/binman/btool/fiptool.py
index c6d71ce..c80f827 100644
--- a/tools/binman/btool/fiptool.py
+++ b/tools/binman/btool/fiptool.py
@@ -49,7 +49,7 @@ class Bintoolfiptool(bintool.Bintool):
https://trustedfirmware-a.readthedocs.io/en/latest/getting_started/tools-build.html?highlight=fiptool#building-and-using-the-fip-tool
"""
def __init__(self, name):
- super().__init__(name, 'Manipulate ATF FIP files')
+ super().__init__(name, 'Manipulate ATF FIP files', r'^(.*)$', 'version')
def info(self, fname):
"""Get info on a FIP image
@@ -112,12 +112,3 @@ class Bintoolfiptool(bintool.Bintool):
'fiptool',
'tools/fiptool/fiptool')
return result
-
- def version(self):
- """Version handler for fiptool
-
- Returns:
- str: Version number of fiptool
- """
- out = self.run_cmd('version').strip()
- return out or super().version()