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