From 1aeeea69194bfb96417f2fd76d5f371cc77a3990 Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Tue, 6 Jul 2021 20:20:16 +1200 Subject: CT_Mirrors: make use of kernel cdn cdn.kernel.org automatically redirects to a geographically close mirror. Make use of this instead of www.kernel.org or mirrors.edge.kernel.org. While were at it make sure we use https. Signed-off-by: Chris Packham diff --git a/scripts/functions b/scripts/functions index 60bcbe9..11717e4 100644 --- a/scripts/functions +++ b/scripts/functions @@ -1800,7 +1800,6 @@ CT_Mirrors() echo "https://releases.linaro.org/archive/${yymm}/components/toolchain/${project}-linaro" ;; kernel.org) - # TBD move to linux.sh and dtc.sh? case "${project}" in linux) local version="${CT_LINUX_VERSION}" @@ -1809,14 +1808,14 @@ CT_Mirrors() # Ignore, this happens before .config is fully evaluated ;; [345].*) - echo "http://www.kernel.org/pub/linux/kernel/v${version%%.*}.x" + echo "https://cdn.kernel.org/pub/linux/kernel/v${version%%.*}.x" ;; 2.6.*) - echo "http://www.kernel.org/pub/linux/kernel/v2.6" + echo "https://cdn.kernel.org/pub/linux/kernel/v2.6" case "${version}" in 2.6.*.*) - echo "http://www.kernel.org/pub/linux/kernel/v2.6/longterm" - echo "http://www.kernel.org/pub/linux/kernel/v2.6/longterm/v${version%.*}" + echo "https://cdn.kernel.org/pub/linux/kernel/v2.6/longterm" + echo "https://cdn.kernel.org/pub/linux/kernel/v2.6/longterm/v${version%.*}" ;; esac ;; @@ -1826,7 +1825,7 @@ CT_Mirrors() esac ;; dtc) - echo "https://mirrors.edge.kernel.org/pub/software/utils/dtc" + echo "https://cdn.kernel.org/pub/software/utils/dtc" ;; *) echo "-unknown-" -- cgit v0.10.2-6-g49f6