config/libc/uClibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Aug 19 00:52:05 2011 +0200 (2011-08-19)
branch1.12
changeset 2633 22e779b0a4ed
parent 2484 d1a8c2ae7946
child 2666 d7d4c6336f8f
permissions -rw-r--r--
scripts: simplify and fix the toolchain config script

The script that is installed, and which sole purpose is to dump
the .config that was used to build the toolchain, is pure insanity.

Let's make it much, much more simpler...

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