config/libc/uClibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 17 23:06:02 2010 +0100 (2010-01-17)
changeset 1740 c57458bb354d
parent 1639 bdf7ab3588c6
child 1787 626a0914bfe0
permissions -rw-r--r--
configure: do not require hg when configuring in an hg clone

When configuring in an hg clone, we need hg to compute the version string.
It can happen that users do not have Mercurial (eg. if they got a snapshot
rather that they did a full clone). In this case, we can still run, of
course, so simply fill the version string with a sufficiently explicit
value, that does not require hg. The date is a good candidate.
     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_30_2
    18     bool
    19     prompt "0.9.30.2 (EXPERIMENTAL)"
    20     depends on EXPERIMENTAL
    21     select LIBC_UCLIBC_0_9_30_or_later
    22 
    23 config LIBC_V_0_9_30_1
    24     bool
    25     prompt "0.9.30.1"
    26     select LIBC_UCLIBC_0_9_30_or_later
    27 
    28 config LIBC_V_0_9_30
    29     bool
    30     prompt "0.9.30"
    31     select LIBC_UCLIBC_0_9_30_or_later
    32 
    33 config LIBC_V_0_9_29
    34     bool
    35     prompt "0.9.29 (OBSOLETE)"
    36     depends on OBSOLETE
    37 
    38 config LIBC_V_0_9_28_3
    39     bool
    40     prompt "0.9.28.3 (OBSOLETE)"
    41     depends on OBSOLETE
    42 
    43 config LIBC_V_snapshot
    44     bool
    45     prompt "latest snapshot (EXPERIMENTAL)"
    46     depends on EXPERIMENTAL
    47 
    48 config LIBC_V_specific_date
    49     bool
    50     prompt "<specific date> (EXPERIMENTAL)"
    51     depends on EXPERIMENTAL
    52 
    53 endchoice
    54 
    55 config LIBC_VERSION
    56     string
    57     prompt "Enter date (YYYYMMDD)" if LIBC_V_specific_date
    58 # Don't remove next line
    59 # CT_INSERT_VERSION_STRING_BELOW
    60     default "0.9.30.2" if LIBC_UCLIBC_V_0_9_30_2
    61     default "0.9.30.1" if LIBC_V_0_9_30_1
    62     default "0.9.30" if LIBC_V_0_9_30
    63     default "0.9.29" if LIBC_V_0_9_29
    64     default "0.9.28.3" if LIBC_V_0_9_28_3
    65     default "snapshot" if LIBC_V_snapshot
    66 
    67 config LIBC_UCLIBC_0_9_30_or_later
    68     bool
    69     default n
    70     select LIBC_UCLIBC_PARALLEL
    71 
    72 config LIBC_UCLIBC_PARALLEL
    73     bool
    74     default n
    75 
    76 choice
    77     bool
    78     prompt "uClibc verbosity:"
    79     default LIBC_UCLIBC_VERBOSITY_0
    80 
    81 config LIBC_UCLIBC_VERBOSITY_0
    82     bool
    83     prompt "Simplified"
    84     help
    85       Print simplified command lines.
    86 
    87 config LIBC_UCLIBC_VERBOSITY_1
    88     bool
    89     prompt "Full commands"
    90     help
    91       Print full command lines.
    92 
    93 endchoice
    94 
    95 config LIBC_UCLIBC_VERBOSITY
    96     string
    97     default ""      if LIBC_UCLIBC_VERBOSITY_0
    98     default "V=1"   if LIBC_UCLIBC_VERBOSITY_1
    99 
   100 choice
   101     bool
   102     prompt "Debug level"
   103     default LIBC_UCLIBC_DEBUG_LEVEL_0
   104 
   105 config LIBC_UCLIBC_DEBUG_LEVEL_0
   106     bool
   107     prompt "none"
   108 
   109 config LIBC_UCLIBC_DEBUG_LEVEL_1
   110     bool
   111     prompt "minimal"
   112 
   113 config LIBC_UCLIBC_DEBUG_LEVEL_2
   114     bool
   115     prompt "all"
   116 
   117 endchoice
   118 
   119 config LIBC_UCLIBC_DEBUG_LEVEL
   120     int
   121     default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
   122     default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
   123     default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
   124 
   125 config LIBC_UCLIBC_BUILD_CROSS_LDD
   126     bool
   127     prompt "Build cross-ldd"
   128     default y
   129     help
   130       Say 'y' here to build a cross-ldd to run in the host.
   131       
   132       Building a cross-ldd only works on ELF systems, that is,
   133       if you build under Cygwin, you *must* say 'n' here.
   134 
   135 config LIBC_UCLIBC_CONFIG_FILE
   136     string
   137     prompt "Configuration file"
   138     default ""
   139     help
   140       Path to the configuration file.
   141       
   142       You _must_ provide one (for now).
   143 
   144 config LIBC_UCLIBC_LOCALES
   145     bool
   146     select LIBC_UCLIBC_WCHAR
   147     prompt "Add support for locales"
   148     default n
   149     help
   150       Say y if you want uClibc to support localisation.
   151 
   152       Note that seems to be broken on recent uClibc releases.
   153 
   154 config LIBC_UCLIBC_WCHAR
   155     bool
   156     prompt "Add support for WCHAR"
   157     default n
   158     help
   159       Say y if you want uClibc to support WCHAR.
   160 
   161       Maybe this is needed, if you're building a C++-Compiler