This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC PATCH] allow arbitrary Linux kernel versions


Allow the user to specify a specific Linux kernel version.
In contrast to KERNEL_LINUX_CUSTOM crosstool
will automatically download the tarball (provided the
version number entered by the user is valid).
Using this also stops crosstool from downloading
the latest-greatest kernel after every crosstool update.

Signed-off-by: Johannes Stezenbach <js@sig21.net>

diff -r f36c207348ef config/kernel/linux.in
--- a/config/kernel/linux.in	Thu Sep 20 11:20:16 2012 +0800
+++ b/config/kernel/linux.in	Wed Sep 26 14:55:56 2012 +0200
@@ -135,12 +135,26 @@
       It is now maintained by Greg Kroah-Hartman, see this mailing list entry:
         http://marc.info/?l=linux-kernel&m=129133701916793&w=4
 
+config KERNEL_LINUX_CUSTOM_VERSION
+    bool
+    prompt "custom Linux version"
+    help
+      Use a specific version not metioned in the list above.
+
 config KERNEL_LINUX_CUSTOM
     bool
     prompt "custom tarball or directory"
     help
       Use a local tarball or local kernel directory of a complete kernel source tree.
 
+endchoice
+
+config KERNEL_LINUX_CUSTOM_VERSION_NUMBER
+    string ""
+    prompt "custom Linux version number"
+    help
+      Enter the specific Linux kernel version to use, e.g. "3.4.9".
+
 config KERNEL_LINUX_CUSTOM_LOCATION
     string
     prompt "Path to custom source, tarball or directory"
@@ -149,8 +163,6 @@
       Enter here the path to the tarball of your full kernel tree or
       kernel directory
 
-endchoice
-
 config KERNEL_VERSION
     string
 # Don't remove next line
@@ -173,6 +185,7 @@
     default "2.6.32.59" if KERNEL_V_2_6_32_59
     default "2.6.31.14" if KERNEL_V_2_6_31_14
     default "2.6.27.62" if KERNEL_V_2_6_27_62
+    default KERNEL_LINUX_CUSTOM_VERSION_NUMBER if KERNEL_LINUX_CUSTOM_VERSION
     default "custom" if KERNEL_LINUX_CUSTOM
 
 endif # ! KERNEL_LINUX_USE_CUSTOM_HEADERS

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]