config/libc/glibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Jan 17 23:06:02 2010 +0100 (2010-01-17)
changeset 1740 c57458bb354d
parent 1615 50b25816f5bb
child 1758 dbdc25d84a20
permissions -rw-r--r--
configure: do not require hg when configuring in an hg clone

When configuring in an hg clone, we need hg to compute the version string.
It can happen that users do not have Mercurial (eg. if they got a snapshot
rather that they did a full clone). In this case, we can still run, of
course, so simply fill the version string with a sufficiently explicit
value, that does not require hg. The date is a good candidate.
yann@448
     1
# glibc options
yann@1345
     2
# depends on ! BARE_METAL && ARCH_USE_MMU
yann@448
     3
yann@922
     4
config LIBC_glibc
yann@922
     5
    select LIBC_SUPPORT_NPTL
yann@922
     6
    select LIBC_SUPPORT_LINUXTHREADS
yann@922
     7
    help
yann@922
     8
      The de-facto standard for Linux distributions.
yann@922
     9
      Feature-rich, but large...  Most usefull for desktop-like systems.
yann@852
    10
yann@448
    11
choice
yann@448
    12
    bool
yann@448
    13
    prompt "glibc version"
yann@1535
    14
# Don't remove next line
yann@1535
    15
# CT_INSERT_VERSION_BELOW
yann@448
    16
yann@1625
    17
config LIBC_V_2_10_1
yann@1625
    18
    bool
yann@1625
    19
    prompt "2.10.1 (EXPERIMENTAL)"
yann@1625
    20
    depends on EXPERIMENTAL
yann@1625
    21
    select LIBC_GLIBC_USE_PORTS
yann@1625
    22
yann@1534
    23
config LIBC_V_2_9
yann@448
    24
    bool
yann@1534
    25
    prompt "2.9"
yann@1534
    26
    select LIBC_GLIBC_2_8_or_later
yann@448
    27
yann@1114
    28
config LIBC_V_2_8
yann@1114
    29
    bool
yann@1260
    30
    prompt "2.8"
yann@1314
    31
    select LIBC_GLIBC_2_8_or_later
yann@1114
    32
yann@1534
    33
config LIBC_V_2_7
yann@1114
    34
    bool
yann@1615
    35
    prompt "2.7 (OBSOLETE)"
yann@1615
    36
    depends on OBSOLETE
yann@1534
    37
yann@1534
    38
config LIBC_V_2_6_1
yann@1534
    39
    bool
yann@1615
    40
    prompt "2.6.1 (OBSOLETE)"
yann@1615
    41
    depends on OBSOLETE
yann@1534
    42
yann@1534
    43
config LIBC_V_2_6
yann@1534
    44
    bool
yann@1615
    45
    prompt "2.6 (OBSOLETE)"
yann@1615
    46
    depends on OBSOLETE
yann@1534
    47
yann@1534
    48
config LIBC_V_2_5_1
yann@1534
    49
    bool
yann@1615
    50
    prompt "2.5.1 (OBSOLETE)"
yann@1615
    51
    depends on OBSOLETE
yann@1534
    52
yann@1534
    53
config LIBC_V_2_5
yann@1534
    54
    bool
yann@1615
    55
    prompt "2.5 (OBSOLETE)"
yann@1615
    56
    depends on OBSOLETE
yann@1534
    57
yann@1534
    58
config LIBC_V_2_3_6
yann@1534
    59
    bool
yann@1534
    60
    prompt "2.3.6 (OBSOLETE)"
yann@1534
    61
    depends on OBSOLETE
yann@1114
    62
yann@448
    63
endchoice
yann@448
    64
yann@448
    65
config LIBC_VERSION
yann@448
    66
    string
yann@1535
    67
# Don't remove next line
yann@1535
    68
# CT_INSERT_VERSION_STRING_BELOW
yann@1625
    69
    default "2.10.1" if LIBC_V_2_10_1
yann@1534
    70
    default "2.9" if LIBC_V_2_9
yann@1534
    71
    default "2.8" if LIBC_V_2_8
yann@1534
    72
    default "2.7" if LIBC_V_2_7
yann@1534
    73
    default "2.6.1" if LIBC_V_2_6_1
yann@1534
    74
    default "2.6" if LIBC_V_2_6
yann@1534
    75
    default "2.5.1" if LIBC_V_2_5_1
yann@1534
    76
    default "2.5" if LIBC_V_2_5
yann@448
    77
    default "2.3.6" if LIBC_V_2_3_6
yann@448
    78
yann@1314
    79
config LIBC_GLIBC_2_8_or_later
yann@1314
    80
    bool
yann@1314
    81
    default n
yann@1314
    82
yann@1260
    83
choice
yann@1114
    84
    bool
yann@1260
    85
    prompt "Retrieval method"
yann@1260
    86
    default LIBC_GLIBC_TARBALL
yann@1114
    87
yann@1260
    88
config LIBC_GLIBC_TARBALL
yann@1260
    89
    bool
yann@1260
    90
    prompt "Released tarball"
yann@1314
    91
    depends on ! LIBC_GLIBC_2_8_or_later || ! ( LIBC_GLIBC_USE_PORTS || ( LIBC_ADDONS_LIST != "" ) )
yann@1260
    92
    help
yann@1260
    93
      Until end of Februrary 2009, there was no tarball for glibc releases
yann@1260
    94
      2.8 and later. This was intentional.
yann@1260
    95
      
yann@1260
    96
      Then, all of a sudden, tarballs for those releases have appeared at the
yann@1260
    97
      traditional download place (ftp.gnu.org).
yann@1260
    98
      
yann@1260
    99
      Some of the glibc people argue that fixes are committed to the maintenance
yann@1260
   100
      branch, and thus it is the best plac e to retrieve the glibc from.
yann@1260
   101
      On the other hand, it might be preferable to always generate a toolchain
yann@1260
   102
      using a known code-base, so the toolchain can be reproducible.
yann@1260
   103
      
yann@1260
   104
      For version prior to 2.8, tarballs were readily available.
yann@1260
   105
      
yann@1260
   106
      If you want your toolchain to really be reproducible, say 'Y' here.
yann@1260
   107
      If you can live with a moving code-base, look at the other choice
yann@1260
   108
      entries, below.
yann@1114
   109
yann@1260
   110
config LIBC_GLIBC_CVS
yann@1114
   111
    bool
yann@1260
   112
    prompt "CVS checkout"
yann@1114
   113
    help
yann@1260
   114
      See the help for the entry "Released tarball", above.
yann@1260
   115
      
yann@1260
   116
      If you can live with a moving code-base, say 'Y' here.
yann@1260
   117
      If you want your toolchain to really be reproducible, look at the
yann@1260
   118
      choice entry "Released tarball from FTP", above.
yann@1114
   119
yann@1260
   120
if LIBC_GLIBC_CVS
yann@1114
   121
yann@1114
   122
config LIBC_GLIBC_CVS_date
yann@1114
   123
    string
yann@1114
   124
    prompt "checkout as of date"
yann@1114
   125
    default ""
yann@1114
   126
    help
yann@1114
   127
      The date, in ISO-8601 format, at which to check out the repository.
yann@1114
   128
yann@1260
   129
endif #  LIBC_GLIBC_CVS
yann@1260
   130
yann@1260
   131
endchoice