mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
kenrel makefile: use Makefile url from ghproxy github repo for mainline kernel if GITHUB_MIRROR is set to ghproxy
This commit is contained in:
@@ -120,7 +120,14 @@ function memoized_git_ref_to_info() {
|
||||
|
||||
"https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git" | "https://mirrors.tuna.tsinghua.edu.cn/git/linux-stable.git" | "https://mirrors.bfsu.edu.cn/git/linux-stable.git")
|
||||
# for mainline kernel source, only the origin source support curl
|
||||
url="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/Makefile?h=${sha1}"
|
||||
case "${GITHUB_MIRROR}" in
|
||||
"ghproxy")
|
||||
url="https://${GHPROXY_ADDRESS}/https://raw.githubusercontent.com/torvalds/linux/${sha1}/Makefile"
|
||||
;;
|
||||
*)
|
||||
url="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/Makefile?h=${sha1}"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
"https://gitverse.ru/"*)
|
||||
|
||||
Reference in New Issue
Block a user