config/libc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Oct 14 21:30:27 2008 +0000 (2008-10-14)
changeset 935 e175e3538310
parent 852 c17bb66e2aa5
child 1178 41a84f7d3b4f
permissions -rw-r--r--
Introduce the notion of a 'sample comment'.

- presence of the sample's reported.by file is now mandatory.
- when saving a sample, reporter name & URL are queried, to avoid operator forget about creating the reported.by file.
- when saving a sample, one can store a few-liner comment.
- when recalling a sample, the reporter name, URL and comment (if present) are printed.
- update the powerpc-e500v2-linux-gnuspe sample to include Nate's comment (from his original mail).
- update all samples that were missing the reported.by file.

/trunk/scripts/saveSample.sh | 46 35 11 0 ++++++++++++++++++------
/trunk/scripts/showSamples.sh | 12 6 6 0 +++---
/trunk/samples/powerpc-e500v2-linux-gnuspe/reported.by | 15 15 0 0 ++++++++
/trunk/samples/samples.mk | 22 17 5 0 +++++++++--
4 files changed, 73 insertions(+), 22 deletions(-)
     1 # C library options
     2 
     3 config LIBC
     4     string
     5     default "none" if BARE_METAL
     6 
     7 if ! BARE_METAL
     8 
     9 menu "C-library"
    10 
    11 config LIBC_VERSION
    12     string
    13     help
    14       Enter the date of the snapshot you want to use in the form: YYYYMMDD
    15       where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
    16       day in the month.
    17       
    18       Please note:
    19       - glibc has snapshots done every monday, and only the last ten are kept.
    20       - uClibc has daily snapshots, and only the last 30-or-so are kept.
    21       
    22       So if you want to be able to re-build your toolchain later, you will
    23       have to save your C library tarball by yourself.
    24 
    25 source config.gen/libc.in
    26 
    27 comment "Common C library options"
    28 
    29 config LIBC_SUPPORT_NPTL
    30     bool
    31     default n
    32 
    33 config LIBC_SUPPORT_LINUXTHREADS
    34     bool
    35     default n
    36 
    37 config THREADS
    38     string
    39     default "nptl"          if THREADS_NPTL
    40     default "linuxthreads"  if THREADS_LINUXTHREADS
    41     default "none"          if THREADS_NONE
    42 
    43 choice
    44     bool
    45     prompt "Threading implementation to use:"
    46     default THREADS_NPTL           if LIBC_SUPPORT_NPTL
    47     default THREADS_LINUXTHREADS   if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    48     default THREADS_NONE           if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
    49 
    50 config THREADS_NPTL
    51     bool
    52     prompt "nptl"
    53     depends on LIBC_SUPPORT_NPTL
    54 
    55 config THREADS_LINUXTHREADS
    56     bool
    57     prompt "linuxthreads"
    58     depends on LIBC_SUPPORT_LINUXTHREADS
    59 
    60 config THREADS_NONE
    61     bool
    62     prompt "none"
    63 
    64 endchoice
    65 
    66 # Hack: mconf does not allow to include a file multiple times,
    67 # so include glibc and eglibc common options from here, rather
    68 # than from each config files.
    69 if LIBC_glibc || LIBC_eglibc
    70 source config/libc/glibc-eglibc.in-common
    71 endif
    72 
    73 endmenu
    74 
    75 endif # ! BARE_METAL