config/libc/uClibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Dec 31 16:23:27 2011 +0100 (2011-12-31)
changeset 2814 3dc2727ebffc
parent 2761 19760eb7a090
child 2866 42bfbe169c2c
permissions -rw-r--r--
cc/gcc: add option to use system zlib

In some cases, it might be desirable to use the system zlib

Eg. because latest gcc seem to be totally borked when it comes
to multilib, and tries to build a multilib host zlib, when it
is *absolutely* *not* needed: we want mulitlib on the target,
not on the host! Sigh... :-(

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     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 if ARCH_FLOAT_SOFTFP
    14 comment "'softfp' ABI and uClibc is not entirely tested in crosstool-NG"
    15 comment "You may experience issues, although it should work just fine"
    16 endif # ARCH_FLOAT_SOFTFP
    17 
    18 choice
    19     bool
    20     prompt "uClibc version"
    21 # Don't remove next line
    22 # CT_INSERT_VERSION_BELOW
    23 
    24 config LIBC_UCLIBC_V_0_9_32_1
    25     bool
    26     prompt "0.9.32.1"
    27     select LIBC_UCLIBC_0_9_32_or_later
    28 
    29 config LIBC_UCLIBC_V_0_9_32
    30     bool
    31     prompt "0.9.32"
    32     select LIBC_UCLIBC_0_9_32_or_later
    33 
    34 config LIBC_UCLIBC_V_0_9_31
    35     bool
    36     prompt "0.9.31 (EXPERIMENTAL)"
    37     depends on EXPERIMENTAL
    38     select LIBC_UCLIBC_0_9_30_or_later
    39 
    40 config LIBC_UCLIBC_V_0_9_30_3
    41     bool
    42     prompt "0.9.30.3"
    43     select LIBC_UCLIBC_0_9_30_or_later
    44 
    45 config LIBC_UCLIBC_V_0_9_30_2
    46     bool
    47     prompt "0.9.30.2"
    48     select LIBC_UCLIBC_0_9_30_or_later
    49 
    50 config LIBC_UCLIBC_V_0_9_30_1
    51     bool
    52     prompt "0.9.30.1"
    53     select LIBC_UCLIBC_0_9_30_or_later
    54 
    55 config LIBC_UCLIBC_V_0_9_30
    56     bool
    57     prompt "0.9.30"
    58     select LIBC_UCLIBC_0_9_30_or_later
    59 
    60 config LIBC_UCLIBC_V_0_9_29
    61     bool
    62     prompt "0.9.29 (OBSOLETE)"
    63     depends on OBSOLETE
    64 
    65 config LIBC_UCLIBC_V_0_9_28_3
    66     bool
    67     prompt "0.9.28.3 (OBSOLETE)"
    68     depends on OBSOLETE
    69 
    70 # As of today (20100702) we can be pretty sure that every
    71 # snapshots made since a month ago are post -0.9.30.
    72 
    73 config LIBC_UCLIBC_V_snapshot
    74     bool
    75     prompt "latest snapshot (EXPERIMENTAL)"
    76     depends on EXPERIMENTAL
    77     select LIBC_SUPPORT_NPTL
    78     select LIBC_UCLIBC_0_9_30_or_later
    79 
    80 config LIBC_UCLIBC_V_specific_date
    81     bool
    82     prompt "<specific date> (EXPERIMENTAL)"
    83     depends on EXPERIMENTAL
    84     select LIBC_SUPPORT_NPTL
    85     select LIBC_UCLIBC_0_9_30_or_later
    86 
    87 endchoice
    88 
    89 config LIBC_VERSION
    90     string
    91     prompt "Enter date (YYYYMMDD)" if LIBC_UCLIBC_V_specific_date
    92 # Don't remove next line
    93 # CT_INSERT_VERSION_STRING_BELOW
    94     default "0.9.32.1" if LIBC_UCLIBC_V_0_9_32_1
    95     default "0.9.32" if LIBC_UCLIBC_V_0_9_32
    96     default "0.9.31" if LIBC_UCLIBC_V_0_9_31
    97     default "0.9.30.3" if LIBC_UCLIBC_V_0_9_30_3
    98     default "0.9.30.2" if LIBC_UCLIBC_V_0_9_30_2
    99     default "0.9.30.1" if LIBC_UCLIBC_V_0_9_30_1
   100     default "0.9.30" if LIBC_UCLIBC_V_0_9_30
   101     default "0.9.29" if LIBC_UCLIBC_V_0_9_29
   102     default "0.9.28.3" if LIBC_UCLIBC_V_0_9_28_3
   103     default "snapshot" if LIBC_UCLIBC_V_snapshot
   104 
   105 config LIBC_UCLIBC_0_9_32_or_later
   106     bool
   107     select LIBC_SUPPORT_NPTL
   108     select LIBC_UCLIBC_0_9_30_or_later
   109 
   110 config LIBC_UCLIBC_0_9_30_or_later
   111     bool
   112     select LIBC_UCLIBC_PARALLEL
   113 
   114 config LIBC_UCLIBC_PARALLEL
   115     bool
   116 
   117 choice
   118     bool
   119     prompt "uClibc verbosity:"
   120     default LIBC_UCLIBC_VERBOSITY_0
   121 
   122 config LIBC_UCLIBC_VERBOSITY_0
   123     bool
   124     prompt "Quiet build"
   125     help
   126       Print terse command indications.
   127 
   128 config LIBC_UCLIBC_VERBOSITY_1
   129     bool
   130     prompt "Brief build (show defines, ld flags)"
   131     help
   132       Print simplified command lines.
   133 
   134 config LIBC_UCLIBC_VERBOSITY_2
   135     bool
   136     prompt "Very verbose build"
   137     help
   138       Print full command lines.
   139 
   140 endchoice
   141 
   142 config LIBC_UCLIBC_VERBOSITY
   143     string
   144     default ""      if LIBC_UCLIBC_VERBOSITY_0
   145     default "V=1"   if LIBC_UCLIBC_VERBOSITY_1
   146     default "V=2"   if LIBC_UCLIBC_VERBOSITY_2
   147 
   148 choice
   149     bool
   150     prompt "Debug level"
   151     default LIBC_UCLIBC_DEBUG_LEVEL_0
   152 
   153 config LIBC_UCLIBC_DEBUG_LEVEL_0
   154     bool
   155     prompt "none"
   156 
   157 config LIBC_UCLIBC_DEBUG_LEVEL_1
   158     bool
   159     prompt "minimal"
   160 
   161 config LIBC_UCLIBC_DEBUG_LEVEL_2
   162     bool
   163     prompt "all"
   164 
   165 endchoice
   166 
   167 config LIBC_UCLIBC_DEBUG_LEVEL
   168     int
   169     default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
   170     default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
   171     default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
   172 
   173 config LIBC_UCLIBC_CONFIG_FILE
   174     string
   175     prompt "Configuration file"
   176     default ""
   177     help
   178       Path to the configuration file.
   179       
   180       You _must_ provide one (for now).