config/libc/uClibc.in
author Michael Hope <michael.hope@linaro.org>
Thu Sep 29 12:40:42 2011 +1300 (2011-09-29)
changeset 2695 f2495884ca3e
parent 2518 aa833630f29c
child 2761 19760eb7a090
permissions -rw-r--r--
config: add a 'auto' value for the number of parallel jobs

When CT_PARALLEL_JOBS is -1, set the number of parallel jobs to the
number of online CPUs + 1. Update documentation to match.

I find this useful when building in the cloud. You can use the same
.config file and have the build adapt to the number of processors
available. Limited testing shows that NCPUS+1 is faster than NCPUS+0
or NCPUS+2.

Signed-off-by: Michael Hope <michael.hope@linaro.org>
     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_32_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_32_or_later
    95     bool
    96     select LIBC_SUPPORT_NPTL
    97     select LIBC_UCLIBC_0_9_30_or_later
    98 
    99 config LIBC_UCLIBC_0_9_30_or_later
   100     bool
   101     select LIBC_UCLIBC_PARALLEL
   102 
   103 config LIBC_UCLIBC_PARALLEL
   104     bool
   105 
   106 choice
   107     bool
   108     prompt "uClibc verbosity:"
   109     default LIBC_UCLIBC_VERBOSITY_0
   110 
   111 config LIBC_UCLIBC_VERBOSITY_0
   112     bool
   113     prompt "Quiet build"
   114     help
   115       Print terse command indications.
   116 
   117 config LIBC_UCLIBC_VERBOSITY_1
   118     bool
   119     prompt "Brief build (show defines, ld flags)"
   120     help
   121       Print simplified command lines.
   122 
   123 config LIBC_UCLIBC_VERBOSITY_2
   124     bool
   125     prompt "Very verbose build"
   126     help
   127       Print full command lines.
   128 
   129 endchoice
   130 
   131 config LIBC_UCLIBC_VERBOSITY
   132     string
   133     default ""      if LIBC_UCLIBC_VERBOSITY_0
   134     default "V=1"   if LIBC_UCLIBC_VERBOSITY_1
   135     default "V=2"   if LIBC_UCLIBC_VERBOSITY_2
   136 
   137 choice
   138     bool
   139     prompt "Debug level"
   140     default LIBC_UCLIBC_DEBUG_LEVEL_0
   141 
   142 config LIBC_UCLIBC_DEBUG_LEVEL_0
   143     bool
   144     prompt "none"
   145 
   146 config LIBC_UCLIBC_DEBUG_LEVEL_1
   147     bool
   148     prompt "minimal"
   149 
   150 config LIBC_UCLIBC_DEBUG_LEVEL_2
   151     bool
   152     prompt "all"
   153 
   154 endchoice
   155 
   156 config LIBC_UCLIBC_DEBUG_LEVEL
   157     int
   158     default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
   159     default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
   160     default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
   161 
   162 config LIBC_UCLIBC_CONFIG_FILE
   163     string
   164     prompt "Configuration file"
   165     default ""
   166     help
   167       Path to the configuration file.
   168       
   169       You _must_ provide one (for now).