mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-03-25 05:25:43 +00:00
kernel/linux: prepare to handle 3.x
The place to get 3.x has changed; the version scheme has changed. No need to be overkill, just support 3.x; 4.x is not even dreamt of. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
parent
111e47fffc
commit
c4d628f257
@ -22,17 +22,23 @@ do_kernel_get() {
|
||||
-a "${CT_KERNEL_LINUX_CUSTOM}" != "y" \
|
||||
]; then
|
||||
case "${CT_KERNEL_VERSION}" in
|
||||
?*.?*.?*.?*)
|
||||
# 4-part version, we need only first three digits
|
||||
2.6.*.*|3.*.*)
|
||||
# 4-part versions (for 2.6 stables and long-terms), and
|
||||
# 3-part versions (for 3.x.y stables and long-terms),
|
||||
# we need to trash the last digit
|
||||
k_ver="${CT_KERNEL_VERSION%.*}"
|
||||
;;
|
||||
*) # 3-part version, use all of it
|
||||
2.6.*|3.*)
|
||||
# 3-part version (for 2.6.x initial releases), and 2-part
|
||||
# versions (for 3.x initial releases), use all of it
|
||||
k_ver="${CT_KERNEL_VERSION}"
|
||||
;;
|
||||
esac
|
||||
CT_GetFile "linux-${CT_KERNEL_VERSION}" \
|
||||
http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.6 \
|
||||
http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.6/longterm/v${k_ver}
|
||||
CT_GetFile "linux-${CT_KERNEL_VERSION}" \
|
||||
http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.6 \
|
||||
http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v3.0 \
|
||||
http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.6/longterm/v${k_ver} \
|
||||
http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v3.0/longterm/v${k_ver}
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user