Add correct kernel hash and add KERNEL_LIBRE to download.pl
authorRISCi_ATOM <bob@bobcall.me>
Sun, 1 Sep 2019 03:31:24 +0000 (23:31 -0400)
committerRISCi_ATOM <bob@bobcall.me>
Sun, 1 Sep 2019 03:31:24 +0000 (23:31 -0400)
include/kernel-version.mk
scripts/download.pl

index 96ce88fbcefcf33c85bf92315da197659b3574ba..7020862105829c3c2279bf60a4e9041129964d0f 100644 (file)
@@ -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)))))))
index 8ba0060be273de55e9a2ee0c56a3a54aaf298210..d6503673d4a628ac62d7a3e2d72596b664f3d6d5 100755 (executable)
@@ -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";