mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 13:47:48 +00:00
kernel/linux: longterm kernel location changed
The location of the longterm Linux kernels on FTP has changed. Here is a simple (but not very versatile) fix. Signed-off-by: "Björn A. Herwig" <herwig@gdsys.de> [yann.morin.1998@anciens.enib.fr: make it generic/versatile] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
23d449366d
commit
3de7ced945
@ -17,11 +17,21 @@ CT_DoKernelTupleValues() {
|
||||
|
||||
# Download the kernel
|
||||
do_kernel_get() {
|
||||
local k_ver
|
||||
if [ "${CT_KERNEL_LINUX_INSTALL}" = "y" \
|
||||
-a "${CT_KERNEL_LINUX_CUSTOM}" != "y" \
|
||||
]; then
|
||||
case "${CT_KERNEL_VERSION}" in
|
||||
?*.?*.?*.?*)
|
||||
# 4-part version, we need only first three digits
|
||||
k_ver="${CT_KERNEL_VERSION%.*}"
|
||||
;;
|
||||
*) # 3-part version, use all of it
|
||||
k_ver="${CT_KERNEL_VERSION}"
|
||||
;;
|
||||
esac
|
||||
CT_GetFile "linux-${CT_KERNEL_VERSION}" \
|
||||
{ftp,http}://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.{6{,/testing},4,2}
|
||||
{ftp,http}://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.{6{,/testing,/longterm/v${k_ver}},4,2}
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user