config/libc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jul 11 14:26:52 2010 +0200 (2010-07-11)
changeset 2016 46366b11da3d
parent 1976 2d90ec981ba3
child 2017 f637b6c2162b
permissions -rw-r--r--
libc: add global threads support option
     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     default n
    27 
    28 config LIBC_SUPPORT_NPTL
    29     bool
    30     default n
    31     select LIBC_SUPPORT_THREADS_ANY
    32 
    33 config LIBC_SUPPORT_LINUXTHREADS
    34     bool
    35     default n
    36     select LIBC_SUPPORT_THREADS_ANY
    37 
    38 config THREADS
    39     string
    40     default "nptl"          if THREADS_NPTL
    41     default "linuxthreads"  if THREADS_LINUXTHREADS
    42     default "none"          if THREADS_NONE || LIBC_none
    43 #                              No C library, no threads!
    44 
    45 if ! LIBC_none
    46 
    47 comment "Common C library options"
    48 
    49 choice
    50     bool
    51     prompt "Threading implementation to use:"
    52     default THREADS_NPTL           if LIBC_SUPPORT_NPTL
    53     default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    54     default THREADS_NONE           if ! LIBC_SUPPORT_THREADS_ANY
    55 
    56 config THREADS_NPTL
    57     bool
    58     prompt "nptl"
    59     depends on LIBC_SUPPORT_NPTL
    60 
    61 config THREADS_LINUXTHREADS
    62     bool
    63     prompt "linuxthreads"
    64     depends on LIBC_SUPPORT_LINUXTHREADS
    65 
    66 config THREADS_NONE
    67     bool
    68     prompt "none"
    69 
    70 endchoice
    71 
    72 source "config.gen/libc.in.2"
    73 
    74 endif # ! LIBC_none
    75 
    76 endmenu