config/libc/eglibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 01 22:46:57 2011 +0200 (2011-08-01)
changeset 2591 491d62ac2017
parent 2520 e3523df95b6b
child 2909 28ac8fbd9e6a
permissions -rw-r--r--
configure: do not require svn

svn is needed to download eglibc from the upstream repository.
In some situations, though, it can happen that:
- the developpers' machines do not have svn
- a LAN mirror has been set-up with pre-downloaded eglibc tarballs
In this case, it makes sense not to hard-depend on svn.

So, if svn is missing, just say so, and add a comment in the
menuconfig.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
yann@787
     1
# eglibc options
yann@787
     2
yann@2444
     3
## depends on ! MINGW32 && ! BARE_METAL && ARCH_USE_MMU
yann@2444
     4
##
yann@2444
     5
## select LIBC_SUPPORT_NPTL
yann@2444
     6
## select LIBC_SUPPORT_LINUXTHREADS
yann@2444
     7
##
yann@2444
     8
## help EGLIBC (Embedded GLIBC) is a variant of the standard GNU GLIBC
yann@2444
     9
## help that is designed to work well on embedded systems.  EGLIBC strives
yann@2444
    10
## help to be source and binary compatible with GLIBC.  Its goals include
yann@2444
    11
## help a reduced footprint, configurable components, and improved
yann@2444
    12
## help cross-compilation support.  EGLIBC also includes some embedded ports
yann@2444
    13
## help (such as e500/spe) that are normally separate add-ons of GLIBC.
yann@852
    14
yann@787
    15
choice
yann@787
    16
    bool
yann@787
    17
    prompt "eglibc version"
yann@1535
    18
# Don't remove next line
yann@1535
    19
# CT_INSERT_VERSION_BELOW
yann@787
    20
bryanhundven@2512
    21
config LIBC_EGLIBC_V_2_14
bryanhundven@2512
    22
    bool
bryanhundven@2512
    23
    prompt "2_14"
bryanhundven@2512
    24
    depends on EXPERIMENTAL
bryanhundven@2512
    25
    select LIBC_EGLIBC_2_14_or_later
bryanhundven@2512
    26
bryanhundven@2299
    27
config LIBC_EGLIBC_V_2_13
bryanhundven@2299
    28
    bool
bryanhundven@2299
    29
    prompt "2_13"
bryanhundven@2299
    30
    depends on EXPERIMENTAL
benoit@2489
    31
    select LIBC_EGLIBC_2_13_or_later
bryanhundven@2299
    32
bryanhundven@2239
    33
config LIBC_EGLIBC_V_2_12
bryanhundven@2156
    34
    bool
bryanhundven@2156
    35
    prompt "2_12"
benoit@2489
    36
    select LIBC_EGLIBC_2_12_or_later
bryanhundven@2156
    37
bryanhundven@2239
    38
config LIBC_EGLIBC_V_2_11
bryanhundven@2156
    39
    bool
bryanhundven@2156
    40
    prompt "2_11"
benoit@2489
    41
    select LIBC_EGLIBC_2_11_or_later
bryanhundven@2156
    42
bryanhundven@2239
    43
config LIBC_EGLIBC_V_2_10
yann@787
    44
    bool
yann@1534
    45
    prompt "2_10"
benoit@2489
    46
    select LIBC_EGLIBC_2_10_or_later
yann@1534
    47
bryanhundven@2239
    48
config LIBC_EGLIBC_V_2_9
yann@1534
    49
    bool
yann@1534
    50
    prompt "2_9"
benoit@2489
    51
    select LIBC_EGLIBC_2_9_or_later
yann@1534
    52
bryanhundven@2239
    53
config LIBC_EGLIBC_V_2_8
yann@1534
    54
    bool
yann@1615
    55
    prompt "2_8 (OBSOLETE)"
yann@1615
    56
    depends on OBSOLETE
yann@1534
    57
bryanhundven@2239
    58
config LIBC_EGLIBC_V_2_7
yann@1534
    59
    bool
yann@1615
    60
    prompt "2_7 (OBSOLETE)"
yann@1615
    61
    depends on OBSOLETE
yann@787
    62
bryanhundven@2239
    63
config LIBC_EGLIBC_V_2_6
yann@787
    64
    bool
yann@1615
    65
    prompt "2_6 (OBSOLETE)"
yann@1615
    66
    depends on OBSOLETE
yann@787
    67
bryanhundven@2239
    68
config LIBC_EGLIBC_V_2_5
yann@787
    69
    bool
yann@1615
    70
    prompt "2_5 (OBSOLETE)"
yann@1615
    71
    depends on OBSOLETE
yann@1438
    72
bryanhundven@2239
    73
config LIBC_EGLIBC_V_TRUNK
yann@865
    74
    bool
yann@865
    75
    prompt "'trunk'"
bryanhundven@2512
    76
    select LIBC_EGLIBC_2_14_or_later
yann@865
    77
    help
yann@865
    78
      Selecting this will export the trunk of the eglibc subversion repository.
yann@865
    79
yann@787
    80
endchoice
yann@787
    81
yann@787
    82
config LIBC_VERSION
yann@787
    83
    string
yann@1535
    84
# Don't remove next line
yann@1535
    85
# CT_INSERT_VERSION_STRING_BELOW
bryanhundven@2512
    86
    default "2_14" if LIBC_EGLIBC_V_2_14
bryanhundven@2299
    87
    default "2_13" if LIBC_EGLIBC_V_2_13
bryanhundven@2239
    88
    default "2_12" if LIBC_EGLIBC_V_2_12
bryanhundven@2239
    89
    default "2_11" if LIBC_EGLIBC_V_2_11
bryanhundven@2239
    90
    default "2_10" if LIBC_EGLIBC_V_2_10
bryanhundven@2239
    91
    default "2_9" if LIBC_EGLIBC_V_2_9
bryanhundven@2239
    92
    default "2_8" if LIBC_EGLIBC_V_2_8
bryanhundven@2239
    93
    default "2_7" if LIBC_EGLIBC_V_2_7
bryanhundven@2239
    94
    default "2_6" if LIBC_EGLIBC_V_2_6
bryanhundven@2239
    95
    default "2_5" if LIBC_EGLIBC_V_2_5
bryanhundven@2239
    96
    default "trunk" if LIBC_EGLIBC_V_TRUNK
yann@787
    97
bryanhundven@2512
    98
config LIBC_EGLIBC_2_14_or_later
bryanhundven@2512
    99
    bool
bryanhundven@2512
   100
    select LIBC_EGLIBC_2_13_or_later
bryanhundven@2512
   101
benoit@2489
   102
config LIBC_EGLIBC_2_13_or_later
benoit@2489
   103
    bool
benoit@2489
   104
    select LIBC_EGLIBC_2_12_or_later
benoit@2489
   105
benoit@2489
   106
config LIBC_EGLIBC_2_12_or_later
benoit@2489
   107
    bool
benoit@2489
   108
    select LIBC_EGLIBC_2_11_or_later
benoit@2489
   109
benoit@2489
   110
config LIBC_EGLIBC_2_11_or_later
benoit@2489
   111
    bool
benoit@2489
   112
    select LIBC_EGLIBC_2_10_or_later
benoit@2489
   113
benoit@2489
   114
config LIBC_EGLIBC_2_10_or_later
benoit@2489
   115
    bool
benoit@2489
   116
    select LIBC_EGLIBC_2_9_or_later
benoit@2489
   117
benoit@2489
   118
config LIBC_EGLIBC_2_9_or_later
benoit@2489
   119
    bool
benoit@2489
   120
    select LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
benoit@2489
   121
benoit@2489
   122
config LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
benoit@2489
   123
    bool
benoit@2489
   124
yann@2591
   125
if CONFIGURE_has_svn
yann@2591
   126
yann@787
   127
config EGLIBC_REVISION
yann@787
   128
    string
yann@787
   129
    prompt "Revision to use"
yann@787
   130
    default "HEAD"
yann@787
   131
    help
yann@787
   132
      Enter the revision of trunk you want to use.
yann@787
   133
      Default is HEAD.
yann@787
   134
      
yann@787
   135
      A revision argument can be one of:
yann@787
   136
          NUMBER       revision number
yann@787
   137
          '{' DATE '}' revision at start of the date (*)
yann@787
   138
          'HEAD'       latest in repository
yann@787
   139
      
yann@787
   140
      (*) If you want to use a date, please use ISO-8601 formats if
yann@787
   141
          at all possible.
yann@787
   142
bryanhundven@2520
   143
config EGLIBC_HTTP
bryanhundven@2520
   144
    bool
bryanhundven@2520
   145
    prompt "use http:// instead of svn://"
bryanhundven@2520
   146
    help
bryanhundven@2520
   147
      By default, when eglibc is downloaded it is checked out using
bryanhundven@2520
   148
      svn://svn.eglibc.org. This option allows you to download eglibc
bryanhundven@2520
   149
      from http://www.eglibc.org, if you are behind a proxy or firewall.
bryanhundven@2520
   150
      If you are behind a proxy, don't forget to update your
bryanhundven@2520
   151
      .subversion/servers file with your proxy info in [global].
bryanhundven@2520
   152
yann@787
   153
config EGLIBC_CHECKOUT
yann@787
   154
    bool
yann@787
   155
    prompt "checkout instead of export"
bryanhundven@2239
   156
    default y if LIBC_EGLIBC_V_TRUNK
yann@787
   157
    help
yann@787
   158
      By default, the eglibc download will be an export of the subversion
yann@787
   159
      repository. If you say 'y' here, then the repository will instead be
yann@787
   160
      checked-out, so that you can update it later.
yann@787
   161
      
yann@787
   162
      Note that crosstool-NG will *not* update your working copy, you will
yann@787
   163
      have to do that yourself.
avrac@1569
   164
yann@2591
   165
endif # ! CONFIGURE_has_svn
yann@2591
   166
if ! CONFIGURE_has_svn
yann@2591
   167
yann@2591
   168
comment "svn is missing. You'll have to either:"
yann@2591
   169
comment "|  - have a pre-downloaded local tarball"
yann@2591
   170
comment "|  - or have a LAN mirror with a pre-downloaded tarball"
yann@2591
   171
comment "otherwise you won't be able to download eglibc"
yann@2591
   172
yann@2591
   173
endif # ! CONFIGURE_has_svn
yann@2591
   174
richard@1796
   175
config EGLIBC_OPT_SIZE
richard@1796
   176
    bool
richard@1796
   177
    prompt "optimize eglibc for size (-Os)"
richard@1796
   178
    help
richard@1796
   179
      Optimize eglibc for size using -Os instead of -O2. This will make eglibc
richard@1796
   180
      smaller but may make it slower.
richard@1796
   181
avrac@1569
   182
config EGLIBC_CUSTOM_CONFIG
avrac@1569
   183
    bool
avrac@1569
   184
    prompt "Use custom configuration file"
avrac@1569
   185
    help
avrac@1569
   186
      Use a custom configuration file to disable some features in the eglibc
avrac@1569
   187
      library. The configuration file options are described in detail in the
avrac@1569
   188
      option-groups.def file in the eglibc source directory.
avrac@1569
   189
avrac@1569
   190
if EGLIBC_CUSTOM_CONFIG
avrac@1569
   191
    config EGLIBC_OPTION_GROUPS_FILE
avrac@1569
   192
        string
avrac@1569
   193
        prompt "Path to the option-groups configuration file"
avrac@1569
   194
        default ""
avrac@1569
   195
        help
avrac@1569
   196
          Path to the option groups configuration file.
avrac@1569
   197
avrac@1569
   198
    config EGLIBC_BUNDLED_NSS_CONFIG
avrac@1569
   199
        bool
avrac@1569
   200
        prompt "Use bundled NSS config file"
avrac@1569
   201
        default y
avrac@1569
   202
        help
avrac@1569
   203
          Use minimal nsswitch configuration file bundled in eglibc.
avrac@1569
   204
          This option is only meaningful when runtime nss configuration
avrac@1569
   205
          is disabled in the option groups file.
avrac@1569
   206
avrac@1569
   207
    config EGLIBC_NSS_CONFIG_FILE
avrac@1569
   208
        string
avrac@1569
   209
        prompt "Path to the NSS config file"
avrac@1569
   210
        default ""
avrac@1569
   211
        depends on !EGLIBC_BUNDLED_NSS_CONFIG
avrac@1569
   212
        help
avrac@1569
   213
          Path to the nsswitch configuration file
avrac@1569
   214
avrac@1569
   215
    config EGLIBC_BUNDLED_NSS_FUNCTIONS
avrac@1569
   216
        bool
avrac@1569
   217
        prompt "Use bundled NSS functions file"
avrac@1569
   218
        default y
avrac@1569
   219
        help
avrac@1569
   220
          Use minimal nsswitch functions file bundled in eglibc.
avrac@1569
   221
          This option is only meaningful when runtime nss configuration
avrac@1569
   222
          is disabled in the option groups file.
avrac@1569
   223
avrac@1569
   224
    config EGLIBC_NSS_FUNCTIONS_FILE
avrac@1569
   225
        string
avrac@1569
   226
        prompt "Path to the NSS functions file"
avrac@1569
   227
        default ""
avrac@1569
   228
        depends on !EGLIBC_BUNDLED_NSS_FUNCTIONS
avrac@1569
   229
        help
avrac@1569
   230
          Path to the nsswitch functions file
avrac@1569
   231
endif