From: RISCi_ATOM Date: Sun, 1 Sep 2019 03:31:24 +0000 (-0400) Subject: Add correct kernel hash and add KERNEL_LIBRE to download.pl X-Git-Tag: v1.5.0-rc1~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3061e5a99b19ad9cab51213a068122b826063780;p=librecmc%2Flibrecmc.git Add correct kernel hash and add KERNEL_LIBRE to download.pl --- diff --git a/include/kernel-version.mk b/include/kernel-version.mk index 96ce88fbce..7020862105 100644 --- a/include/kernel-version.mk +++ b/include/kernel-version.mk @@ -6,9 +6,9 @@ ifdef CONFIG_TESTING_KERNEL KERNEL_PATCHVER:=$(KERNEL_TESTING_PATCHVER) endif -LINUX_VERSION-4.14 = .141 +LINUX_VERSION-4.14 = .140 -LINUX_KERNEL_HASH-4.14.141 = 0bb9f0812326ec4554de1bea02628840e03b6664b5abfd9d8510049e43203a17 +LINUX_KERNEL_HASH-4.14.140 = dd0113acab0acbe70b27f891d4f772ee405706db8082b60b9d21a06e7f1fa730 remove_uri_prefix=$(subst git://,,$(subst http://,,$(subst https://,,$(1)))) sanitize_uri=$(call qstrip,$(subst @,_,$(subst :,_,$(subst .,_,$(subst -,_,$(subst /,_,$(1))))))) diff --git a/scripts/download.pl b/scripts/download.pl index 8ba0060be2..d6503673d4 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -242,6 +242,17 @@ foreach my $mirror (@ARGV) { push @mirrors, "ftp://ftp.riken.jp/Linux/kernel.org/$dir"; push @mirrors, "ftp://www.mirrorservice.org/sites/ftp.kernel.org/pub/$dir"; } + } elsif ($mirror =~ /^\@KERNEL_LIBRE\/(.+)$/) { + my @extra = ( $1 ); + if ($filename =~ /linux-libre-\d+\.\d+(?:\.\d+)?-rc-gnu/) { + push @extra, "$extra[0]/testing"; + } elsif ($filename =~ /linux-libre-(\d+\.\d+(?:\.\d+)?)-gnu/) { + push @extra, "$extra[0]/v$1"; + } + foreach my $dir (@extra) { + push @mirrors, "https://linux-libre.fsfla.org/pub/linux-libre/releases/$dir"; + push @mirrors, "https://librecmc.org/pub/linux-libre/releases/$dir"; + } } elsif ($mirror =~ /^\@GNOME\/(.+)$/) { push @mirrors, "https://mirror.csclub.uwaterloo.ca/gnome/sources/$1"; push @mirrors, "http://ftp.acc.umu.se/pub/GNOME/sources/$1";