mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
uboot: set mainline uboot source with mirror
This commit is contained in:
@@ -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"}"
|
||||
|
||||
Reference in New Issue
Block a user