# HG changeset patch # User "Yann E. MORIN" # Date 1276625041 -7200 # Node ID f357bc3abfa6489fbaa6e2d3cbde67efc5449a6b # Parent 200b3e97b0b179bce27f3c39cae1a003a7fb54ca kernel/linux: reorder upstream/custom-tree handling diff -r 200b3e97b0b1 -r f357bc3abfa6 config/kernel/linux.in --- a/config/kernel/linux.in Sat May 22 14:11:27 2010 +0200 +++ b/config/kernel/linux.in Tue Jun 15 20:04:01 2010 +0200 @@ -20,14 +20,6 @@ if KERNEL_LINUX_INSTALL -config KERNEL_LINUX_INSTALL_CHECK - bool - prompt "Check installed headers" - default y - help - If you are in doubt that installed headers are buggy, say 'Y' - here to have an extra check passed onto the headers. - choice bool prompt "Linux kernel version" @@ -140,11 +132,19 @@ default 1 if KERNEL_LINUX_VERBOSITY_1 default 2 if KERNEL_LINUX_VERBOSITY_2 -endif +config KERNEL_LINUX_INSTALL_CHECK + bool + prompt "Check installed headers" + default y + help + If you are in doubt that installed headers are buggy, say 'Y' + here to have an extra check passed onto the headers. + +endif # KERNEL_LINUX_INSTALL config KERNEL_LINUX_USE_CUSTOM_HEADERS bool - prompt "Use custom headers" + prompt "custom, and/or pre-installed, headers tree" help If you have some kernel headers lying around, you can enter the path below. @@ -175,6 +175,6 @@ help See KERNEL_LINUX_CUSTOM_IS_TARBALL, above. -endif # KERNEL_LINUX_USE_CUSTOM_DIR +endif # KERNEL_LINUX_USE_CUSTOM_HEADERS endchoice diff -r 200b3e97b0b1 -r f357bc3abfa6 scripts/build/kernel/linux.sh --- a/scripts/build/kernel/linux.sh Sat May 22 14:11:27 2010 +0200 +++ b/scripts/build/kernel/linux.sh Tue Jun 15 20:04:01 2010 +0200 @@ -17,30 +17,28 @@ # Download the kernel do_kernel_get() { - if [ "${CT_KERNEL_LINUX_USE_CUSTOM_HEADERS}" != "y" ]; then + if [ "${CT_KERNEL_LINUX_INSTALL}" = "y" ]; then CT_GetFile "linux-${CT_KERNEL_VERSION}" \ {ftp,http}://ftp.{de.,eu.,}kernel.org/pub/linux/kernel/v2.{6{,/testing},4,2} fi - return 0 } # Extract kernel do_kernel_extract() { - if [ "${CT_KERNEL_LINUX_USE_CUSTOM_HEADERS}" != "y" ]; then + if [ "${CT_KERNEL_LINUX_INSTALL}" = "y" ]; then CT_Extract "linux-${CT_KERNEL_VERSION}" CT_Patch "linux" "${CT_KERNEL_VERSION}" fi - return 0 } # Wrapper to the actual headers install method do_kernel_headers() { CT_DoStep INFO "Installing kernel headers" - if [ "${CT_KERNEL_LINUX_USE_CUSTOM_HEADERS}" = "y" ]; then + if [ "${CT_KERNEL_LINUX_INSTALL}" = "y" ]; then + do_kernel_install + else do_kernel_custom - else - do_kernel_install fi CT_EndStep