config/libc/glibc-eglibc.in-common
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Oct 20 09:50:45 2008 +0000 (2008-10-20)
changeset 949 513d1a0c021a
parent 922 3f0456891349
child 1110 c404a78bd790
child 1212 9daa58864b8b
permissions -rw-r--r--
Offer a single option for the glibc/eglibc add-ons selection, rather than hiding it behind a toggle.
If the list is empty, then there is no add-on. If the list is not empty, then there are add-ons.

/trunk/config/libc/glibc-eglibc.in-common | 9 0 9 0 ---------
1 file changed, 9 deletions(-)
yann@922
     1
# This file contains the common configuration options
yann@922
     2
# that apply to both glibc and eglibc.
yann@922
     3
#
yann@922
     4
# Please note:
yann@922
     5
# the symlink is a hack around the fact that mconf can not parse
yann@922
     6
# the same file more than once, and errors out if it is the case.
yann@922
     7
# If mconf is updated to accept multiple inclusion of the same
yann@922
     8
# file, then the symlink can go (and the includers be updated).
yann@922
     9
yann@922
    10
comment "glibc/eglibc common options"
yann@922
    11
yann@922
    12
config LIBC_GLIBC_EXTRA_CONFIG
yann@922
    13
    string
yann@922
    14
    prompt "extra config"
yann@922
    15
    default ""
yann@922
    16
    help
yann@922
    17
      Extra flags to pass onto ./configure when configuring.
yann@922
    18
yann@922
    19
      Eg.: --enable-static-nss
yann@922
    20
yann@922
    21
config LIBC_GLIBC_EXTRA_CFLAGS
yann@922
    22
    string
yann@922
    23
    prompt "extra target CFLAGS"
yann@922
    24
    default ""
yann@922
    25
    help
yann@922
    26
      Extra target CFLAGS to use when building.
yann@922
    27
yann@922
    28
config LIBC_EXTRA_CC_ARGS
yann@922
    29
    string
yann@922
    30
    prompt "gcc extra flags"
yann@922
    31
    default ""
yann@922
    32
    help
yann@922
    33
      Extra flags to pass gcc when building.
yann@922
    34
yann@922
    35
      Seldom used, except for sparc64 which seems to need the flag -64
yann@922
    36
      to be passed onto gcc.
yann@922
    37
yann@922
    38
config LIBC_GLIBC_USE_PORTS
yann@922
    39
    bool
yann@922
    40
    prompt "Use the ports addon"
yann@922
    41
    default n
yann@922
    42
    help
yann@922
    43
      The ports addon contains some architecture ports that are not available
yann@922
    44
      in the official distribution.
yann@922
    45
yann@922
    46
      For example, this is the case for ARM with for 2.4 and above.
yann@922
    47
yann@922
    48
      Say n only if you're sure that your architecture is in the official
yann@922
    49
      distribution for your chosen version.
yann@922
    50
yann@922
    51
config LIBC_ADDONS_LIST
yann@922
    52
    string
yann@922
    53
    prompt "Extra addons"
yann@922
    54
    default ""
yann@922
    55
    help
yann@922
    56
      Extra addons to include. Space separated list.
yann@922
    57
yann@922
    58
      You need to specify neither linuxthreads nor nptl, as they are added
yann@922
    59
      automagically for you depending on the threading model you choosed
yann@922
    60
      earlier.
yann@922
    61
yann@922
    62
      Eg.: crypt        (for very old libces)
yann@922
    63
yann@922
    64
if KERNEL_linux
yann@922
    65
yann@922
    66
choice
yann@922
    67
    bool
yann@922
    68
    prompt "Minimum supported kernel version"
yann@922
    69
    default LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
yann@922
    70
yann@922
    71
config LIBC_GLIBC_KERNEL_VERSION_NONE
yann@922
    72
    bool
yann@922
    73
    prompt "Let ./configure decide"
yann@922
    74
    help
yann@922
    75
      Let ./configure decide what minimum kernel version glibc/eglibc
yann@922
    76
      will be able to run against.
yann@922
    77
      
yann@922
    78
      This will inclde legacy compatibility code for older kernels in
yann@922
    79
      the C library, thus ensuring that it will run on a large number
yann@922
    80
      of old kernels.
yann@922
    81
      
yann@922
    82
      The minimum kernel version supported will be dependent upon the
yann@922
    83
      target you build for. For example:
yann@922
    84
        alpha*-*-linux-gnu      Requires Linux 2.6.9 for NPTL
yann@922
    85
        sh[34]-*-linux-gnu      Requires Linux 2.6.11
yann@922
    86
        powerpc*                Requires Linux 2.4.19
yann@922
    87
        arm*-*-linux-*gnueabi   Requires Linux 2.6.16
yann@922
    88
yann@922
    89
config LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
yann@922
    90
    bool
yann@922
    91
    prompt "Same as kernel headers (default)"
yann@922
    92
    help
yann@922
    93
      Normaly, you'll want glibc/eglibc to run against the same kernel
yann@922
    94
      version as the one used for the headers.
yann@922
    95
      
yann@922
    96
      This is the default.
yann@922
    97
      
yann@922
    98
      If enabled, crosstool-ng will use the chosen version of kernel
yann@922
    99
      headers for the glibc minimum kernel version supported, which is
yann@922
   100
      what gets passed to "--enable-kernel=" when configuring glibc.
yann@922
   101
      
yann@922
   102
      Enabling this will ensure that no legacy compatibility code for
yann@922
   103
      older kernels is built into your C libraries, but it will
yann@922
   104
      be unable to run on kernel versions older than whichever kernel
yann@922
   105
      headers version you've built the toolchain for.
yann@922
   106
      
yann@922
   107
      If you know for sure that your toolchain will never need to build
yann@922
   108
      applications that will run under a kernel version older than your
yann@922
   109
      chosen kernel headers version (CT_KERNEL_VERSION), you can choose
yann@922
   110
      "y" here.
yann@922
   111
yann@922
   112
config LIBC_GLIBC_KERNEL_VERSION_CHOSEN
yann@922
   113
    bool
yann@922
   114
    prompt "Specific kernel version"
yann@922
   115
    help
yann@922
   116
      Specify the earliest Linux kernel version you want glibc to
yann@922
   117
      include support for.  This does not have to match the kernel
yann@922
   118
      headers version used for your toolchain.  This controls what is
yann@922
   119
      passed to the "--enable-kernel=" option to the glibc configure
yann@922
   120
      script.
yann@922
   121
yann@922
   122
      If you want to be able to statically link programs with your
yann@922
   123
      toolchain's C library, make sure this kernel version is lower than
yann@922
   124
      all kernels you wish to support to avoid "FATAL: kernel too old"
yann@922
   125
      errors.  The higher the version you specify, the less legacy code
yann@922
   126
      will be built into libc.
yann@922
   127
yann@922
   128
      Most people can leave this at the default value of "2.6.9".
yann@922
   129
yann@922
   130
if LIBC_GLIBC_KERNEL_VERSION_CHOSEN
yann@922
   131
yann@922
   132
config LIBC_GLIBC_MIN_KERNEL_VERSION
yann@922
   133
    string
yann@922
   134
    prompt "Minimum kernel version to support"
yann@922
   135
    default "2.6.9"
yann@922
   136
    help
yann@922
   137
      Enter here the lowest kernel version glibc/eglibc will be able to
yann@922
   138
      run against.
yann@922
   139
      
yann@922
   140
      The minimum kernel version supported will be dependent upon the
yann@922
   141
      target you build for. For example:
yann@922
   142
        alpha*-*-linux-gnu      Requires Linux 2.6.9 for NPTL
yann@922
   143
        sh[34]-*-linux-gnu      Requires Linux 2.6.11
yann@922
   144
        powerpc*                Requires Linux 2.4.19
yann@922
   145
        arm*-*-linux-*gnueabi   Requires Linux 2.6.16
yann@922
   146
      
yann@922
   147
      Note that no sanity check is performed by crosstool-NG to ensure
yann@922
   148
      that the value you enter here is appropriate for your target.
yann@922
   149
yann@922
   150
endif # LIBC_GLIBC_KERNEL_VERSION_CHOSEN
yann@922
   151
yann@922
   152
endchoice
yann@922
   153
yann@922
   154
config LIBC_GLIBC_MIN_KERNEL
yann@922
   155
    string
yann@922
   156
    default ""                            if LIBC_GLIBC_KERNEL_VERSION_NONE
yann@922
   157
    default KERNEL_VERSION                if LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
yann@922
   158
    default LIBC_GLIBC_MIN_KERNEL_VERSION if LIBC_GLIBC_USE_HEADERS_MIN_KERNEL
yann@922
   159
yann@922
   160
endif # KERNEL_linux