Browse Source

support/scripts/gen-bootlin-toolchains: tarballs are now xz-compressed

As of the 2024.05 toolchain release, the toolchain tarballs are now
xz-compressed instead of bz2-compressed. Since this script is only
meant to update to the latest toolchains, we don't really bother
supporting the older toolchains that are bz2-compressed, and we simply
assume the tarballs are xz-compressed.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Thomas Petazzoni 11 tháng trước cách đây
mục cha
commit
fdd9b3e24b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      support/scripts/gen-bootlin-toolchains

+ 2 - 2
support/scripts/gen-bootlin-toolchains

@@ -293,7 +293,7 @@ class Toolchain:
     @property
     def tarball_url(self):
         return os.path.join(BASE_URL, self.arch, "tarballs",
-                            self.fname_prefix + ".tar.bz2")
+                            self.fname_prefix + ".tar.xz")
 
     @property
     def hash_url(self):
@@ -416,7 +416,7 @@ class Toolchain:
     def gen_mk(self, f):
         f.write("ifeq ($(%s),y)\n" % self.option_name)
         f.write("TOOLCHAIN_EXTERNAL_BOOTLIN_VERSION = %s\n" % self.version)
-        f.write("TOOLCHAIN_EXTERNAL_BOOTLIN_SOURCE = %s--%s--%s-$(TOOLCHAIN_EXTERNAL_BOOTLIN_VERSION).tar.bz2\n" %
+        f.write("TOOLCHAIN_EXTERNAL_BOOTLIN_SOURCE = %s--%s--%s-$(TOOLCHAIN_EXTERNAL_BOOTLIN_VERSION).tar.xz\n" %
                 (self.arch, self.libc, self.variant))
         f.write("TOOLCHAIN_EXTERNAL_BOOTLIN_SITE = %s\n" %
                 os.path.join(BASE_URL, self.arch, "tarballs"))