config/libc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Oct 12 10:38:02 2008 +0000 (2008-10-12)
changeset 918 819bb22347d4
parent 850 ef8549b58b6f
child 922 3f0456891349
permissions -rw-r--r--
Update the auto-completion function:
- be silent in case of errors
- also suggest 'build.'

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