From 58b4c6d0a44d57b15d7857ecb27711a2224949e9 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Mon, 7 May 2007 09:04:02 +0000 Subject: 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. --- scripts/build/kernel_linux.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'scripts/build/kernel_linux.sh') diff --git a/scripts/build/kernel_linux.sh b/scripts/build/kernel_linux.sh index c6ff608a..985cd86b 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" -- cgit v1.2.3