config/libc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Aug 30 19:33:48 2009 +0200 (2009-08-30)
changeset 1497 1b90f0b34c80
parent 1468 841be3d8669e
child 1585 646bafb5b7f2
permissions -rw-r--r--
config: move down companion libraries sub-menu

Move the companion libraries sub-menu down the main menu.
That way, the user does not need to go back and forth in the menu
to change options set by the different components that select the
companion libraries (binutils, gcc, gdb).
     1 # C library options
     2 
     3 config LIBC
     4     string
     5     default "newlib" if BARE_METAL && ARCH_avr32 && EXPERIMENTAL
     6     default "none" if BARE_METAL
     7 
     8 menu "C-library"
     9 
    10 config LIBC_VERSION
    11     string
    12     help
    13       Enter the date of the snapshot you want to use in the form: YYYYMMDD
    14       where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
    15       day in the month.
    16       
    17       Please note:
    18       - glibc has snapshots done every monday, and only the last ten are kept.
    19       - uClibc has daily snapshots, and only the last 30-or-so are kept.
    20       
    21       So if you want to be able to re-build your toolchain later, you will
    22       have to save your C library tarball by yourself.
    23 
    24 source config.gen/libc.in
    25 
    26 comment "Common C library options"
    27 
    28 config LIBC_SUPPORT_NPTL
    29     bool
    30     default n
    31 
    32 config LIBC_SUPPORT_LINUXTHREADS
    33     bool
    34     default n
    35 
    36 config THREADS
    37     string
    38     default "nptl"          if THREADS_NPTL
    39     default "linuxthreads"  if THREADS_LINUXTHREADS
    40     default "none"          if THREADS_NONE
    41 
    42 choice
    43     bool
    44     prompt "Threading implementation to use:"
    45     default THREADS_NPTL           if LIBC_SUPPORT_NPTL
    46     default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    47     default THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    48 
    49 config THREADS_NPTL
    50     bool
    51     prompt "nptl"
    52     depends on LIBC_SUPPORT_NPTL
    53 
    54 config THREADS_LINUXTHREADS
    55     bool
    56     prompt "linuxthreads"
    57     depends on LIBC_SUPPORT_LINUXTHREADS
    58 
    59 config THREADS_NONE
    60     bool
    61     prompt "none"
    62 
    63 endchoice
    64 
    65 endmenu