Browse Source

Add correct kernel hash and add KERNEL_LIBRE to download.pl

RISCi_ATOM 4 years ago
parent
commit
3061e5a99b
2 changed files with 13 additions and 2 deletions
  1. 2 2
      include/kernel-version.mk
  2. 11 0
      scripts/download.pl

+ 2 - 2
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)))))))

+ 11 - 0
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";