config/libc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Jun 11 21:47:19 2009 +0000 (2009-06-11)
branch1.4
changeset 1451 25d050084e98
parent 1178 41a84f7d3b4f
child 1371 802c132f1f71
permissions -rw-r--r--
populate: fix installing dynamic linker 'ld.so'

The dynamic linker, ld.so, needs the execute bit to be set.
Detect tht the library being installed is in fact ld.so and
install it with 0755 instead of 0644.

Fix detecting src == dst.

Use a simpler command to copy src -> dst.

Also change echo to printf, get rid of 'echo -n', which is
highly non-portable.


-------- diffstat follows --------
/trunk/scripts/populate.in | 76 43 33 0 +++++++++++++++++++++++++++++-----------------------
1 file changed, 43 insertions(+), 33 deletions(-)
(transplanted from d7ddcb75e0f703e2ba6d17169167356389224870)
     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