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).
yann@1
     1
# C library options
yann@1
     2
yann@850
     3
config LIBC
yann@850
     4
    string
mgl@1469
     5
    default "newlib" if BARE_METAL && ARCH_avr32 && EXPERIMENTAL
mgl@1468
     6
    default "none" if BARE_METAL
yann@850
     7
yann@1
     8
menu "C-library"
yann@1
     9
yann@852
    10
config LIBC_VERSION
yann@852
    11
    string
yann@852
    12
    help
yann@852
    13
      Enter the date of the snapshot you want to use in the form: YYYYMMDD
yann@852
    14
      where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
yann@852
    15
      day in the month.
yann@852
    16
      
yann@852
    17
      Please note:
yann@852
    18
      - glibc has snapshots done every monday, and only the last ten are kept.
yann@852
    19
      - uClibc has daily snapshots, and only the last 30-or-so are kept.
yann@852
    20
      
yann@852
    21
      So if you want to be able to re-build your toolchain later, you will
yann@852
    22
      have to save your C library tarball by yourself.
yann@852
    23
yann@922
    24
source config.gen/libc.in
yann@1
    25
yann@852
    26
comment "Common C library options"
yann@1
    27
yann@95
    28
config LIBC_SUPPORT_NPTL
yann@95
    29
    bool
yann@95
    30
    default n
yann@95
    31
yann@95
    32
config LIBC_SUPPORT_LINUXTHREADS
yann@95
    33
    bool
yann@95
    34
    default n
yann@95
    35
yann@852
    36
config THREADS
yann@852
    37
    string
yann@852
    38
    default "nptl"          if THREADS_NPTL
yann@852
    39
    default "linuxthreads"  if THREADS_LINUXTHREADS
yann@852
    40
    default "none"          if THREADS_NONE
yann@852
    41
yann@802
    42
choice
yann@802
    43
    bool
yann@802
    44
    prompt "Threading implementation to use:"
yann@802
    45
    default THREADS_NPTL           if LIBC_SUPPORT_NPTL
yann@802
    46
    default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
yann@802
    47
    default THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
yann@1
    48
yann@802
    49
config THREADS_NPTL
yann@802
    50
    bool
yann@802
    51
    prompt "nptl"
yann@802
    52
    depends on LIBC_SUPPORT_NPTL
yann@787
    53
yann@802
    54
config THREADS_LINUXTHREADS
yann@802
    55
    bool
yann@802
    56
    prompt "linuxthreads"
yann@802
    57
    depends on LIBC_SUPPORT_LINUXTHREADS
yann@802
    58
yann@802
    59
config THREADS_NONE
yann@802
    60
    bool
yann@802
    61
    prompt "none"
yann@802
    62
yann@802
    63
endchoice
yann@802
    64
yann@1
    65
endmenu