summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-01-14 17:32:38 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-01-14 17:32:38 (GMT)
commit3de7ced945dc99ecc0eb7bffffb5be48ab8565ce (patch)
treea7cc25935470d3a98dff55fdf0934bd111c20ee4
parent23d449366de04e1e0ae356231af76265104dc0b5 (diff)
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>
-rw-r--r--scripts/build/kernel/linux.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/scripts/build/kernel/linux.sh b/scripts/build/kernel/linux.sh
index 4df25b7..67f930b 100644
--- a/scripts/build/kernel/linux.sh
+++ b/scripts/build/kernel/linux.sh
@@ -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
}