config/arch/alpha.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 08 23:26:54 2010 +0200 (2010-06-08)
changeset 1976 2d90ec981ba3
parent 1345 27fec561af53
child 2113 917c353f30dc
permissions -rw-r--r--
config: add support for a second part of the generated choices

Some components have configuration options that can depend on
generic options, so they should go below those.

uClibc for example:
- has its own options (wchar...)
- uses the generic options (threads...)
- if linuxthreads chosen, offers two impls

So we need to be able to split the components options in 2,
one part that is above the generic options, and one part that
ends up below the generic options.
     1 # Alpha specific configuration file
     2 
     3 config ARCH_alpha
     4     select ARCH_SUPPORTS_32
     5     select ARCH_DEFAULT_32
     6     select ARCH_USE_MMU
     7     select ARCH_SUPPORT_CPU
     8     select ARCH_SUPPORT_TUNE
     9     help
    10       The Alpha architecture.
    11 
    12 choice
    13     bool
    14     prompt "Variant"
    15 
    16 config ARCH_ALPHA_EV4
    17     bool
    18     prompt "EV4"
    19 
    20 config ARCH_ALPHA_EV45
    21     bool
    22     prompt "EV45"
    23 
    24 config ARCH_ALPHA_EV5
    25     bool
    26     prompt "EV5"
    27 
    28 config ARCH_ALPHA_EV56
    29     bool
    30     prompt "EV56"
    31 
    32 config ARCH_ALPHA_EV6
    33     bool
    34     prompt "EV6"
    35 
    36 config ARCH_ALPHA_EV67
    37     bool
    38     prompt "EV67"
    39 
    40 endchoice
    41 
    42 config ARCH_ALPHA_VARIANT
    43     string
    44     default "ev4"   if ARCH_ALPHA_EV4
    45     default "ev45"  if ARCH_ALPHA_EV45
    46     default "ev5"   if ARCH_ALPHA_EV5
    47     default "ev56"  if ARCH_ALPHA_EV56
    48     default "ev6"   if ARCH_ALPHA_EV6
    49     default "ev67"  if ARCH_ALPHA_EV67
    50 
    51 config ARCH_CPU
    52     default "ev4"   if ARCH_ALPHA_EV4
    53     default "ev45"  if ARCH_ALPHA_EV45
    54     default "ev5"   if ARCH_ALPHA_EV5
    55     default "ev56"  if ARCH_ALPHA_EV56
    56     default "ev6"   if ARCH_ALPHA_EV6
    57     default "ev67"  if ARCH_ALPHA_EV67
    58 
    59 config ARCH_TUNE
    60     default "ev4"   if ARCH_ALPHA_EV4
    61     default "ev45"  if ARCH_ALPHA_EV45
    62     default "ev5"   if ARCH_ALPHA_EV5
    63     default "ev56"  if ARCH_ALPHA_EV56
    64     default "ev6"   if ARCH_ALPHA_EV6
    65     default "ev67"  if ARCH_ALPHA_EV67