mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 00:47:26 +00:00
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>
This commit is contained in:
parent
e440843448
commit
4508fb9a77
1 changed files with 1 additions and 10 deletions
|
@ -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
|
https://trustedfirmware-a.readthedocs.io/en/latest/getting_started/tools-build.html?highlight=fiptool#building-and-using-the-fip-tool
|
||||||
"""
|
"""
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
super().__init__(name, 'Manipulate ATF FIP files')
|
super().__init__(name, 'Manipulate ATF FIP files', r'^(.*)$', 'version')
|
||||||
|
|
||||||
def info(self, fname):
|
def info(self, fname):
|
||||||
"""Get info on a FIP image
|
"""Get info on a FIP image
|
||||||
|
@ -112,12 +112,3 @@ class Bintoolfiptool(bintool.Bintool):
|
||||||
'fiptool',
|
'fiptool',
|
||||||
'tools/fiptool/fiptool')
|
'tools/fiptool/fiptool')
|
||||||
return result
|
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()
|
|
||||||
|
|
Loading…
Reference in a new issue