summaryrefslogtreecommitdiff
path: root/config/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel')
-rw-r--r--config/kernel/kernel_linux.in134
-rw-r--r--config/kernel/kernel_linux_headers_copy.in42
-rw-r--r--config/kernel/kernel_linux_headers_install.in168
-rw-r--r--config/kernel/kernel_linux_headers_sanitised.in62
4 files changed, 406 insertions, 0 deletions
diff --git a/config/kernel/kernel_linux.in b/config/kernel/kernel_linux.in
new file mode 100644
index 0000000..cb5348e
--- /dev/null
+++ b/config/kernel/kernel_linux.in
@@ -0,0 +1,134 @@
+# Linux kernel options
+
+choice
+ bool
+ prompt "Get kernel headers from:"
+
+config KERNEL_LINUX_HEADERS_INSTALL
+ bool
+ prompt "kernel's 'headers_install'"
+ help
+ This will make use of the new headers_install rule in recent kernels.
+ This is most probably what you want to use.
+
+config KERNEL_LINUX_HEADERS_SANITISED
+ bool
+ prompt "Mazur's sanitized headers (OBSOLETE)"
+ depends on OBSOLETE
+ select KERNEL_LINUX_NEEDS_CONFIG
+ help
+ M. Mazur used to maintain a tree of sanitised headers, but it is now
+ obsoleted by the headers_install rule (above), and has not seen any
+ update since 2.6.12
+
+config KERNEL_LINUX_HEADERS_COPY
+ bool
+ prompt "pure kernel headers (REALLY OBSOLETE)"
+ depends on OBSOLETE
+ select KERNEL_LINUX_NEEDS_CONFIG
+ help
+ This will simply copy the kernel headers to the toolchain.
+
+ You do NOT want this. It's badly broken because it leaks kernel internals
+ to userspace.
+
+config KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
+ bool
+ prompt "Use custom directory"
+ help
+ If you have some kernel headers lying around, you can enter the path
+ below.
+
+endchoice
+
+config KERNEL
+ string
+ default "linux" if ! KERNEL_LINUX_HEADERS_SANITISED
+ default "linux-libc-headers" if KERNEL_LINUX_HEADERS_SANITISED
+
+config KERNEL_VERSION_SEE_EXTRAVERSION
+ bool
+ prompt "See extra versions"
+ default n
+ depends on KERNEL_LINUX_HEADERS_COPY || KERNEL_LINUX_HEADERS_INSTALL
+ help
+ See extra versions (kernel with 4 numbers, eg 2.6.19.1).
+
+ If you say 'no', you'll only see sub-level, 3-digit versions.
+ If you say 'yes', you'll see far more versions!
+
+ It is recommended that you say 'no', unless you _*know*_
+ that an extra version fixes a headers bug.
+
+if KERNEL_LINUX_HEADERS_INSTALL
+source config/kernel/kernel_linux_headers_install.in
+endif
+
+if KERNEL_LINUX_HEADERS_COPY
+source config/kernel/kernel_linux_headers_copy.in
+endif
+
+if KERNEL_LINUX_HEADERS_SANITISED
+source config/kernel/kernel_linux_headers_sanitised.in
+endif
+
+config KERNEL_LINUX_HEADERS_CUSTOM_DIR
+ string
+ prompt "Where are those custom headers?"
+ depends on KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
+ help
+ Enter the base directory where the headers are to be found.
+
+ Eg. if the headers are in /some/place/include, then enter /some/place.
+ This is the same path you entered when you typed:
+ make INSTALL_HDR_PATH=/some/place headers_install
+
+if ! KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
+
+choice
+ bool
+ prompt "Kernel verbosity:"
+ default KERNEL_LINUX_VERBOSITY_0
+
+config KERNEL_LINUX_VERBOSITY_0
+ bool
+ prompt "Simplified"
+ help
+ Print simplified command lines.
+
+config KERNEL_LINUX_VERBOSITY_1
+ bool
+ prompt "Full commands"
+ help
+ Print full command lines.
+
+config KERNEL_LINUX_VERBOSITY_2
+ bool
+ prompt "Exec reasons"
+ help
+ Print the reasons why a make target is rebuild.
+
+endchoice
+
+config KERNEL_LINUX_VERBOSE_LEVEL
+ int
+ default 0 if KERNEL_LINUX_VERBOSITY_0
+ default 1 if KERNEL_LINUX_VERBOSITY_1
+ default 2 if KERNEL_LINUX_VERBOSITY_2
+
+config KERNEL_LINUX_NEEDS_CONFIG
+ bool
+ default n
+
+config KERNEL_LINUX_CONFIG_FILE
+ string
+ prompt "Configuration file"
+ depends on KERNEL_LINUX_NEEDS_CONFIG
+ default ""
+ help
+ Path to a kernel configuration file.
+
+ If you don't provide one, then the default configuration for
+ your target will be used.
+
+endif
diff --git a/config/kernel/kernel_linux_headers_copy.in b/config/kernel/kernel_linux_headers_copy.in
new file mode 100644
index 0000000..54eb700
--- /dev/null
+++ b/config/kernel/kernel_linux_headers_copy.in
@@ -0,0 +1,42 @@
+choice
+ bool
+ prompt "Linux kernel version"
+
+config KERNEL_COPY_V_2_4_26
+ bool
+ prompt "2.4.26"
+
+config KERNEL_COPY_V_2_6_5
+ bool
+ prompt "2.6.5"
+
+config KERNEL_COPY_V_2_6_6
+ bool
+ prompt "2.6.6"
+
+config KERNEL_COPY_V_2_6_7
+ bool
+ prompt "2.6.7"
+
+config KERNEL_COPY_V_2_6_8
+ bool
+ prompt "2.6.8"
+
+config KERNEL_COPY_V_2_6_11_3
+ bool
+ prompt "2.6.11.3"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+# CT_INSERT_VERSION_ABOVE
+# Don't remove above line!
+endchoice
+
+config KERNEL_VERSION
+ string
+ default "2.6.5" if KERNEL_COPY_V_2_6_5
+ default "2.6.6" if KERNEL_COPY_V_2_6_6
+ default "2.6.7" if KERNEL_COPY_V_2_6_7
+ default "2.6.8" if KERNEL_COPY_V_2_6_8
+ default "2.6.11.3" if KERNEL_COPY_V_2_6_11_3
+# CT_INSERT_VERSION_STRING_ABOVE
+# Don't remove above line!
diff --git a/config/kernel/kernel_linux_headers_install.in b/config/kernel/kernel_linux_headers_install.in
new file mode 100644
index 0000000..60b471d
--- /dev/null
+++ b/config/kernel/kernel_linux_headers_install.in
@@ -0,0 +1,168 @@
+choice
+ bool
+ prompt "Linux kernel version"
+
+config KERNEL_INSTALL_V_2_6_18_8
+ bool
+ prompt "2.6.18.8 (OBSOLETE)"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION && OBSOLETE
+
+config KERNEL_INSTALL_V_2_6_19_7
+ bool
+ prompt "2.6.19.7 (OBSOLETE)"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION && OBSOLETE
+
+config KERNEL_INSTALL_V_2_6_20_21
+ bool
+ prompt "2.6.20.21 (OBSOLETE)"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION && OBSOLETE
+
+config KERNEL_INSTALL_V_2_6_21_7
+ bool
+ prompt "2.6.21.7 (OBSOLETE)"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION && OBSOLETE
+
+config KERNEL_INSTALL_V_2_6_22_18
+ bool
+ prompt "2.6.22.18"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23
+ bool
+ prompt "2.6.23"
+
+config KERNEL_INSTALL_V_2_6_23_1
+ bool
+ prompt "2.6.23.1"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_2
+ bool
+ prompt "2.6.23.2"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_3
+ bool
+ prompt "2.6.23.3"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_4
+ bool
+ prompt "2.6.23.4"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_5
+ bool
+ prompt "2.6.23.5"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_6
+ bool
+ prompt "2.6.23.6"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_7
+ bool
+ prompt "2.6.23.7"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_8
+ bool
+ prompt "2.6.23.8"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_9
+ bool
+ prompt "2.6.23.9"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_10
+ bool
+ prompt "2.6.23.10"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_11
+ bool
+ prompt "2.6.23.11"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_12
+ bool
+ prompt "2.6.23.12"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_13
+ bool
+ prompt "2.6.23.13"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_14
+ bool
+ prompt "2.6.23.14"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_15
+ bool
+ prompt "2.6.23.15"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_23_16
+ bool
+ prompt "2.6.23.16"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_24
+ bool
+ prompt "2.6.24"
+
+config KERNEL_INSTALL_V_2_6_24_1
+ bool
+ prompt "2.6.24.1"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+config KERNEL_INSTALL_V_2_6_24_2
+ bool
+ prompt "2.6.24.2"
+ depends on KERNEL_VERSION_SEE_EXTRAVERSION
+
+# CT_INSERT_VERSION_ABOVE
+# Don't remove above line!
+endchoice
+
+config KERNEL_VERSION
+ string
+ default "2.6.18.8" if KERNEL_INSTALL_V_2_6_18_8
+ default "2.6.19.7" if KERNEL_INSTALL_V_2_6_19_7
+ default "2.6.20.21" if KERNEL_INSTALL_V_2_6_20_21
+ default "2.6.21.7" if KERNEL_INSTALL_V_2_6_21_7
+ default "2.6.22.18" if KERNEL_INSTALL_V_2_6_22_18
+ default "2.6.23" if KERNEL_INSTALL_V_2_6_23
+ default "2.6.23.1" if KERNEL_INSTALL_V_2_6_23_1
+ default "2.6.23.2" if KERNEL_INSTALL_V_2_6_23_2
+ default "2.6.23.3" if KERNEL_INSTALL_V_2_6_23_3
+ default "2.6.23.4" if KERNEL_INSTALL_V_2_6_23_4
+ default "2.6.23.5" if KERNEL_INSTALL_V_2_6_23_5
+ default "2.6.23.6" if KERNEL_INSTALL_V_2_6_23_6
+ default "2.6.23.7" if KERNEL_INSTALL_V_2_6_23_7
+ default "2.6.23.8" if KERNEL_INSTALL_V_2_6_23_8
+ default "2.6.23.9" if KERNEL_INSTALL_V_2_6_23_9
+ default "2.6.23.10" if KERNEL_INSTALL_V_2_6_23_10
+ default "2.6.23.11" if KERNEL_INSTALL_V_2_6_23_11
+ default "2.6.23.12" if KERNEL_INSTALL_V_2_6_23_12
+ default "2.6.23.13" if KERNEL_INSTALL_V_2_6_23_13
+ default "2.6.23.14" if KERNEL_INSTALL_V_2_6_23_14
+ default "2.6.23.15" if KERNEL_INSTALL_V_2_6_23_15
+ default "2.6.23.16" if KERNEL_INSTALL_V_2_6_23_16
+ default "2.6.24" if KERNEL_INSTALL_V_2_6_24
+ default "2.6.24.1" if KERNEL_INSTALL_V_2_6_24_1
+ default "2.6.24.2" if KERNEL_INSTALL_V_2_6_24_2
+# CT_INSERT_VERSION_STRING_ABOVE
+# Don't remove above line!
+
+config KERNEL_LINUX_HEADERS_INSTALL_CHECK
+ bool
+ prompt "Check installed headers"
+ default n
+ help
+ If you are in doubt that installed headers are buggy, say 'Y'
+ here to have an extra check passed onto the headers.
diff --git a/config/kernel/kernel_linux_headers_sanitised.in b/config/kernel/kernel_linux_headers_sanitised.in
new file mode 100644
index 0000000..820df6e
--- /dev/null
+++ b/config/kernel/kernel_linux_headers_sanitised.in
@@ -0,0 +1,62 @@
+choice
+ bool
+ prompt "Linux headers version"
+
+config KERNEL_SANITISED_V_2_6_7_0
+ bool
+ prompt "2.6.7.0"
+
+config KERNEL_SANITISED_V_2_6_8_0
+ bool
+ prompt "2.6.8.0"
+
+config KERNEL_SANITISED_V_2_6_8_1
+ bool
+ prompt "2.6.8.1"
+
+config KERNEL_SANITISED_V_2_6_9_0
+ bool
+ prompt "2.6.9.0"
+
+config KERNEL_SANITISED_V_2_6_9_1
+ bool
+ prompt "2.6.9.1"
+
+config KERNEL_SANITISED_V_2_6_10_0
+ bool
+ prompt "2.6.10.0"
+
+config KERNEL_SANITISED_V_2_6_11_0
+ bool
+ prompt "2.6.11.0"
+
+config KERNEL_SANITISED_V_2_6_11_1
+ bool
+ prompt "2.6.11.1"
+
+config KERNEL_SANITISED_V_2_6_11_2
+ bool
+ prompt "2.6.11.2"
+
+config KERNEL_SANITISED_V_2_6_12_0
+ bool
+ prompt "2.6.12.0"
+
+# CT_INSERT_VERSION_ABOVE
+# Don't remove above line!
+endchoice
+
+config KERNEL_VERSION
+ string
+ default "2.6.7.0" if KERNEL_SANITISED_V_2_6_7_0
+ default "2.6.8.0" if KERNEL_SANITISED_V_2_6_8_0
+ default "2.6.8.1" if KERNEL_SANITISED_V_2_6_8_1
+ default "2.6.9.0" if KERNEL_SANITISED_V_2_6_9_0
+ default "2.6.9.1" if KERNEL_SANITISED_V_2_6_9_1
+ default "2.6.10.0" if KERNEL_SANITISED_V_2_6_10_0
+ default "2.6.11.0" if KERNEL_SANITISED_V_2_6_11_0
+ default "2.6.11.1" if KERNEL_SANITISED_V_2_6_11_1
+ default "2.6.11.2" if KERNEL_SANITISED_V_2_6_11_2
+ default "2.6.12.0" if KERNEL_SANITISED_V_2_6_12_0
+# CT_INSERT_VERSION_STRING_ABOVE
+# Don't remove above line!