1.1 --- a/scripts/build/kernel/linux.sh Fri Jan 14 18:36:07 2011 +0100
1.2 +++ b/scripts/build/kernel/linux.sh Fri Jul 22 21:45:07 2011 +0200
1.3 @@ -22,17 +22,23 @@
1.4 -a "${CT_KERNEL_LINUX_CUSTOM}" != "y" \
1.5 ]; then
1.6 case "${CT_KERNEL_VERSION}" in
1.7 - ?*.?*.?*.?*)
1.8 - # 4-part version, we need only first three digits
1.9 + 2.6.*.*|3.*.*)
1.10 + # 4-part versions (for 2.6 stables and long-terms), and
1.11 + # 3-part versions (for 3.x.y stables and long-terms),
1.12 + # we need to trash the last digit
1.13 k_ver="${CT_KERNEL_VERSION%.*}"
1.14 ;;
1.15 - *) # 3-part version, use all of it
1.16 + 2.6.*|3.*)
1.17 + # 3-part version (for 2.6.x initial releases), and 2-part
1.18 + # versions (for 3.x initial releases), use all of it
1.19 k_ver="${CT_KERNEL_VERSION}"
1.20 ;;
1.21 esac
1.22 - CT_GetFile "linux-${CT_KERNEL_VERSION}" \
1.23 - http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.6 \
1.24 - http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.6/longterm/v${k_ver}
1.25 + CT_GetFile "linux-${CT_KERNEL_VERSION}" \
1.26 + http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.6 \
1.27 + http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v3.0 \
1.28 + http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.6/longterm/v${k_ver} \
1.29 + http://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v3.0/longterm/v${k_ver}
1.30 fi
1.31 }
1.32