]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
classes/mirrors: use geo-located kernel.org mirrors
authorRoss Burton <ross.burton@arm.com>
Wed, 15 Oct 2025 20:49:40 +0000 (21:49 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Oct 2025 09:53:06 +0000 (10:53 +0100)
We use the kernel.org mirrors for a number of projects: obviously the
kernel, but also the GNU tarballs are fetched from there too.

However, mirrors.kernel.org does not have any geo-proximity DNS magic
and will always resolve to the primary server on in west coast USA,
which is far from ideal if you're not near there.

Switch the mirror URLs to mirrors.edge.kernel.org, which does actually
resolve to a closer server.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/mirrors.bbclass

index e31af488b954c5ef525762e4c1ed168129dbcdc2..75a0003ce55a30cd8388f10fcb539a3fe25dc9c0 100644 (file)
@@ -10,8 +10,8 @@ ${DEBIAN_MIRROR}      http://snapshot.debian.org/archive/debian/20250101T023759Z/pool
 ${DEBIAN_MIRROR}       http://snapshot.debian.org/archive/debian-archive/20120328T092752Z/debian/pool \
 ${DEBIAN_MIRROR}       http://snapshot.debian.org/archive/debian-archive/20110127T084257Z/debian/pool \
 ${DEBIAN_MIRROR}       http://snapshot.debian.org/archive/debian-archive/20090802T004153Z/debian/pool \
-${GNU_MIRROR}  https://mirrors.kernel.org/gnu \
-${KERNELORG_MIRROR}    http://www.kernel.org/pub \
+${GNU_MIRROR}  https://mirrors.edge.kernel.org/gnu \
+${KERNELORG_MIRROR}    http://www.edge.kernel.org/pub \
 ${GNUPG_MIRROR}        ftp://ftp.gnupg.org/gcrypt \
 ${GNUPG_MIRROR}        ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt \
 ${GNUPG_MIRROR}        ftp://mirrors.dotsrc.org/gcrypt \
@@ -26,7 +26,7 @@ ${APACHE_MIRROR}  http://archive.apache.org/dist \
 http://downloads.sourceforge.net/watchdog/ http://fossies.org/linux/misc/ \
 ${SAVANNAH_GNU_MIRROR} http://download-mirror.savannah.gnu.org/releases \
 ${SAVANNAH_NONGNU_MIRROR} http://download-mirror.savannah.nongnu.org/releases \
-ftp://sourceware.org/pub http://mirrors.kernel.org/sourceware \
+ftp://sourceware.org/pub http://mirrors.edge.kernel.org/sourceware \
 ftp://sourceware.org/pub http://gd.tuwien.ac.at/gnu/sourceware \
 ftp://sourceware.org/pub http://ftp.gwdg.de/pub/linux/sources.redhat.com/sourceware \
 cvs://.*/.*     http://downloads.yoctoproject.org/mirror/sources/ \
@@ -52,8 +52,8 @@ https?://.*/.*  http://sources.openembedded.org/ \
 ftp://.*/.*     http://sources.openembedded.org/ \
 npm://.*/?.*    http://sources.openembedded.org/ \
 ${CPAN_MIRROR}  https://cpan.metacpan.org/ \
-https?://downloads.yoctoproject.org/releases/uninative/ https://mirrors.kernel.org/yocto/uninative/ \
-https?://downloads.yoctoproject.org/mirror/sources/ https://mirrors.kernel.org/yocto-sources/ \
+https?://downloads.yoctoproject.org/releases/uninative/ https://mirrors.edge.kernel.org/yocto/uninative/ \
+https?://downloads.yoctoproject.org/mirror/sources/ https://mirrors.edge.kernel.org/yocto-sources/ \
 "
 
 # Use MIRRORS to provide git repo fallbacks using the https protocol, for cases