scripts/build/kernel_linux.sh
changeset 63 89b41dbffe8d
parent 62 651912c5477c
child 64 7dab8d1a2426
     1.1 --- a/scripts/build/kernel_linux.sh	Sun May 06 21:47:29 2007 +0000
     1.2 +++ b/scripts/build/kernel_linux.sh	Mon May 07 09:04:02 2007 +0000
     1.3 @@ -2,6 +2,27 @@
     1.4  # Copyright 2007 Yann E. MORIN
     1.5  # Licensed under the GPL v2. See COPYING in the root of this package
     1.6  
     1.7 +# Download the kernel
     1.8 +do_kernel_get() {
     1.9 +    if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" != "y" ]; then
    1.10 +        CT_GetFile "${CT_KERNEL_FILE}"                                  \
    1.11 +                   ftp://ftp.kernel.org/pub/linux/kernel/v2.6           \
    1.12 +                   ftp://ftp.kernel.org/pub/linux/kernel/v2.4           \
    1.13 +                   ftp://ftp.kernel.org/pub/linux/kernel/v2.2           \
    1.14 +                   ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing   \
    1.15 +                   http://ep09.pld-linux.org/~mmazur/linux-libc-headers
    1.16 +    fi
    1.17 +    return 0
    1.18 +}
    1.19 +
    1.20 +# Extract kernel
    1.21 +do_kernel_extract() {
    1.22 +    if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" != "y" ]; then
    1.23 +        CT_ExtractAndPatch "${CT_KERNEL_FILE}"
    1.24 +    fi
    1.25 +    return 0
    1.26 +}
    1.27 +
    1.28  # Check kernel configuration
    1.29  do_kernel_check_config() {
    1.30      CT_DoStep INFO "Checking kernel configuration"