From 20cb84200f5e07b60d82c5d0f5349094e6db5ff5 Mon Sep 17 00:00:00 2001 From: Jianfeng Liu Date: Tue, 9 Sep 2025 17:24:29 +0800 Subject: [PATCH] uboot: set mainline uboot source with mirror --- lib/functions/configuration/main-config.sh | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/functions/configuration/main-config.sh b/lib/functions/configuration/main-config.sh index 18a3be488..878bf5708 100644 --- a/lib/functions/configuration/main-config.sh +++ b/lib/functions/configuration/main-config.sh @@ -229,18 +229,6 @@ function do_main_configuration() { [[ $USE_GITHUB_UBOOT_MIRROR == yes ]] && UBOOT_MIRROR=github # legacy compatibility? - case $UBOOT_MIRROR in - gitee) - declare -g -r MAINLINE_UBOOT_SOURCE='https://gitee.com/mirrors/u-boot.git' - ;; - denx) - declare -g -r MAINLINE_UBOOT_SOURCE='https://source.denx.de/u-boot/u-boot.git' - ;; - *) - declare -g -r MAINLINE_UBOOT_SOURCE='https://github.com/u-boot/u-boot' - ;; - esac - case $GITHUB_MIRROR in fastgit) declare -g -r GITHUB_SOURCE='https://hub.fastgit.xyz' @@ -257,6 +245,18 @@ function do_main_configuration() { ;; esac + case $UBOOT_MIRROR in + gitee) + declare -g -r MAINLINE_UBOOT_SOURCE='https://gitee.com/mirrors/u-boot.git' + ;; + denx) + declare -g -r MAINLINE_UBOOT_SOURCE='https://source.denx.de/u-boot/u-boot.git' + ;; + *) + declare -g -r MAINLINE_UBOOT_SOURCE="${GITHUB_SOURCE}/u-boot/u-boot" + ;; + esac + case $GHCR_MIRROR in dockerproxy) GHCR_MIRROR_ADDRESS="${GHCR_MIRROR_ADDRESS:-"ghcr.dockerproxy.net"}"