config/kernel_linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jul 28 21:34:41 2007 +0000 (2007-07-28)
changeset 301 2be7232a73ac
parent 61 1207acb66003
permissions -rw-r--r--
Bump version to 0.2.2.
     1 # Linux kernel options
     2 
     3 choice
     4     bool
     5     prompt "Get kernel headers from:"
     6 
     7 config KERNEL_LINUX_HEADERS_INSTALL
     8     bool
     9     prompt "kernel's 'headers_install'"
    10     help
    11       This will make use of the new headers_install rule in recent kernels.
    12       This is most probably what you want to use.
    13 
    14 config KERNEL_LINUX_HEADERS_SANITISED
    15     bool
    16     prompt "Mazur's sanitized headers (OBSOLETE)"
    17     depends on OBSOLETE
    18     select KERNEL_LINUX_NEEDS_CONFIG
    19     help
    20       M. Mazur used to maintain a tree of sanitised headers, but it is now
    21       obsoleted by the headers_install rule (above), and has not seen any
    22       update since 2.6.12
    23 
    24 config KERNEL_LINUX_HEADERS_COPY
    25     bool
    26     prompt "pure kernel headers (REALLY OBSOLETE)"
    27     depends on OBSOLETE
    28     select KERNEL_LINUX_NEEDS_CONFIG
    29     help
    30       This will simply copy the kernel headers to the toolchain.
    31 
    32       You do NOT want this. It's badly broken because it leaks kernel internals
    33       to userspace.
    34 
    35 config KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    36     bool
    37     prompt "Use custom directory"
    38     help
    39       If you have some kernel headers lying around, you can enter the path
    40       below.
    41 
    42 endchoice
    43 
    44 config KERNEL
    45     string
    46     default "linux" if ! KERNEL_LINUX_HEADERS_SANITISED
    47     default "linux-libc-headers" if KERNEL_LINUX_HEADERS_SANITISED
    48 
    49 config KERNEL_VERSION_SEE_EXTRAVERSION
    50     bool
    51     prompt "See extra versions"
    52     default n
    53     depends on KERNEL_LINUX_HEADERS_COPY || KERNEL_LINUX_HEADERS_INSTALL
    54     help
    55       See extra versions (kernel with 4 numbers, eg 2.6.19.1).
    56 
    57       If you say 'no', you'll only see sub-level, 3-digit versions.
    58       If you say 'yes', you'll see far more versions!
    59 
    60       It is recommended that you say 'no', unless you _*know*_
    61       that an extra version fixes a headers bug.
    62 
    63 if KERNEL_LINUX_HEADERS_INSTALL
    64 source config/kernel_linux_headers_install.in
    65 endif
    66 
    67 if KERNEL_LINUX_HEADERS_COPY
    68 source config/kernel_linux_headers_copy.in
    69 endif
    70 
    71 if KERNEL_LINUX_HEADERS_SANITISED
    72 source config/kernel_linux_headers_sanitised.in
    73 endif
    74 
    75 config KERNEL_LINUX_HEADERS_CUSTOM_DIR
    76     string
    77     prompt "Where are those custom headers?"
    78     depends on KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    79     help
    80       Enter the base directory where the headers are to be found.
    81       
    82       Eg. if the headers are in /some/place/include, then enter /some/place.
    83           This is the same path you entered when you typed:
    84             make INSTALL_HDR_PATH=/some/place headers_install
    85 
    86 if ! KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    87 
    88 choice
    89     bool
    90     prompt "Kernel verbosity:"
    91     default KERNEL_LINUX_VERBOSITY_0
    92 
    93 config KERNEL_LINUX_VERBOSITY_0
    94     bool
    95     prompt "Simplified"
    96     help
    97       Print simplified command lines.
    98 
    99 config KERNEL_LINUX_VERBOSITY_1
   100     bool
   101     prompt "Full commands"
   102     help
   103       Print full command lines.
   104 
   105 config KERNEL_LINUX_VERBOSITY_2
   106     bool
   107     prompt "Exec reasons"
   108     help
   109       Print the reasons why a make target is rebuild.
   110 
   111 endchoice
   112 
   113 config KERNEL_LINUX_VERBOSE_LEVEL
   114     int
   115     default 0 if KERNEL_LINUX_VERBOSITY_0
   116     default 1 if KERNEL_LINUX_VERBOSITY_1
   117     default 2 if KERNEL_LINUX_VERBOSITY_2
   118 
   119 config KERNEL_LINUX_NEEDS_CONFIG
   120     bool
   121     default n
   122 
   123 config KERNEL_LINUX_CONFIG_FILE
   124     string
   125     prompt "Configuration file"
   126     depends on KERNEL_LINUX_NEEDS_CONFIG
   127     default ""
   128     help
   129       Path to a kernel configuration file.
   130       
   131       If you don't provide one, then the default configuration for
   132       your target will be used.
   133 
   134 endif