config/kernel/linux.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Sep 16 17:39:40 2008 +0000 (2008-09-16)
changeset 861 5506fbbad59b
parent 858 e815b1a5057c
child 911 e0a3d5c1ecbd
permissions -rw-r--r--
Generate the kernel config choice, rather than having it hard-coded:
- change the menu label from 'Target OS' to 'Operating System',
- bare-metal is a kind of kernel (OS), rename to 'bare-metal' from 'none',
- update the kconfig.mk to generate the kernel choice entries,
- update glibc&eglibc kernel version option accordingly.
Update the debug & tools confiog file generation to match with arch & kernel.
Print terse command lines when building in kconfig/ (a-la Linux kernel).
Fix the makefile rules in kconfig/kconfig.mk to be /simple/ rules.

/trunk/kconfig/kconfig.mk | 117 81 36 0 +++++++++++++++++++++----------
/trunk/config/kernel/linux.in | 4 4 0 0 +
/trunk/config/kernel/bare-metal.experimental.in | 15 15 0 0 ++++
/trunk/config/kernel.in | 33 5 28 0 +--------
/trunk/config/libc/glibc-eglibc-common.in | 4 2 2 0
5 files changed, 107 insertions(+), 66 deletions(-)
     1 # Linux kernel options
     2 
     3 config KERNEL_linux
     4     help
     5       Build a toolchain targeting systems running Linux as a kernel.
     6 
     7 choice
     8     bool
     9     prompt "Get kernel headers from:"
    10 
    11 config KERNEL_LINUX_INSTALL
    12     bool
    13     prompt "kernel's 'headers_install'"
    14     help
    15       This will make use of the new headers_install rule in recent kernels.
    16       This is most probably what you want to use.
    17 
    18 if KERNEL_LINUX_INSTALL
    19 
    20 config KERNEL_LINUX_INSTALL_CHECK
    21     bool
    22     prompt "Check installed headers"
    23     default y
    24     help
    25       If you are in doubt that installed headers are buggy, say 'Y'
    26       here to have an extra check passed onto the headers.
    27 
    28 choice
    29     bool
    30     prompt "Linux kernel version"
    31 
    32 config KERNEL_V_2_6_18_8
    33     bool
    34     prompt "2.6.18.8 (OBSOLETE)"
    35     depends on OBSOLETE
    36 
    37 config KERNEL_V_2_6_19_7
    38     bool
    39     prompt "2.6.19.7 (OBSOLETE)"
    40     depends on OBSOLETE
    41 
    42 config KERNEL_V_2_6_20_21
    43     bool
    44     prompt "2.6.20.21 (OBSOLETE)"
    45     depends on OBSOLETE
    46 
    47 config KERNEL_V_2_6_21_7
    48     bool
    49     prompt "2.6.21.7 (OBSOLETE)"
    50     depends on OBSOLETE
    51 
    52 config KERNEL_V_2_6_22_19
    53     bool
    54     prompt "2.6.22.19 (OBSOLETE)"
    55     depends on OBSOLETE
    56 
    57 config KERNEL_V_2_6_23_17
    58     bool
    59     prompt "2.6.23.17 (OBSOLETE)"
    60     depends on OBSOLETE
    61 
    62 config KERNEL_V_2_6_24_7
    63     bool
    64     prompt "2.6.24.7 (OBSOLETE)"
    65     depends on OBSOLETE
    66 
    67 config KERNEL_V_2_6_25
    68     bool
    69     prompt "2.6.25"
    70 
    71 config KERNEL_V_2_6_25_1
    72     bool
    73     prompt "2.6.25.1"
    74 
    75 config KERNEL_V_2_6_25_2
    76     bool
    77     prompt "2.6.25.2"
    78 
    79 config KERNEL_V_2_6_25_3
    80     bool
    81     prompt "2.6.25.3"
    82 
    83 config KERNEL_V_2_6_25_4
    84     bool
    85     prompt "2.6.25.4"
    86 
    87 config KERNEL_V_2_6_25_5
    88     bool
    89     prompt "2.6.25.5"
    90 
    91 config KERNEL_V_2_6_25_6
    92     bool
    93     prompt "2.6.25.6"
    94 
    95 config KERNEL_V_2_6_25_7
    96     bool
    97     prompt "2.6.25.7"
    98 
    99 config KERNEL_V_2_6_25_8
   100     bool
   101     prompt "2.6.25.8"
   102 
   103 config KERNEL_V_2_6_25_9
   104     bool
   105     prompt "2.6.25.9"
   106 
   107 config KERNEL_V_2_6_25_10
   108     bool
   109     prompt "2.6.25.10"
   110 
   111 config KERNEL_V_2_6_25_11
   112     bool
   113     prompt "2.6.25.11"
   114 
   115 config KERNEL_V_2_6_25_12
   116     bool
   117     prompt "2.6.25.12"
   118 
   119 config KERNEL_V_2_6_25_13
   120     bool
   121     prompt "2.6.25.13"
   122 
   123 config KERNEL_V_2_6_25_14
   124     bool
   125     prompt "2.6.25.14"
   126 
   127 config KERNEL_V_2_6_25_15
   128     bool
   129     prompt "2.6.25.15"
   130 
   131 config KERNEL_V_2_6_25_16
   132     bool
   133     prompt "2.6.25.16"
   134 
   135 config KERNEL_V_2_6_25_17
   136     bool
   137     prompt "2.6.25.17"
   138 
   139 config KERNEL_V_2_6_26
   140     bool
   141     prompt "2.6.26"
   142 
   143 config KERNEL_V_2_6_26_1
   144     bool
   145     prompt "2.6.26.1"
   146 
   147 config KERNEL_V_2_6_26_2
   148     bool
   149     prompt "2.6.26.2"
   150 
   151 config KERNEL_V_2_6_26_3
   152     bool
   153     prompt "2.6.26.3"
   154 
   155 config KERNEL_V_2_6_26_4
   156     bool
   157     prompt "2.6.26.4"
   158 
   159 config KERNEL_V_2_6_26_5
   160     bool
   161     prompt "2.6.26.5"
   162 
   163 # CT_INSERT_VERSION_ABOVE
   164 # Don't remove above line!
   165 endchoice
   166 
   167 config KERNEL_VERSION
   168     string
   169     default "2.6.18.8" if KERNEL_V_2_6_18_8
   170     default "2.6.19.7" if KERNEL_V_2_6_19_7
   171     default "2.6.20.21" if KERNEL_V_2_6_20_21
   172     default "2.6.21.7" if KERNEL_V_2_6_21_7
   173     default "2.6.22.19" if KERNEL_V_2_6_22_19
   174     default "2.6.23.17" if KERNEL_V_2_6_23_17
   175     default "2.6.24.7" if KERNEL_V_2_6_24_7
   176     default "2.6.25" if KERNEL_V_2_6_25
   177     default "2.6.25.1" if KERNEL_V_2_6_25_1
   178     default "2.6.25.2" if KERNEL_V_2_6_25_2
   179     default "2.6.25.3" if KERNEL_V_2_6_25_3
   180     default "2.6.25.4" if KERNEL_V_2_6_25_4
   181     default "2.6.25.5" if KERNEL_V_2_6_25_5
   182     default "2.6.25.6" if KERNEL_V_2_6_25_6
   183     default "2.6.25.7" if KERNEL_V_2_6_25_7
   184     default "2.6.25.8" if KERNEL_V_2_6_25_8
   185     default "2.6.25.9" if KERNEL_V_2_6_25_9
   186     default "2.6.25.10" if KERNEL_V_2_6_25_10
   187     default "2.6.25.11" if KERNEL_V_2_6_25_11
   188     default "2.6.25.12" if KERNEL_V_2_6_25_12
   189     default "2.6.25.13" if KERNEL_V_2_6_25_13
   190     default "2.6.25.14" if KERNEL_V_2_6_25_14
   191     default "2.6.25.14" if KERNEL_V_2_6_25_15
   192     default "2.6.25.15" if KERNEL_V_2_6_25_16
   193     default "2.6.25.15" if KERNEL_V_2_6_25_17
   194     default "2.6.26" if KERNEL_V_2_6_26
   195     default "2.6.26.1" if KERNEL_V_2_6_26_1
   196     default "2.6.26.2" if KERNEL_V_2_6_26_2
   197     default "2.6.26.3" if KERNEL_V_2_6_26_3
   198     default "2.6.26.4" if KERNEL_V_2_6_26_4
   199     default "2.6.26.5" if KERNEL_V_2_6_26_5
   200 # CT_INSERT_VERSION_STRING_ABOVE
   201 # Don't remove above line!
   202 
   203 choice
   204     bool
   205     prompt "Kernel verbosity:"
   206     default KERNEL_LINUX_VERBOSITY_0
   207 
   208 config KERNEL_LINUX_VERBOSITY_0
   209     bool
   210     prompt "Simplified"
   211     help
   212       Print simplified command lines.
   213 
   214 config KERNEL_LINUX_VERBOSITY_1
   215     bool
   216     prompt "Full commands"
   217     help
   218       Print full command lines.
   219 
   220 config KERNEL_LINUX_VERBOSITY_2
   221     bool
   222     prompt "Exec reasons"
   223     help
   224       Print the reasons why a make target is rebuild.
   225 
   226 endchoice
   227 
   228 config KERNEL_LINUX_VERBOSE_LEVEL
   229     int
   230     default 0 if KERNEL_LINUX_VERBOSITY_0
   231     default 1 if KERNEL_LINUX_VERBOSITY_1
   232     default 2 if KERNEL_LINUX_VERBOSITY_2
   233 
   234 endif
   235 
   236 config KERNEL_LINUX_USE_CUSTOM_DIR
   237     bool
   238     prompt "Use custom directory"
   239     help
   240       If you have some kernel headers lying around, you can enter the path
   241       below.
   242 
   243 config KERNEL_LINUX_CUSTOM_DIR
   244     string
   245     prompt "Where are those custom headers?"
   246     depends on KERNEL_LINUX_USE_CUSTOM_DIR
   247     help
   248       Enter the base directory where the headers are to be found.
   249       
   250       Eg. if the headers are in /some/place/include, then enter /some/place.
   251           This is the same path you entered when you typed:
   252             make INSTALL_HDR_PATH=/some/place headers_install
   253 
   254 endchoice