config/libc/eglibc.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Dec 05 20:31:43 2012 +0100 (2012-12-05)
changeset 3134 863723936e24
parent 3112 6cb56b3f2d34
child 3142 6569f6a9060c
permissions -rw-r--r--
scripts/xldd: use user's sed and grep

xldd uses sed and grep as detected by ./configure. This works well if is
used on the machine that build the toolchain.

But if the user moves the toolchain to another machine where sed and grep
are not in the same directory (eg. /bin/sed vs. /usr/bin/sed), then xldd
will stop functionning.

Fix that by using ${SED} and ${GREP} if they are set in the environment.

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