config/libc/eglibc.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Tue Mar 11 22:11:43 2014 +0100 (2014-03-11)
changeset 3293 e11a8a2e225d
parent 3251 ec603d1371b9
permissions -rw-r--r--
comptools: do not force build of make-3.81 unless really needed

On systems with make-3.82, we forcibly force the build and the use
of make-3.81

But some newer tools break when building with make-3.81. For example,
eglibc-3.18 breaks.

Introduce a new blind options that tools may select if they require
make-3.81. If the system does not have make-3.81, and this option is
selected, then we force the build of make-3.81. Otherwise, we leave
it to the user to decide on his own.

Note that no component selects this option for now. It will come in
later patches as we find them.

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