config/libc/eglibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Aug 19 00:52:05 2011 +0200 (2011-08-19)
branch1.12
changeset 2633 22e779b0a4ed
parent 2512 6d9b79f63eda
child 2591 491d62ac2017
permissions -rw-r--r--
scripts: simplify and fix the toolchain config script

The script that is installed, and which sole purpose is to dump
the .config that was used to build the toolchain, is pure insanity.

Let's make it much, much more simpler...

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 814ea73df7e0fab3db1cbe7623932714359c732b)
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@787
   125
config EGLIBC_REVISION
yann@787
   126
    string
yann@787
   127
    prompt "Revision to use"
yann@787
   128
    default "HEAD"
yann@787
   129
    help
yann@787
   130
      Enter the revision of trunk you want to use.
yann@787
   131
      Default is HEAD.
yann@787
   132
      
yann@787
   133
      A revision argument can be one of:
yann@787
   134
          NUMBER       revision number
yann@787
   135
          '{' DATE '}' revision at start of the date (*)
yann@787
   136
          'HEAD'       latest in repository
yann@787
   137
      
yann@787
   138
      (*) If you want to use a date, please use ISO-8601 formats if
yann@787
   139
          at all possible.
yann@787
   140
bryanhundven@2520
   141
config EGLIBC_HTTP
bryanhundven@2520
   142
    bool
bryanhundven@2520
   143
    prompt "use http:// instead of svn://"
bryanhundven@2520
   144
    help
bryanhundven@2520
   145
      By default, when eglibc is downloaded it is checked out using
bryanhundven@2520
   146
      svn://svn.eglibc.org. This option allows you to download eglibc
bryanhundven@2520
   147
      from http://www.eglibc.org, if you are behind a proxy or firewall.
bryanhundven@2520
   148
      If you are behind a proxy, don't forget to update your
bryanhundven@2520
   149
      .subversion/servers file with your proxy info in [global].
bryanhundven@2520
   150
yann@787
   151
config EGLIBC_CHECKOUT
yann@787
   152
    bool
yann@787
   153
    prompt "checkout instead of export"
bryanhundven@2239
   154
    default y if LIBC_EGLIBC_V_TRUNK
yann@787
   155
    help
yann@787
   156
      By default, the eglibc download will be an export of the subversion
yann@787
   157
      repository. If you say 'y' here, then the repository will instead be
yann@787
   158
      checked-out, so that you can update it later.
yann@787
   159
      
yann@787
   160
      Note that crosstool-NG will *not* update your working copy, you will
yann@787
   161
      have to do that yourself.
avrac@1569
   162
richard@1796
   163
config EGLIBC_OPT_SIZE
richard@1796
   164
    bool
richard@1796
   165
    prompt "optimize eglibc for size (-Os)"
richard@1796
   166
    help
richard@1796
   167
      Optimize eglibc for size using -Os instead of -O2. This will make eglibc
richard@1796
   168
      smaller but may make it slower.
richard@1796
   169
avrac@1569
   170
config EGLIBC_CUSTOM_CONFIG
avrac@1569
   171
    bool
avrac@1569
   172
    prompt "Use custom configuration file"
avrac@1569
   173
    help
avrac@1569
   174
      Use a custom configuration file to disable some features in the eglibc
avrac@1569
   175
      library. The configuration file options are described in detail in the
avrac@1569
   176
      option-groups.def file in the eglibc source directory.
avrac@1569
   177
avrac@1569
   178
if EGLIBC_CUSTOM_CONFIG
avrac@1569
   179
    config EGLIBC_OPTION_GROUPS_FILE
avrac@1569
   180
        string
avrac@1569
   181
        prompt "Path to the option-groups configuration file"
avrac@1569
   182
        default ""
avrac@1569
   183
        help
avrac@1569
   184
          Path to the option groups configuration file.
avrac@1569
   185
avrac@1569
   186
    config EGLIBC_BUNDLED_NSS_CONFIG
avrac@1569
   187
        bool
avrac@1569
   188
        prompt "Use bundled NSS config file"
avrac@1569
   189
        default y
avrac@1569
   190
        help
avrac@1569
   191
          Use minimal nsswitch configuration file bundled in eglibc.
avrac@1569
   192
          This option is only meaningful when runtime nss configuration
avrac@1569
   193
          is disabled in the option groups file.
avrac@1569
   194
avrac@1569
   195
    config EGLIBC_NSS_CONFIG_FILE
avrac@1569
   196
        string
avrac@1569
   197
        prompt "Path to the NSS config file"
avrac@1569
   198
        default ""
avrac@1569
   199
        depends on !EGLIBC_BUNDLED_NSS_CONFIG
avrac@1569
   200
        help
avrac@1569
   201
          Path to the nsswitch configuration file
avrac@1569
   202
avrac@1569
   203
    config EGLIBC_BUNDLED_NSS_FUNCTIONS
avrac@1569
   204
        bool
avrac@1569
   205
        prompt "Use bundled NSS functions file"
avrac@1569
   206
        default y
avrac@1569
   207
        help
avrac@1569
   208
          Use minimal nsswitch functions file bundled in eglibc.
avrac@1569
   209
          This option is only meaningful when runtime nss configuration
avrac@1569
   210
          is disabled in the option groups file.
avrac@1569
   211
avrac@1569
   212
    config EGLIBC_NSS_FUNCTIONS_FILE
avrac@1569
   213
        string
avrac@1569
   214
        prompt "Path to the NSS functions file"
avrac@1569
   215
        default ""
avrac@1569
   216
        depends on !EGLIBC_BUNDLED_NSS_FUNCTIONS
avrac@1569
   217
        help
avrac@1569
   218
          Path to the nsswitch functions file
avrac@1569
   219
endif