config/libc/glibc-eglibc.in-common
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 03 20:13:35 2009 +0000 (2009-01-03)
changeset 1110 c404a78bd790
parent 949 513d1a0c021a
child 1178 41a84f7d3b4f
permissions -rw-r--r--
Remove an obsolete, mis-leading comment in the glibc/eglibc common options.

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