config/libc/uClibc.in
author Yann Diorcet <diorcet.yann@gmail.com>
Thu Nov 22 23:56:58 2012 +0100 (2012-11-22)
changeset 3131 bd172b161ff8
parent 3112 6cb56b3f2d34
child 3142 6569f6a9060c
permissions -rw-r--r--
cc: add a flag for skipping core passes

It is used for skipping unnecessary compilation steps when the libc
doesn't need to be compiled (eg. when we do not use a C library).

Signed-off-by: Yann Diorcet <diorcet.yann@gmail.com>
Message-Id: <150eadb0117e697d79aa.1353625025@blackmint>
Patchwork-Id: 201222
     1 # uClibc options
     2 
     3 ## depends on ! WINDOWS && ! BARE_METAL
     4 ##
     5 ## select LIBC_SUPPORT_LINUXTHREADS
     6 ## select LIBC_SUPPORT_THREADS_NONE
     7 ## select CC_CORE_PASSES_NEEDED
     8 ##
     9 ## help The de-facto standard for embeded linux systems.
    10 ## help
    11 ## help Highly configurable, thus as feature-rich as you
    12 ## help need, without compromising for size.
    13 
    14 if ARCH_FLOAT_SOFTFP
    15 comment "'softfp' ABI and uClibc is not entirely tested in crosstool-NG"
    16 comment "You may experience issues, although it should work just fine"
    17 endif # ARCH_FLOAT_SOFTFP
    18 
    19 choice
    20     bool
    21     prompt "uClibc version"
    22 # Don't remove next line
    23 # CT_INSERT_VERSION_BELOW
    24 
    25 config LIBC_UCLIBC_V_0_9_33_2
    26     bool
    27     prompt "0.9.33.2"
    28     select LIBC_UCLIBC_0_9_32_or_later
    29 
    30 config LIBC_UCLIBC_V_0_9_33_1
    31     bool
    32     prompt "0.9.33.1"
    33     select LIBC_UCLIBC_0_9_32_or_later
    34 
    35 config LIBC_UCLIBC_V_0_9_33
    36     bool
    37     prompt "0.9.33"
    38     select LIBC_UCLIBC_0_9_32_or_later
    39 
    40 config LIBC_UCLIBC_V_0_9_32_1
    41     bool
    42     prompt "0.9.32.1"
    43     select LIBC_UCLIBC_0_9_32_or_later
    44 
    45 config LIBC_UCLIBC_V_0_9_32
    46     bool
    47     prompt "0.9.32"
    48     select LIBC_UCLIBC_0_9_32_or_later
    49 
    50 config LIBC_UCLIBC_V_0_9_31
    51     bool
    52     prompt "0.9.31 (EXPERIMENTAL)"
    53     depends on EXPERIMENTAL
    54     select LIBC_UCLIBC_0_9_30_or_later
    55 
    56 config LIBC_UCLIBC_V_0_9_30_3
    57     bool
    58     prompt "0.9.30.3"
    59     select LIBC_UCLIBC_0_9_30_or_later
    60 
    61 config LIBC_UCLIBC_V_0_9_30_2
    62     bool
    63     prompt "0.9.30.2"
    64     select LIBC_UCLIBC_0_9_30_or_later
    65 
    66 config LIBC_UCLIBC_V_0_9_30_1
    67     bool
    68     prompt "0.9.30.1"
    69     select LIBC_UCLIBC_0_9_30_or_later
    70 
    71 config LIBC_UCLIBC_V_0_9_30
    72     bool
    73     prompt "0.9.30"
    74     select LIBC_UCLIBC_0_9_30_or_later
    75 
    76 config LIBC_UCLIBC_V_0_9_29
    77     bool
    78     prompt "0.9.29 (OBSOLETE)"
    79     depends on OBSOLETE
    80 
    81 config LIBC_UCLIBC_V_0_9_28_3
    82     bool
    83     prompt "0.9.28.3 (OBSOLETE)"
    84     depends on OBSOLETE
    85 
    86 config LIBC_UCLIBC_CUSTOM
    87     bool
    88     prompt "Custom uClibc"
    89     depends on EXPERIMENTAL
    90     select LIBC_SUPPORT_NPTL
    91     select LIBC_UCLIBC_0_9_30_or_later
    92 
    93 endchoice
    94 
    95 if LIBC_UCLIBC_CUSTOM
    96 
    97 config LIBC_UCLIBC_CUSTOM_LOCATION
    98     string
    99     prompt "Full path to custom uClibc source"
   100     default ""
   101     help
   102       Enter the path to the directory (or tarball) of your source for uClibc,
   103       or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/uClibc
   104 
   105 endif # LIBC_UCLIBC_CUSTOM
   106 
   107 config LIBC_VERSION
   108     string
   109 # Don't remove next line
   110 # CT_INSERT_VERSION_STRING_BELOW
   111     default "0.9.33.2" if LIBC_UCLIBC_V_0_9_33_2
   112     default "0.9.33.1" if LIBC_UCLIBC_V_0_9_33_1
   113     default "0.9.33" if LIBC_UCLIBC_V_0_9_33
   114     default "0.9.32.1" if LIBC_UCLIBC_V_0_9_32_1
   115     default "0.9.32" if LIBC_UCLIBC_V_0_9_32
   116     default "0.9.31" if LIBC_UCLIBC_V_0_9_31
   117     default "0.9.30.3" if LIBC_UCLIBC_V_0_9_30_3
   118     default "0.9.30.2" if LIBC_UCLIBC_V_0_9_30_2
   119     default "0.9.30.1" if LIBC_UCLIBC_V_0_9_30_1
   120     default "0.9.30" if LIBC_UCLIBC_V_0_9_30
   121     default "0.9.29" if LIBC_UCLIBC_V_0_9_29
   122     default "0.9.28.3" if LIBC_UCLIBC_V_0_9_28_3
   123     default "custom" if LIBC_UCLIBC_CUSTOM
   124 
   125 config LIBC_UCLIBC_0_9_32_or_later
   126     bool
   127     select LIBC_SUPPORT_NPTL
   128     select LIBC_UCLIBC_0_9_30_or_later
   129 
   130 config LIBC_UCLIBC_0_9_30_or_later
   131     bool
   132     select LIBC_UCLIBC_PARALLEL
   133 
   134 config LIBC_UCLIBC_PARALLEL
   135     bool
   136 
   137 choice
   138     bool
   139     prompt "uClibc verbosity:"
   140     default LIBC_UCLIBC_VERBOSITY_0
   141 
   142 config LIBC_UCLIBC_VERBOSITY_0
   143     bool
   144     prompt "Quiet build"
   145     help
   146       Print terse command indications.
   147 
   148 config LIBC_UCLIBC_VERBOSITY_1
   149     bool
   150     prompt "Brief build (show defines, ld flags)"
   151     help
   152       Print simplified command lines.
   153 
   154 config LIBC_UCLIBC_VERBOSITY_2
   155     bool
   156     prompt "Very verbose build"
   157     help
   158       Print full command lines.
   159 
   160 endchoice
   161 
   162 config LIBC_UCLIBC_VERBOSITY
   163     string
   164     default ""      if LIBC_UCLIBC_VERBOSITY_0
   165     default "V=1"   if LIBC_UCLIBC_VERBOSITY_1
   166     default "V=2"   if LIBC_UCLIBC_VERBOSITY_2
   167 
   168 choice
   169     bool
   170     prompt "Debug level"
   171     default LIBC_UCLIBC_DEBUG_LEVEL_0
   172 
   173 config LIBC_UCLIBC_DEBUG_LEVEL_0
   174     bool
   175     prompt "none"
   176 
   177 config LIBC_UCLIBC_DEBUG_LEVEL_1
   178     bool
   179     prompt "minimal"
   180 
   181 config LIBC_UCLIBC_DEBUG_LEVEL_2
   182     bool
   183     prompt "normal"
   184 
   185 config LIBC_UCLIBC_DEBUG_LEVEL_3
   186     bool
   187     prompt "all"
   188 
   189 endchoice
   190 
   191 config LIBC_UCLIBC_DEBUG_LEVEL
   192     int
   193     default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
   194     default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
   195     default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
   196 
   197 config LIBC_UCLIBC_CONFIG_FILE
   198     string
   199     prompt "Configuration file"
   200     default ""
   201     help
   202       Path to the configuration file.
   203       
   204       You _must_ provide one (for now).