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