mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
main-config: Add gitverse repo for kernel source
This commit is contained in:
@@ -217,6 +217,10 @@ function do_main_configuration() {
|
|||||||
declare -g -r MAINLINE_KERNEL_SOURCE='https://mirrors.bfsu.edu.cn/git/linux-stable.git'
|
declare -g -r MAINLINE_KERNEL_SOURCE='https://mirrors.bfsu.edu.cn/git/linux-stable.git'
|
||||||
declare -g -r MAINLINE_FIRMWARE_SOURCE='https://mirrors.bfsu.edu.cn/git/linux-firmware.git'
|
declare -g -r MAINLINE_FIRMWARE_SOURCE='https://mirrors.bfsu.edu.cn/git/linux-firmware.git'
|
||||||
;;
|
;;
|
||||||
|
gitverse)
|
||||||
|
declare -g -r MAINLINE_KERNEL_SOURCE='https://gitverse.ru/pbs-sunflower/linux-stable.git'
|
||||||
|
declare -g -r MAINLINE_FIRMWARE_SOURCE='https://gitverse.ru/pbs-sunflower/linux-firmware.git'
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
declare -g -r MAINLINE_KERNEL_SOURCE='https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' # "linux-stable" was renamed to "linux"
|
declare -g -r MAINLINE_KERNEL_SOURCE='https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' # "linux-stable" was renamed to "linux"
|
||||||
declare -g -r MAINLINE_FIRMWARE_SOURCE='https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git'
|
declare -g -r MAINLINE_FIRMWARE_SOURCE='https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git'
|
||||||
|
|||||||
@@ -123,6 +123,13 @@ function memoized_git_ref_to_info() {
|
|||||||
url="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/Makefile?h=${sha1}"
|
url="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/plain/Makefile?h=${sha1}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"https://gitverse.ru/"*)
|
||||||
|
declare org_and_repo=""
|
||||||
|
org_and_repo="$(echo "${git_source}" | cut -d/ -f4-5)"
|
||||||
|
org_and_repo="${org_and_repo%.git}" # remove .git if present
|
||||||
|
url="https://gitverse.ru/api/repos/${org_and_repo}/raw/commit/${sha1}/Makefile"
|
||||||
|
;;
|
||||||
|
|
||||||
"https://gitee.com/"*)
|
"https://gitee.com/"*)
|
||||||
# parse org/repo from https://gitee.com/org/repo
|
# parse org/repo from https://gitee.com/org/repo
|
||||||
declare org_and_repo=""
|
declare org_and_repo=""
|
||||||
|
|||||||
Reference in New Issue
Block a user