uboot: set mainline uboot source with mirror

This commit is contained in:
Jianfeng Liu
2025-09-09 17:24:29 +08:00
parent ed561311a3
commit 20cb84200f

View File

@@ -229,18 +229,6 @@ function do_main_configuration() {
[[ $USE_GITHUB_UBOOT_MIRROR == yes ]] && UBOOT_MIRROR=github # legacy compatibility? [[ $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 case $GITHUB_MIRROR in
fastgit) fastgit)
declare -g -r GITHUB_SOURCE='https://hub.fastgit.xyz' declare -g -r GITHUB_SOURCE='https://hub.fastgit.xyz'
@@ -257,6 +245,18 @@ function do_main_configuration() {
;; ;;
esac 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 case $GHCR_MIRROR in
dockerproxy) dockerproxy)
GHCR_MIRROR_ADDRESS="${GHCR_MIRROR_ADDRESS:-"ghcr.dockerproxy.net"}" GHCR_MIRROR_ADDRESS="${GHCR_MIRROR_ADDRESS:-"ghcr.dockerproxy.net"}"