config/libc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Aug 27 16:24:24 2008 +0000 (2008-08-27)
changeset 815 6236ce3be104
parent 802 4c6b50e0021a
child 850 ef8549b58b6f
permissions -rw-r--r--
eglibc and PowerPC SPE documentaion, courtesy Nate CASE.

/trunk/config/libc.in | 7 7 0 0 +++++++
/trunk/arch/powerpc/config.in | 11 10 1 0 ++++++++++-
2 files changed, 17 insertions(+), 1 deletion(-)
     1 # C library options
     2 
     3 menu "C-library"
     4 
     5 choice
     6     bool
     7     prompt "C-library to use:"
     8     default LIBC_GLIBC
     9 
    10 config LIBC_GLIBC
    11     bool
    12     prompt "glibc"
    13     select LIBC_SUPPORT_NPTL
    14     select LIBC_SUPPORT_LINUXTHREADS
    15 
    16 if LIBC_GLIBC
    17 source config/libc/glibc.in
    18 endif
    19 
    20 config LIBC_EGLIBC
    21     bool
    22     prompt "eglibc (EXPERIMENTAL)"
    23     select LIBC_SUPPORT_NPTL
    24     select LIBC_SUPPORT_LINUXTHREADS
    25     depends on EXPERIMENTAL
    26     help
    27       EGLIBC (Embedded GLIBC) is a variant of the standard GNU GLIBC
    28       that is designed to work well on embedded systems.  EGLIBC strives
    29       to be source and binary compatible with GLIBC.  Its goals include
    30       a reduced footprint, configurable components, and improved
    31       cross-compilation support.  EGLIBC also includes some embedded ports
    32       (such as e500/spe) that are normally separate add-ons of GLIBC.
    33 
    34 if LIBC_EGLIBC
    35 source config/libc/eglibc.in
    36 endif
    37 
    38 config LIBC_UCLIBC
    39     bool
    40     prompt "uClibc"
    41     select LIBC_SUPPORT_LINUXTHREADS
    42 
    43 if LIBC_UCLIBC
    44 source config/libc/uClibc.in
    45 endif
    46 
    47 endchoice
    48 
    49 config LIBC_VERSION
    50     string
    51 
    52 config LIBC
    53     string
    54     default "glibc" if LIBC_GLIBC
    55     default "eglibc" if LIBC_EGLIBC
    56     default "uClibc" if LIBC_UCLIBC
    57 
    58 config LIBC_SUPPORT_NPTL
    59     bool
    60     default n
    61 
    62 config LIBC_SUPPORT_LINUXTHREADS
    63     bool
    64     default n
    65 
    66 choice
    67     bool
    68     prompt "Threading implementation to use:"
    69     default THREADS_NPTL           if LIBC_SUPPORT_NPTL
    70     default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    71     default THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    72 
    73 config THREADS_NPTL
    74     bool
    75     prompt "nptl"
    76     depends on LIBC_SUPPORT_NPTL
    77 
    78 config THREADS_LINUXTHREADS
    79     bool
    80     prompt "linuxthreads"
    81     depends on LIBC_SUPPORT_LINUXTHREADS
    82 
    83 config THREADS_NONE
    84     bool
    85     prompt "none"
    86 
    87 endchoice
    88 
    89 config THREADS
    90     string
    91     default "nptl"          if THREADS_NPTL
    92     default "linuxthreads"  if THREADS_LINUXTHREADS
    93     default "none"          if THREADS_NONE
    94 
    95 config LIBC_VERSION
    96     help
    97       Enter the date of the snapshot you want to use in the form: YYYYMMDD
    98       where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
    99       day in the month.
   100       
   101       Please note:
   102       - glibc has snapshots done every monday, and only the last ten are kept.
   103       - uClibc has daily snapshots, and only the last 30-or-so are kept.
   104       
   105       So if you want to be able to re-build your toolchain later, you will
   106       have to save your C library tarball by yourself.
   107 
   108 endmenu