config/libc.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
parent 2215 bd86485d966a
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # C library options
     2 
     3 menu "C-library"
     4 
     5 config LIBC
     6     string
     7 
     8 config LIBC_VERSION
     9     string
    10     help
    11       Enter the date of the snapshot you want to use in the form: YYYYMMDD
    12       where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
    13       day in the month.
    14       
    15       Please note:
    16       - glibc has snapshots done every monday, and only the last ten are kept.
    17       - uClibc has daily snapshots, and only the last 30-or-so are kept.
    18       
    19       So if you want to be able to re-build your toolchain later, you will
    20       have to save your C library tarball by yourself.
    21 
    22 source "config.gen/libc.in"
    23 
    24 config LIBC_SUPPORT_THREADS_ANY
    25     bool
    26 
    27 config LIBC_SUPPORT_NPTL
    28     bool
    29     select LIBC_SUPPORT_THREADS_ANY
    30 
    31 config LIBC_SUPPORT_LINUXTHREADS
    32     bool
    33     select LIBC_SUPPORT_THREADS_ANY
    34 
    35 config LIBC_SUPPORT_WIN32THREADS
    36     bool
    37     select LIBC_SUPPORT_THREADS_ANY
    38 
    39 config LIBC_SUPPORT_THREADS_NONE
    40     bool
    41 
    42 config THREADS
    43     string
    44     default "nptl"          if THREADS_NPTL
    45     default "linuxthreads"  if THREADS_LINUXTHREADS
    46     default "win32"         if THREADS_WIN32THREADS
    47     default "none"          if THREADS_NONE || LIBC_none
    48 #                              No C library, no threads!
    49 
    50 if ! LIBC_none
    51 
    52 comment "Common C library options"
    53 
    54 choice
    55     bool
    56     prompt "Threading implementation to use:"
    57     default THREADS_NPTL           if LIBC_SUPPORT_NPTL
    58     default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    59     default THREADS_WIN32          if LIBC_SUPPORT_WIN32THREADS
    60     default THREADS_NONE           if ! LIBC_SUPPORT_THREADS_ANY
    61 
    62 config THREADS_NPTL
    63     bool
    64     prompt "nptl"
    65     depends on LIBC_SUPPORT_NPTL
    66 
    67 config THREADS_LINUXTHREADS
    68     bool
    69     prompt "linuxthreads"
    70     depends on LIBC_SUPPORT_LINUXTHREADS
    71 
    72 config THREADS_WIN32THREADS
    73     bool
    74     prompt "win32"
    75     depends on LIBC_SUPPORT_WIN32THREADS
    76 
    77 config THREADS_NONE
    78     bool
    79     prompt "none"
    80     depends on LIBC_SUPPORT_THREADS_NONE
    81 
    82 endchoice
    83 
    84 config LIBC_XLDD
    85     bool
    86     prompt "Install a cross ldd-like helper"
    87     depends on SHARED_LIBS
    88     depends on ! BARE_METAL
    89     default y
    90     help
    91       Say 'Y' here if you want to have a ldd-like helper that
    92       you can run on your build system, and that will (try to)
    93       resolve shared libraries dependencies as if run on the
    94       target.
    95       
    96       Note that the cross-ldd helper is not a full replacement
    97       for the native ldd. Please see the help, by running it
    98       with '--help' for more explanations.
    99 
   100 source "config.gen/libc.in.2"
   101 
   102 endif # ! LIBC_none
   103 
   104 endmenu