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