From d8d0aae76e512af7664eb280ba974c51a4113b50 Mon Sep 17 00:00:00 2001 From: may Date: Fri, 10 May 2019 05:11:52 +0800 Subject: [PATCH] [general] replace USE_MAINLINE_GOOGLE_MIRROR with MAINLINE_MIRROR MAINLINE_MIRROR=google, use google provided mirror MAINLINE_MIRROR=tuna, use tsinghua provided mirror leave it empty, use official git.kernel.org --- lib/configuration.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/configuration.sh b/lib/configuration.sh index 8bf788be6a..0b337aa419 100644 --- a/lib/configuration.sh +++ b/lib/configuration.sh @@ -61,8 +61,10 @@ fi [[ $ROOTFS_TYPE == nfs ]] && FIXED_IMAGE_SIZE=64 # used by multiple sources - reduce code duplication -if [[ $USE_MAINLINE_GOOGLE_MIRROR == yes ]]; then +if [[ $MAINLINE_MIRROR == 'google' ]]; then MAINLINE_KERNEL_SOURCE='https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable' +elif [[ $MAINLINE_MIRROR == 'tuna' ]]; then + MAINLINE_KERNEL_SOURCE='https://mirrors.tuna.tsinghua.edu.cn/git/linux-stable.git' else MAINLINE_KERNEL_SOURCE='git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git' fi