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"}"