summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-07-22 19:45:07 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-07-22 19:45:07 (GMT)
commitc4d628f25751716a878a8c49d49c6ff245a8316b (patch)
treeb9cf852b3bd63c4c50ed740ca5d33938828280b3 /scripts
parent111e47fffc6da2f8da3d0f4a6b81fbd4cc863959 (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/kernel/linux.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
index 50f1e43..d750ccc 100644
--- a/scripts/build/kernel/linux.sh
+++ b/scripts/build/kernel/linux.sh
@@ -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
}