config/libc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Aug 02 20:06:44 2009 +0200 (2009-08-02)
changeset 1446 0a44fc4d6bd0
parent 1178 41a84f7d3b4f
child 1371 802c132f1f71
permissions -rw-r--r--
[config] Allow user to specify custom CONFIG_SHELL

In case the shell the user wants to use as CONFIG_SHELL is located in a
weird place (eg. /opt/bash/bin/bash), or is weirdly named (eg. bash-4),
let the user enter the patch to the shell.
     1 # C library options
     2 
     3 config LIBC
     4     string
     5     default "none" if BARE_METAL
     6 
     7 menu "C-library"
     8 
     9 config LIBC_VERSION
    10     string
    11     help
    12       Enter the date of the snapshot you want to use in the form: YYYYMMDD
    13       where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
    14       day in the month.
    15       
    16       Please note:
    17       - glibc has snapshots done every monday, and only the last ten are kept.
    18       - uClibc has daily snapshots, and only the last 30-or-so are kept.
    19       
    20       So if you want to be able to re-build your toolchain later, you will
    21       have to save your C library tarball by yourself.
    22 
    23 source config.gen/libc.in
    24 
    25 comment "Common C library options"
    26 
    27 config LIBC_SUPPORT_NPTL
    28     bool
    29     default n
    30 
    31 config LIBC_SUPPORT_LINUXTHREADS
    32     bool
    33     default n
    34 
    35 config THREADS
    36     string
    37     default "nptl"          if THREADS_NPTL
    38     default "linuxthreads"  if THREADS_LINUXTHREADS
    39     default "none"          if THREADS_NONE
    40 
    41 choice
    42     bool
    43     prompt "Threading implementation to use:"
    44     default THREADS_NPTL           if LIBC_SUPPORT_NPTL
    45     default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    46     default THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    47 
    48 config THREADS_NPTL
    49     bool
    50     prompt "nptl"
    51     depends on LIBC_SUPPORT_NPTL
    52 
    53 config THREADS_LINUXTHREADS
    54     bool
    55     prompt "linuxthreads"
    56     depends on LIBC_SUPPORT_LINUXTHREADS
    57 
    58 config THREADS_NONE
    59     bool
    60     prompt "none"
    61 
    62 endchoice
    63 
    64 endmenu