santize version to legacy/current/next mapping
currently we have
case "${build_type}" in
legacy)
kernel_url="${kernel_base}/kernel_devkit_linux-next_imx8-legacy-devkit/${archive_path}"
uboot_url="${uboot_base}/uboot_devkit_mainline_atf_build/${archive_path}"
;;
next)
kernel_url="${kernel_base}/kernel_devkit_linux-next_imx8-linux-next-devkit/${archive_path}"
uboot_url="${uboot_base}/uboot_devkit_mainline_atf_build/${archive_path}"
;;
current)
kernel_url="${kernel_base}/kernel_devkit_linux-next_imx8-current-devkit/${archive_path}"
uboot_url="${uboot_base}/uboot_devkit_mainline_atf_build/${archive_path}"
;;
*)
echo "unknown kernel type for devkit build ${build_type}"
exit 1
;;
esac
i would opt for having version numbers in the actual jobs and do the mapping to legacy/next/current in conf/board
. this allows us to have different, easy to identify build jobs and only one place - here - that maps to legacy/next/current
making it simple to change without changing under them, so e.g.
kernel_url="${kernel_base}/kernel_devkit_linux-next_imx8-5.3-devkit/${archive_path}"
instead of
kernel_url="${kernel_base}/kernel_devkit_linux-next_imx8-current-devkit/${archive_path}"
also if we build for phone and devkit we should drop devkit
from job names.