* prepare: auto-fetch latest versions + harmonize kernel version var - Latest version is fetched from git: this prepares the road to moving to git cloning and fetching - Introduce the $_kver variable that follows a three digit convention (e.g. '600', '519', '504') to enable comparing simply between kernel versions Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> * All distros: use git to fetch/update kernel sources - Force git cloning `linux-tkg` so the patches and config files are automatically checksummed - Arch: remove all the sha256sums and source files and automatically populate them on script run. - Move git cloning/fetching script to 'prepare' script file Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> * accept customization.cfg vars as env vars This makes CLI way easier by enabling e.g. _version="5.19" makepkg or _version="5.19" ./install.sh install Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> * prepare: better handle git remotes now there's a dictionary that gives the list of remotes Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> * prepare: add default git remote if not set or not recognized Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> * customization.cfg: allow specific kernel versions e.g. "6.0-rc4" or "5.10.51" Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> * ci: improved workflow 1. Check periodically for newer kernels with git 2. If a newer kernel exists, with respect to l latest Github release: 1. Build for cfs, pds, bmq for Arch 2. Make release Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com> Signed-off-by: Adel KARA SLIMANE <adel.ks@zegrapher.com>
21 lines
552 B
Bash
Executable File
21 lines
552 B
Bash
Executable File
#!/bin/bash
|
|
|
|
msg2() {
|
|
echo -e " \033[1;34m->\033[1;0m \033[1;1m$1\033[1;0m" >&2
|
|
}
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
|
|
source "$SCRIPT_DIR/../linux-tkg-config/prepare"
|
|
trap - EXIT
|
|
|
|
# needed to call _set_kver_internal_vars
|
|
_where="$SCRIPT_DIR/.."
|
|
|
|
_kernel_git_tag="${_kver_latest_tags_map[${_current_kernels[0]}]}"
|
|
[[ "$_kernel_git_tag" == *rc* ]] && _kernel_git_tag="${_kver_latest_tags_map[${_current_kernels[1]}]}"
|
|
|
|
_latest_kernel="$_kernel_git_tag"
|
|
|
|
echo "$_latest_kernel" > "$SCRIPT_DIR/latest-kernel"
|