From 3061e5a99b19ad9cab51213a068122b826063780 Mon Sep 17 00:00:00 2001 From: RISCi_ATOM Date: Sat, 31 Aug 2019 23:31:24 -0400 Subject: [PATCH] Add correct kernel hash and add KERNEL_LIBRE to download.pl --- include/kernel-version.mk | 4 ++-- scripts/download.pl | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) 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"; -- 2.25.1