config/libc/eglibc.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Fri Jan 03 17:10:09 2014 +0100 (2014-01-03)
changeset 3270 dff359adf15c
parent 3243 9838aecd6340
child 3278 b8da1339f9fc
permissions -rw-r--r--
libc/eglibc: fix downloading of localedef addon

For the versions of eglibc where the ports addon is not external (ie,
all versions after, and including 2.17), we would fail to download the
localedef addon, since the test did not care about the addon we were
about to download, only whether the ports addon was external or not.

Fix that by skipping the ports addon only if that's the addon we're
trying to download.

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