From fdd9b3e24b910bdc5fb37daa01c9b0e0f3c5b54d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sun, 18 Aug 2024 23:43:03 +0200 Subject: [PATCH] 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 Signed-off-by: Yann E. MORIN --- support/scripts/gen-bootlin-toolchains | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"))