config/libc/uClibc.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 1787 626a0914bfe0
child 2009 7e19c1de65cd
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 # uClibc options
     2 # depends on ! BARE_METAL
     3 
     4 config LIBC_uClibc
     5     select LIBC_SUPPORT_LINUXTHREADS
     6     help
     7       The de-facto standard for embeded linux systems.
     8       Highly configurable, thus as feature-rich as you need, without
     9       compromising for size.
    10 
    11 choice
    12     bool
    13     prompt "uClibc version"
    14 # Don't remove next line
    15 # CT_INSERT_VERSION_BELOW
    16 
    17 config LIBC_UCLIBC_V_0_9_31
    18     bool
    19     prompt "0.9.31 (EXPERIMENTAL)"
    20     depends on EXPERIMENTAL
    21     select LIBC_UCLIBC_0_9_30_or_later
    22 
    23 config LIBC_UCLIBC_V_0_9_30_2
    24     bool
    25     prompt "0.9.30.2"
    26     select LIBC_UCLIBC_0_9_30_or_later
    27 
    28 config LIBC_V_0_9_30_1
    29     bool
    30     prompt "0.9.30.1"
    31     select LIBC_UCLIBC_0_9_30_or_later
    32 
    33 config LIBC_V_0_9_30
    34     bool
    35     prompt "0.9.30"
    36     select LIBC_UCLIBC_0_9_30_or_later
    37 
    38 config LIBC_V_0_9_29
    39     bool
    40     prompt "0.9.29 (OBSOLETE)"
    41     depends on OBSOLETE
    42 
    43 config LIBC_V_0_9_28_3
    44     bool
    45     prompt "0.9.28.3 (OBSOLETE)"
    46     depends on OBSOLETE
    47 
    48 config LIBC_V_snapshot
    49     bool
    50     prompt "latest snapshot (EXPERIMENTAL)"
    51     depends on EXPERIMENTAL
    52 
    53 config LIBC_V_specific_date
    54     bool
    55     prompt "<specific date> (EXPERIMENTAL)"
    56     depends on EXPERIMENTAL
    57 
    58 endchoice
    59 
    60 config LIBC_VERSION
    61     string
    62     prompt "Enter date (YYYYMMDD)" if LIBC_V_specific_date
    63 # Don't remove next line
    64 # CT_INSERT_VERSION_STRING_BELOW
    65     default "0.9.31" if LIBC_UCLIBC_V_0_9_31
    66     default "0.9.30.2" if LIBC_UCLIBC_V_0_9_30_2
    67     default "0.9.30.1" if LIBC_V_0_9_30_1
    68     default "0.9.30" if LIBC_V_0_9_30
    69     default "0.9.29" if LIBC_V_0_9_29
    70     default "0.9.28.3" if LIBC_V_0_9_28_3
    71     default "snapshot" if LIBC_V_snapshot
    72 
    73 config LIBC_UCLIBC_0_9_30_or_later
    74     bool
    75     default n
    76     select LIBC_UCLIBC_PARALLEL
    77 
    78 config LIBC_UCLIBC_PARALLEL
    79     bool
    80     default n
    81 
    82 choice
    83     bool
    84     prompt "uClibc verbosity:"
    85     default LIBC_UCLIBC_VERBOSITY_0
    86 
    87 config LIBC_UCLIBC_VERBOSITY_0
    88     bool
    89     prompt "Simplified"
    90     help
    91       Print simplified command lines.
    92 
    93 config LIBC_UCLIBC_VERBOSITY_1
    94     bool
    95     prompt "Full commands"
    96     help
    97       Print full command lines.
    98 
    99 endchoice
   100 
   101 config LIBC_UCLIBC_VERBOSITY
   102     string
   103     default ""      if LIBC_UCLIBC_VERBOSITY_0
   104     default "V=1"   if LIBC_UCLIBC_VERBOSITY_1
   105 
   106 choice
   107     bool
   108     prompt "Debug level"
   109     default LIBC_UCLIBC_DEBUG_LEVEL_0
   110 
   111 config LIBC_UCLIBC_DEBUG_LEVEL_0
   112     bool
   113     prompt "none"
   114 
   115 config LIBC_UCLIBC_DEBUG_LEVEL_1
   116     bool
   117     prompt "minimal"
   118 
   119 config LIBC_UCLIBC_DEBUG_LEVEL_2
   120     bool
   121     prompt "all"
   122 
   123 endchoice
   124 
   125 config LIBC_UCLIBC_DEBUG_LEVEL
   126     int
   127     default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
   128     default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
   129     default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
   130 
   131 config LIBC_UCLIBC_BUILD_CROSS_LDD
   132     bool
   133     prompt "Build cross-ldd"
   134     default y
   135     help
   136       Say 'y' here to build a cross-ldd to run in the host.
   137       
   138       Building a cross-ldd only works on ELF systems, that is,
   139       if you build under Cygwin, you *must* say 'n' here.
   140 
   141 config LIBC_UCLIBC_CONFIG_FILE
   142     string
   143     prompt "Configuration file"
   144     default ""
   145     help
   146       Path to the configuration file.
   147       
   148       You _must_ provide one (for now).
   149 
   150 config LIBC_UCLIBC_LOCALES
   151     bool
   152     select LIBC_UCLIBC_WCHAR
   153     prompt "Add support for locales"
   154     default n
   155     help
   156       Say y if you want uClibc to support localisation.
   157 
   158       Note that seems to be broken on recent uClibc releases.
   159 
   160 config LIBC_UCLIBC_WCHAR
   161     bool
   162     prompt "Add support for WCHAR"
   163     default n
   164     help
   165       Say y if you want uClibc to support WCHAR.
   166 
   167       Maybe this is needed, if you're building a C++-Compiler