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)
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";