summaryrefslogtreecommitdiff
path: root/scripts/build/kernel_linux.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-07 09:04:02 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2007-05-07 09:04:02 (GMT)
commit58b4c6d0a44d57b15d7857ecb27711a2224949e9 (patch)
treea44e1c3fbeac57ff5601b1cbd1400172b3c64bbe /scripts/build/kernel_linux.sh
parent45e6df196be73e799e220810f9c48f8884d1049c (diff)
Merge the save-sample branch to trunk:
- reorder most of the environment setup, - geting, extracting and patching are now components' sub-actions, - save the current config as a sample to be used as a pre-configured target.
Diffstat (limited to 'scripts/build/kernel_linux.sh')
-rw-r--r--scripts/build/kernel_linux.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/build/kernel_linux.sh b/scripts/build/kernel_linux.sh
index c6ff608..985cd86 100644
--- a/scripts/build/kernel_linux.sh
+++ b/scripts/build/kernel_linux.sh
@@ -2,6 +2,27 @@
# Copyright 2007 Yann E. MORIN
# Licensed under the GPL v2. See COPYING in the root of this package
+# Download the kernel
+do_kernel_get() {
+ if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" != "y" ]; then
+ CT_GetFile "${CT_KERNEL_FILE}" \
+ ftp://ftp.kernel.org/pub/linux/kernel/v2.6 \
+ ftp://ftp.kernel.org/pub/linux/kernel/v2.4 \
+ ftp://ftp.kernel.org/pub/linux/kernel/v2.2 \
+ ftp://ftp.kernel.org/pub/linux/kernel/v2.6/testing \
+ http://ep09.pld-linux.org/~mmazur/linux-libc-headers
+ fi
+ return 0
+}
+
+# Extract kernel
+do_kernel_extract() {
+ if [ "${CT_KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR}" != "y" ]; then
+ CT_ExtractAndPatch "${CT_KERNEL_FILE}"
+ fi
+ return 0
+}
+
# Check kernel configuration
do_kernel_check_config() {
CT_DoStep INFO "Checking kernel configuration"