]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: btool: gzip: fix packer name so that binary can be found
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Wed, 31 Aug 2022 15:55:14 +0000 (17:55 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Sep 2022 17:36:36 +0000 (11:36 -0600)
The binary is looked on the system by the suffix of the packer class.
This means binman was looking for btool_gzip on the system and not gzip.

Therefore, let's pass "gzip" as the name so that it can be found and
used.

Fixes: 0f369d79925a ("binman: Add gzip bintool")
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/binman/btool/btool_gzip.py

index 7bea300b5da96f158bfbe2bcb179d861a719ea17..70cbc19f04b41bd99fd324c9e585a23ac9a913ac 100644 (file)
@@ -27,5 +27,5 @@ class Bintoolbtool_gzip(bintool.BintoolPacker):
         man gzip
     """
     def __init__(self, name):
-        super().__init__(name, compress_args=[],
+        super().__init__("gzip", compress_args=[],
                          version_regex=r'gzip ([0-9.]+)')