diff mbox series

[next,1/2] support/scripts/gen-bootlin-toolchains: tarballs are now xz-compressed

Message ID 20240818214305.1051667-2-thomas.petazzoni@bootlin.com
State Accepted
Headers show
Series Update to Bootlin toolchains 2024.05 | expand

Commit Message

Thomas Petazzoni Aug. 18, 2024, 9:43 p.m. UTC
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>
---
 support/scripts/gen-bootlin-toolchains | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/support/scripts/gen-bootlin-toolchains b/support/scripts/gen-bootlin-toolchains
index 4344221213..ef034058e1 100755
--- a/support/scripts/gen-bootlin-toolchains
+++ b/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"))