Changed kernel download source to pull from linux-libre kernel servers or libreCMC...
authornynex <nynex>
Tue, 28 Jul 2015 18:30:03 +0000 (18:30 +0000)
committernynex <nynex>
Tue, 28 Jul 2015 18:30:03 +0000 (18:30 +0000)
trunk/include/kernel.mk
trunk/scripts/download.pl

index 69cbe962ed82b409ef7fb2278b01072c0dd3362d..eb4f35eb42de40c23f53919ff0a1c5e7fa49c691 100644 (file)
@@ -52,7 +52,7 @@ else
   LINUX_SOURCE:=linux-libre-$(LINUX_VERSION)-gnu.tar.xz
   TESTING:=$(if $(findstring -rc,$(LINUX_VERSION)),/testing,)
   ifeq ($(call qstrip,$(CONFIG_EXTERNAL_KERNEL_TREE))$(call qstrip,$(CONFIG_KERNEL_GIT_CLONE_URI)),)
-      LINUX_SITE:=@KERNEL/linux/kernel/v$(word 1,$(subst ., ,$(KERNEL_BASE))).x$(TESTING)
+      LINUX_SITE:=@KERNEL/$(LINUX_VERSION)-gnu$(TESTING)
   endif
 
   ifneq ($(TARGET_BUILD),1)
index 9c8d2cbf806e162afefe3ac76e687783701f0e00..62e5797741f4337c8a8367a17b447dd23f6ec62d 100755 (executable)
@@ -167,14 +167,13 @@ foreach my $mirror (@ARGV) {
                push @mirrors, "http://download-mirror.savannah.gnu.org/releases/$1";
        } elsif ($mirror =~ /^\@KERNEL\/(.+)$/) {
                my @extra = ( $1 );
-               if ($filename =~ /linux-\d+\.\d+(?:\.\d+)?-rc/) {
+               if ($filename =~ /linux-libre-\d+\.\d+(?:\.\d+)?-rc/) {
                        push @extra, "$extra[0]/testing";
-               } elsif ($filename =~ /linux-(\d+\.\d+(?:\.\d+)?)/) {
+               } elsif ($filename =~ /linux-libre-(\d+\.\d+(?:\.\d+)?)-gnu/) {
                        push @extra, "$extra[0]/longterm/v$1";
                }               
                foreach my $dir (@extra) {
-                       push @mirrors, "ftp://ftp.all.kernel.org/pub/$dir";
-                       push @mirrors, "http://ftp.all.kernel.org/pub/$dir";
+                       push @mirrors, "http://linux-libre.fsfla.org/pub/linux-libre/releases/$dir";
                }
     } elsif ($mirror =~ /^\@GNOME\/(.+)$/) {
                push @mirrors, "http://ftp.gnome.org/pub/GNOME/sources/$1";