config/libc/uClibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Dec 12 22:18:52 2010 +0100 (2010-12-12)
changeset 2215 bd86485d966a
parent 2064 f5ebe8c429dc
child 2238 c9eab2fa7a3c
permissions -rw-r--r--
libc: hide no-thread for those C libraries that do not support it

Building non-threaded glibc has been unsupported for a long time, now:
http://sourceware.org/ml/libc-alpha/2005-08/msg00091.html

As eglibc is a spin-off of glibc: ditto.

So do not offer that possibility in the menuconfig.
Thanks to Thomas Petazzoni for spotting, and helping to solve, the issue!

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # uClibc options
     2 # depends on ! MINGW32 && ! BARE_METAL
     3 
     4 config LIBC_uClibc
     5     select LIBC_SUPPORT_LINUXTHREADS
     6     select LIBC_SUPPORT_THREADS_NONE
     7     help
     8       The de-facto standard for embeded linux systems.
     9       Highly configurable, thus as feature-rich as you need, without
    10       compromising for size.
    11 
    12 choice
    13     bool
    14     prompt "uClibc version"
    15 # Don't remove next line
    16 # CT_INSERT_VERSION_BELOW
    17 
    18 config LIBC_UCLIBC_V_0_9_31
    19     bool
    20     prompt "0.9.31 (EXPERIMENTAL)"
    21     depends on EXPERIMENTAL
    22     select LIBC_UCLIBC_0_9_30_or_later
    23 
    24 config LIBC_UCLIBC_V_0_9_30_3
    25     bool
    26     prompt "0.9.30.3"
    27     select LIBC_UCLIBC_0_9_30_or_later
    28 
    29 config LIBC_UCLIBC_V_0_9_30_2
    30     bool
    31     prompt "0.9.30.2"
    32     select LIBC_UCLIBC_0_9_30_or_later
    33 
    34 config LIBC_V_0_9_30_1
    35     bool
    36     prompt "0.9.30.1"
    37     select LIBC_UCLIBC_0_9_30_or_later
    38 
    39 config LIBC_V_0_9_30
    40     bool
    41     prompt "0.9.30"
    42     select LIBC_UCLIBC_0_9_30_or_later
    43 
    44 config LIBC_V_0_9_29
    45     bool
    46     prompt "0.9.29 (OBSOLETE)"
    47     depends on OBSOLETE
    48 
    49 config LIBC_V_0_9_28_3
    50     bool
    51     prompt "0.9.28.3 (OBSOLETE)"
    52     depends on OBSOLETE
    53 
    54 # As of today (20100702) we can be pretty sure that every
    55 # snapshots made since a month ago are post -0.9.30.
    56 
    57 config LIBC_V_snapshot
    58     bool
    59     prompt "latest snapshot (EXPERIMENTAL)"
    60     depends on EXPERIMENTAL
    61     select LIBC_SUPPORT_NPTL
    62     select LIBC_UCLIBC_0_9_30_or_later
    63 
    64 config LIBC_V_specific_date
    65     bool
    66     prompt "<specific date> (EXPERIMENTAL)"
    67     depends on EXPERIMENTAL
    68     select LIBC_SUPPORT_NPTL
    69     select LIBC_UCLIBC_0_9_30_or_later
    70 
    71 endchoice
    72 
    73 config LIBC_VERSION
    74     string
    75     prompt "Enter date (YYYYMMDD)" if LIBC_V_specific_date
    76 # Don't remove next line
    77 # CT_INSERT_VERSION_STRING_BELOW
    78     default "0.9.31" if LIBC_UCLIBC_V_0_9_31
    79     default "0.9.30.3" if LIBC_UCLIBC_V_0_9_30_3
    80     default "0.9.30.2" if LIBC_UCLIBC_V_0_9_30_2
    81     default "0.9.30.1" if LIBC_V_0_9_30_1
    82     default "0.9.30" if LIBC_V_0_9_30
    83     default "0.9.29" if LIBC_V_0_9_29
    84     default "0.9.28.3" if LIBC_V_0_9_28_3
    85     default "snapshot" if LIBC_V_snapshot
    86 
    87 config LIBC_UCLIBC_0_9_30_or_later
    88     bool
    89     default n
    90     select LIBC_UCLIBC_PARALLEL
    91 
    92 config LIBC_UCLIBC_PARALLEL
    93     bool
    94     default n
    95 
    96 choice
    97     bool
    98     prompt "uClibc verbosity:"
    99     default LIBC_UCLIBC_VERBOSITY_0
   100 
   101 config LIBC_UCLIBC_VERBOSITY_0
   102     bool
   103     prompt "Quiet build"
   104     help
   105       Print terse command indications.
   106 
   107 config LIBC_UCLIBC_VERBOSITY_1
   108     bool
   109     prompt "Brief build (show defines, ld flags)"
   110     help
   111       Print simplified command lines.
   112 
   113 config LIBC_UCLIBC_VERBOSITY_2
   114     bool
   115     prompt "Very verbose build"
   116     help
   117       Print full command lines.
   118 
   119 endchoice
   120 
   121 config LIBC_UCLIBC_VERBOSITY
   122     string
   123     default ""      if LIBC_UCLIBC_VERBOSITY_0
   124     default "V=1"   if LIBC_UCLIBC_VERBOSITY_1
   125     default "V=2"   if LIBC_UCLIBC_VERBOSITY_2
   126 
   127 choice
   128     bool
   129     prompt "Debug level"
   130     default LIBC_UCLIBC_DEBUG_LEVEL_0
   131 
   132 config LIBC_UCLIBC_DEBUG_LEVEL_0
   133     bool
   134     prompt "none"
   135 
   136 config LIBC_UCLIBC_DEBUG_LEVEL_1
   137     bool
   138     prompt "minimal"
   139 
   140 config LIBC_UCLIBC_DEBUG_LEVEL_2
   141     bool
   142     prompt "all"
   143 
   144 endchoice
   145 
   146 config LIBC_UCLIBC_DEBUG_LEVEL
   147     int
   148     default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
   149     default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
   150     default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
   151 
   152 config LIBC_UCLIBC_CONFIG_FILE
   153     string
   154     prompt "Configuration file"
   155     default ""
   156     help
   157       Path to the configuration file.
   158       
   159       You _must_ provide one (for now).