mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Add new options to handle mirror selection better (#3325)
* Add new option UBOOT_MIRROR to select mainline U-Boot mirror - set to `github` to use mirror provided by GitHub, the same as `USE_GITHUB_UBOOT_MIRROR=yes`. - set to `gitee` to use mirror provided by Gitee, a Chinese git service. - leave it unset to use offical `source.denx.de`. * Add GITHUB_MIRROR option Usage similar to UBOOT_MIRROR. * Add REGIONAL_MIRROR option Chinese users (the main user of mirror options) can have use this one instead of configure many different options.
This commit is contained in:
@@ -425,6 +425,9 @@ fetch_from_repo()
|
||||
local ref=$3
|
||||
local ref_subdir=$4
|
||||
|
||||
# Set GitHub mirror before anything else touches $url
|
||||
url=${url//'https://github.com/'/$GITHUB_SOURCE}
|
||||
|
||||
if [ "$dir" == "linux-mainline" ] && [[ "$LINUXFAMILY" == sunxi* ]]; then
|
||||
unset LINUXSOURCEDIR
|
||||
LINUXSOURCEDIR="linux-mainline/$KERNEL_VERSION_LEVEL"
|
||||
|
||||
Reference in New Issue
Block a user