config/libc/eglibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jun 04 17:15:58 2011 +0200 (2011-06-04)
changeset 2504 3fc114996b20
parent 2484 d1a8c2ae7946
child 2512 6d9b79f63eda
permissions -rw-r--r--
libc/glibc: do not try to download NPTL add-on

The NPTL add-on has always been internal, so there is no
reason to try downloading it, it will never succeed.
Add provision to skip other add-ons as well.

For consistency, do the same test in both glibc and eglibc.

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@2299
    21
config LIBC_EGLIBC_V_2_13
bryanhundven@2299
    22
    bool
bryanhundven@2299
    23
    prompt "2_13"
bryanhundven@2299
    24
    depends on EXPERIMENTAL
benoit@2489
    25
    select LIBC_EGLIBC_2_13_or_later
bryanhundven@2299
    26
bryanhundven@2239
    27
config LIBC_EGLIBC_V_2_12
bryanhundven@2156
    28
    bool
bryanhundven@2156
    29
    prompt "2_12"
benoit@2489
    30
    select LIBC_EGLIBC_2_12_or_later
bryanhundven@2156
    31
bryanhundven@2239
    32
config LIBC_EGLIBC_V_2_11
bryanhundven@2156
    33
    bool
bryanhundven@2156
    34
    prompt "2_11"
benoit@2489
    35
    select LIBC_EGLIBC_2_11_or_later
bryanhundven@2156
    36
bryanhundven@2239
    37
config LIBC_EGLIBC_V_2_10
yann@787
    38
    bool
yann@1534
    39
    prompt "2_10"
benoit@2489
    40
    select LIBC_EGLIBC_2_10_or_later
yann@1534
    41
bryanhundven@2239
    42
config LIBC_EGLIBC_V_2_9
yann@1534
    43
    bool
yann@1534
    44
    prompt "2_9"
benoit@2489
    45
    select LIBC_EGLIBC_2_9_or_later
yann@1534
    46
bryanhundven@2239
    47
config LIBC_EGLIBC_V_2_8
yann@1534
    48
    bool
yann@1615
    49
    prompt "2_8 (OBSOLETE)"
yann@1615
    50
    depends on OBSOLETE
yann@1534
    51
bryanhundven@2239
    52
config LIBC_EGLIBC_V_2_7
yann@1534
    53
    bool
yann@1615
    54
    prompt "2_7 (OBSOLETE)"
yann@1615
    55
    depends on OBSOLETE
yann@787
    56
bryanhundven@2239
    57
config LIBC_EGLIBC_V_2_6
yann@787
    58
    bool
yann@1615
    59
    prompt "2_6 (OBSOLETE)"
yann@1615
    60
    depends on OBSOLETE
yann@787
    61
bryanhundven@2239
    62
config LIBC_EGLIBC_V_2_5
yann@787
    63
    bool
yann@1615
    64
    prompt "2_5 (OBSOLETE)"
yann@1615
    65
    depends on OBSOLETE
yann@1438
    66
bryanhundven@2239
    67
config LIBC_EGLIBC_V_TRUNK
yann@865
    68
    bool
yann@865
    69
    prompt "'trunk'"
benoit@2489
    70
    select LIBC_EGLIBC_2_13_or_later
yann@865
    71
    help
yann@865
    72
      Selecting this will export the trunk of the eglibc subversion repository.
yann@865
    73
yann@787
    74
endchoice
yann@787
    75
yann@787
    76
config LIBC_VERSION
yann@787
    77
    string
yann@1535
    78
# Don't remove next line
yann@1535
    79
# CT_INSERT_VERSION_STRING_BELOW
bryanhundven@2299
    80
    default "2_13" if LIBC_EGLIBC_V_2_13
bryanhundven@2239
    81
    default "2_12" if LIBC_EGLIBC_V_2_12
bryanhundven@2239
    82
    default "2_11" if LIBC_EGLIBC_V_2_11
bryanhundven@2239
    83
    default "2_10" if LIBC_EGLIBC_V_2_10
bryanhundven@2239
    84
    default "2_9" if LIBC_EGLIBC_V_2_9
bryanhundven@2239
    85
    default "2_8" if LIBC_EGLIBC_V_2_8
bryanhundven@2239
    86
    default "2_7" if LIBC_EGLIBC_V_2_7
bryanhundven@2239
    87
    default "2_6" if LIBC_EGLIBC_V_2_6
bryanhundven@2239
    88
    default "2_5" if LIBC_EGLIBC_V_2_5
bryanhundven@2239
    89
    default "trunk" if LIBC_EGLIBC_V_TRUNK
yann@787
    90
benoit@2489
    91
config LIBC_EGLIBC_2_13_or_later
benoit@2489
    92
    bool
benoit@2489
    93
    select LIBC_EGLIBC_2_12_or_later
benoit@2489
    94
benoit@2489
    95
config LIBC_EGLIBC_2_12_or_later
benoit@2489
    96
    bool
benoit@2489
    97
    select LIBC_EGLIBC_2_11_or_later
benoit@2489
    98
benoit@2489
    99
config LIBC_EGLIBC_2_11_or_later
benoit@2489
   100
    bool
benoit@2489
   101
    select LIBC_EGLIBC_2_10_or_later
benoit@2489
   102
benoit@2489
   103
config LIBC_EGLIBC_2_10_or_later
benoit@2489
   104
    bool
benoit@2489
   105
    select LIBC_EGLIBC_2_9_or_later
benoit@2489
   106
benoit@2489
   107
config LIBC_EGLIBC_2_9_or_later
benoit@2489
   108
    bool
benoit@2489
   109
    select LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
benoit@2489
   110
benoit@2489
   111
config LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
benoit@2489
   112
    bool
benoit@2489
   113
yann@787
   114
config EGLIBC_REVISION
yann@787
   115
    string
yann@787
   116
    prompt "Revision to use"
yann@787
   117
    default "HEAD"
yann@787
   118
    help
yann@787
   119
      Enter the revision of trunk you want to use.
yann@787
   120
      Default is HEAD.
yann@787
   121
      
yann@787
   122
      A revision argument can be one of:
yann@787
   123
          NUMBER       revision number
yann@787
   124
          '{' DATE '}' revision at start of the date (*)
yann@787
   125
          'HEAD'       latest in repository
yann@787
   126
      
yann@787
   127
      (*) If you want to use a date, please use ISO-8601 formats if
yann@787
   128
          at all possible.
yann@787
   129
yann@787
   130
config EGLIBC_CHECKOUT
yann@787
   131
    bool
yann@787
   132
    prompt "checkout instead of export"
bryanhundven@2239
   133
    default y if LIBC_EGLIBC_V_TRUNK
yann@787
   134
    help
yann@787
   135
      By default, the eglibc download will be an export of the subversion
yann@787
   136
      repository. If you say 'y' here, then the repository will instead be
yann@787
   137
      checked-out, so that you can update it later.
yann@787
   138
      
yann@787
   139
      Note that crosstool-NG will *not* update your working copy, you will
yann@787
   140
      have to do that yourself.
avrac@1569
   141
richard@1796
   142
config EGLIBC_OPT_SIZE
richard@1796
   143
    bool
richard@1796
   144
    prompt "optimize eglibc for size (-Os)"
richard@1796
   145
    help
richard@1796
   146
      Optimize eglibc for size using -Os instead of -O2. This will make eglibc
richard@1796
   147
      smaller but may make it slower.
richard@1796
   148
avrac@1569
   149
config EGLIBC_CUSTOM_CONFIG
avrac@1569
   150
    bool
avrac@1569
   151
    prompt "Use custom configuration file"
avrac@1569
   152
    help
avrac@1569
   153
      Use a custom configuration file to disable some features in the eglibc
avrac@1569
   154
      library. The configuration file options are described in detail in the
avrac@1569
   155
      option-groups.def file in the eglibc source directory.
avrac@1569
   156
avrac@1569
   157
if EGLIBC_CUSTOM_CONFIG
avrac@1569
   158
    config EGLIBC_OPTION_GROUPS_FILE
avrac@1569
   159
        string
avrac@1569
   160
        prompt "Path to the option-groups configuration file"
avrac@1569
   161
        default ""
avrac@1569
   162
        help
avrac@1569
   163
          Path to the option groups configuration file.
avrac@1569
   164
avrac@1569
   165
    config EGLIBC_BUNDLED_NSS_CONFIG
avrac@1569
   166
        bool
avrac@1569
   167
        prompt "Use bundled NSS config file"
avrac@1569
   168
        default y
avrac@1569
   169
        help
avrac@1569
   170
          Use minimal nsswitch configuration file bundled in eglibc.
avrac@1569
   171
          This option is only meaningful when runtime nss configuration
avrac@1569
   172
          is disabled in the option groups file.
avrac@1569
   173
avrac@1569
   174
    config EGLIBC_NSS_CONFIG_FILE
avrac@1569
   175
        string
avrac@1569
   176
        prompt "Path to the NSS config file"
avrac@1569
   177
        default ""
avrac@1569
   178
        depends on !EGLIBC_BUNDLED_NSS_CONFIG
avrac@1569
   179
        help
avrac@1569
   180
          Path to the nsswitch configuration file
avrac@1569
   181
avrac@1569
   182
    config EGLIBC_BUNDLED_NSS_FUNCTIONS
avrac@1569
   183
        bool
avrac@1569
   184
        prompt "Use bundled NSS functions file"
avrac@1569
   185
        default y
avrac@1569
   186
        help
avrac@1569
   187
          Use minimal nsswitch functions file bundled in eglibc.
avrac@1569
   188
          This option is only meaningful when runtime nss configuration
avrac@1569
   189
          is disabled in the option groups file.
avrac@1569
   190
avrac@1569
   191
    config EGLIBC_NSS_FUNCTIONS_FILE
avrac@1569
   192
        string
avrac@1569
   193
        prompt "Path to the NSS functions file"
avrac@1569
   194
        default ""
avrac@1569
   195
        depends on !EGLIBC_BUNDLED_NSS_FUNCTIONS
avrac@1569
   196
        help
avrac@1569
   197
          Path to the nsswitch functions file
avrac@1569
   198
endif