config/kernel_linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Apr 11 21:26:03 2007 +0000 (2007-04-11)
changeset 37 21bcbfde8094
parent 1 eeea35fbf182
child 49 f431118daec4
permissions -rw-r--r--
Add an option for those having the kernel headers pre-installed from a customised local tree.
In that case, neither download, nor extract, nor patch.
     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     help
    18       M. Mazur used to maintain a tree of sanitised headers, but it is now
    19       obsoleted by the headers_install rule (above), and has not seen eny
    20       update since 2.6.12
    21 
    22 config KERNEL_LINUX_HEADERS_COPY
    23     bool
    24     prompt "pure kernel headers (NOT RECOMMENDED)"
    25     help
    26       This will simply copy the kernel headers to the toolchain.
    27 
    28       You do NOT want this. It's badly broken because it leaks kernel internals
    29       to userspace.
    30 
    31 config KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    32     bool
    33     prompt "Use custom directory"
    34     help
    35       If you have some kernel headers lying around, you can enter the path
    36       below.
    37 
    38 endchoice
    39 
    40 config KERNEL
    41     string
    42     default "linux" if ! KERNEL_LINUX_HEADERS_SANITISED
    43     default "linux-libc-headers" if KERNEL_LINUX_HEADERS_SANITISED
    44 
    45 config KERNEL_VERSION_SEE_EXTRAVERSION
    46     bool
    47     prompt "See extra versions"
    48     default n
    49     depends on KERNEL_LINUX_HEADERS_COPY || KERNEL_LINUX_HEADERS_INSTALL
    50     help
    51       See extra versions (kernel with 4 numbers, eg 2.6.19.1).
    52 
    53       If you say 'no', you'll only see sub-level, 3-digit versions.
    54       If you say 'yes', you'll see far more versions!
    55 
    56       It is recommended that you say 'no', unless you _*know*_
    57       that an extra version fixes a headers bug.
    58 
    59 if KERNEL_LINUX_HEADERS_INSTALL
    60 source config/kernel_linux_headers_install.in
    61 endif
    62 
    63 if KERNEL_LINUX_HEADERS_COPY
    64 source config/kernel_linux_headers_copy.in
    65 endif
    66 
    67 if KERNEL_LINUX_HEADERS_SANITISED
    68 source config/kernel_linux_headers_sanitised.in
    69 endif
    70 
    71 config KERNEL_LINUX_HEADERS_CUSTOM_DIR
    72     string
    73     prompt "Where are those custom headers?"
    74     depends on KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    75     help
    76       Enter the base directory where the headers are to be found.
    77       
    78       Eg. if the headers are in /some/place/include, then enter /some/place.
    79           This is the same path you entered when you typed:
    80             make INSTALL_HDR_PATH=/some/place headers_install
    81 
    82 if ! KERNEL_LINUX_HEADERS_USE_CUSTOM_DIR
    83 
    84 choice
    85     bool
    86     prompt "Kernel verbosity:"
    87     default KERNEL_LINUX_VERBOSITY_0
    88 
    89 config KERNEL_LINUX_VERBOSITY_0
    90     bool
    91     prompt "Simplified"
    92     help
    93       Print simplified command lines.
    94 
    95 config KERNEL_LINUX_VERBOSITY_1
    96     bool
    97     prompt "Full commands"
    98     help
    99       Print full command lines.
   100 
   101 config KERNEL_LINUX_VERBOSITY_2
   102     bool
   103     prompt "Exec reasons"
   104     help
   105       Print the reasons why a make target is rebuild.
   106 
   107 endchoice
   108 
   109 config KERNEL_LINUX_VERBOSE_LEVEL
   110     int
   111     default 0 if KERNEL_LINUX_VERBOSITY_0
   112     default 1 if KERNEL_LINUX_VERBOSITY_1
   113     default 2 if KERNEL_LINUX_VERBOSITY_2
   114 
   115 config KERNEL_LINUX_CONFIG_FILE
   116     string
   117     prompt "Configuration file"
   118     default ""
   119     help
   120       Path to the kernel configuration file.
   121       
   122       You _must_ provide one (for now).
   123 
   124 endif