sunxi/sunxi64: move version locking back to family code

This commit is contained in:
Ricardo Pardini 2023-12-28 12:03:06 +01:00 committed by Igor
parent 22e0e0fe61
commit e6dfd7763b
3 changed files with 6 additions and 11 deletions

View File

@ -24,14 +24,17 @@ case $BRANCH in
legacy)
declare -g KERNEL_MAJOR_MINOR="6.1" # Major and minor versions of this kernel.
declare -g KERNELBRANCH="tag:v6.1.69"
;;
current)
declare -g KERNEL_MAJOR_MINOR="6.6" # Major and minor versions of this kernel.
declare -g KERNELBRANCH="tag:v6.6.8"
;;
edge)
declare -g KERNEL_MAJOR_MINOR="6.7" # Major and minor versions of this kernel.
declare -g KERNELBRANCH="tag:v6.7-rc6"
;;
esac

View File

@ -25,14 +25,17 @@ case $BRANCH in
legacy)
declare -g KERNEL_MAJOR_MINOR="6.1" # Major and minor versions of this kernel.
declare -g KERNELBRANCH="tag:v6.1.69"
;;
current)
declare -g KERNEL_MAJOR_MINOR="6.6" # Major and minor versions of this kernel.
declare -g KERNELBRANCH="tag:v6.6.8"
;;
edge)
declare -g KERNEL_MAJOR_MINOR="6.7" # Major and minor versions of this kernel.
declare -g KERNELBRANCH="tag:v6.7-rc6"
;;
esac

View File

@ -13,17 +13,6 @@ function mainline_kernel_decide_version__upstream_release_candidate_number() {
fi
}
# Maintained by @viraniac
function mainline_kernel_decide_version__sunxi_fixed_versions() {
[[ "${LINUXFAMILY}" != "sunxi" && "${LINUXFAMILY}" != "sunxi64" ]] && return 0 # only for sunxi/sunxi64
case "${KERNEL_MAJOR_MINOR}" in
"6.1") declare -g KERNELBRANCH="tag:v6.1.69" ;;
"6.6") declare -g KERNELBRANCH="tag:v6.6.8" ;;
"6.7") declare -g KERNELBRANCH="tag:v6.7-rc6" ;;
esac
display_alert "mainline-kernel" "Using fixed version for sunxi/sunxi64 KERNELBRANCH='${KERNELBRANCH}'" "info"
}
# Maintained by @paolosabatino
function mainline_kernel_decide_version__rockchip_32bit_fixed_versions() {
[[ "${LINUXFAMILY}" != "rockchip" ]] && return 0 # only for rockchip armhf 32-bit