config/libc/glibc-eglibc-common.in
changeset 922 3f0456891349
parent 921 53917beac93d
child 923 54fc137f9dc8
     1.1 --- a/config/libc/glibc-eglibc-common.in	Mon Oct 13 11:06:37 2008 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,169 +0,0 @@
     1.4 -# This file contains the common configuration options
     1.5 -# that apply to both glibc and eglibc.
     1.6 -#
     1.7 -# Please note:
     1.8 -# the symlink is a hack around the fact that mconf can not parse
     1.9 -# the same file more than once, and errors out if it is the case.
    1.10 -# If mconf is updated to accept multiple inclusion of the same
    1.11 -# file, then the symlink can go (and the includers be updated).
    1.12 -
    1.13 -comment "glibc/eglibc common options"
    1.14 -
    1.15 -config LIBC_GLIBC_EXTRA_CONFIG
    1.16 -    string
    1.17 -    prompt "extra config"
    1.18 -    default ""
    1.19 -    help
    1.20 -      Extra flags to pass onto ./configure when configuring.
    1.21 -
    1.22 -      Eg.: --enable-static-nss
    1.23 -
    1.24 -config LIBC_GLIBC_EXTRA_CFLAGS
    1.25 -    string
    1.26 -    prompt "extra target CFLAGS"
    1.27 -    default ""
    1.28 -    help
    1.29 -      Extra target CFLAGS to use when building.
    1.30 -
    1.31 -config LIBC_EXTRA_CC_ARGS
    1.32 -    string
    1.33 -    prompt "gcc extra flags"
    1.34 -    default ""
    1.35 -    help
    1.36 -      Extra flags to pass gcc when building.
    1.37 -
    1.38 -      Seldom used, except for sparc64 which seems to need the flag -64
    1.39 -      to be passed onto gcc.
    1.40 -
    1.41 -config LIBC_GLIBC_USE_PORTS
    1.42 -    bool
    1.43 -    prompt "Use the ports addon"
    1.44 -    default n
    1.45 -    help
    1.46 -      The ports addon contains some architecture ports that are not available
    1.47 -      in the official distribution.
    1.48 -
    1.49 -      For example, this is the case for ARM with for 2.4 and above.
    1.50 -
    1.51 -      Say n only if you're sure that your architecture is in the official
    1.52 -      distribution for your chosen version.
    1.53 -
    1.54 -config LIBC_ADDONS
    1.55 -    bool
    1.56 -    prompt "Pass extra addons list"
    1.57 -    default n
    1.58 -    help
    1.59 -      If you say Y here, you'll be able to give the list of addons you want to
    1.60 -      include in your C library.
    1.61 -
    1.62 -config LIBC_ADDONS_LIST
    1.63 -    string
    1.64 -    prompt "Extra addons"
    1.65 -    default ""
    1.66 -    depends on LIBC_ADDONS
    1.67 -    help
    1.68 -      Extra addons to include. Space separated list.
    1.69 -
    1.70 -      You need to specify neither linuxthreads nor nptl, as they are added
    1.71 -      automagically for you depending on the threading model you choosed
    1.72 -      earlier.
    1.73 -
    1.74 -      Eg.: crypt        (for very old libces)
    1.75 -
    1.76 -if KERNEL_linux
    1.77 -
    1.78 -choice
    1.79 -    bool
    1.80 -    prompt "Minimum supported kernel version"
    1.81 -    default LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
    1.82 -
    1.83 -config LIBC_GLIBC_KERNEL_VERSION_NONE
    1.84 -    bool
    1.85 -    prompt "Let ./configure decide"
    1.86 -    help
    1.87 -      Let ./configure decide what minimum kernel version glibc/eglibc
    1.88 -      will be able to run against.
    1.89 -      
    1.90 -      This will inclde legacy compatibility code for older kernels in
    1.91 -      the C library, thus ensuring that it will run on a large number
    1.92 -      of old kernels.
    1.93 -      
    1.94 -      The minimum kernel version supported will be dependent upon the
    1.95 -      target you build for. For example:
    1.96 -        alpha*-*-linux-gnu      Requires Linux 2.6.9 for NPTL
    1.97 -        sh[34]-*-linux-gnu      Requires Linux 2.6.11
    1.98 -        powerpc*                Requires Linux 2.4.19
    1.99 -        arm*-*-linux-*gnueabi   Requires Linux 2.6.16
   1.100 -
   1.101 -config LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
   1.102 -    bool
   1.103 -    prompt "Same as kernel headers (default)"
   1.104 -    help
   1.105 -      Normaly, you'll want glibc/eglibc to run against the same kernel
   1.106 -      version as the one used for the headers.
   1.107 -      
   1.108 -      This is the default.
   1.109 -      
   1.110 -      If enabled, crosstool-ng will use the chosen version of kernel
   1.111 -      headers for the glibc minimum kernel version supported, which is
   1.112 -      what gets passed to "--enable-kernel=" when configuring glibc.
   1.113 -      
   1.114 -      Enabling this will ensure that no legacy compatibility code for
   1.115 -      older kernels is built into your C libraries, but it will
   1.116 -      be unable to run on kernel versions older than whichever kernel
   1.117 -      headers version you've built the toolchain for.
   1.118 -      
   1.119 -      If you know for sure that your toolchain will never need to build
   1.120 -      applications that will run under a kernel version older than your
   1.121 -      chosen kernel headers version (CT_KERNEL_VERSION), you can choose
   1.122 -      "y" here.
   1.123 -
   1.124 -config LIBC_GLIBC_KERNEL_VERSION_CHOSEN
   1.125 -    bool
   1.126 -    prompt "Specific kernel version"
   1.127 -    help
   1.128 -      Specify the earliest Linux kernel version you want glibc to
   1.129 -      include support for.  This does not have to match the kernel
   1.130 -      headers version used for your toolchain.  This controls what is
   1.131 -      passed to the "--enable-kernel=" option to the glibc configure
   1.132 -      script.
   1.133 -
   1.134 -      If you want to be able to statically link programs with your
   1.135 -      toolchain's C library, make sure this kernel version is lower than
   1.136 -      all kernels you wish to support to avoid "FATAL: kernel too old"
   1.137 -      errors.  The higher the version you specify, the less legacy code
   1.138 -      will be built into libc.
   1.139 -
   1.140 -      Most people can leave this at the default value of "2.6.9".
   1.141 -
   1.142 -if LIBC_GLIBC_KERNEL_VERSION_CHOSEN
   1.143 -
   1.144 -config LIBC_GLIBC_MIN_KERNEL_VERSION
   1.145 -    string
   1.146 -    prompt "Minimum kernel version to support"
   1.147 -    default "2.6.9"
   1.148 -    help
   1.149 -      Enter here the lowest kernel version glibc/eglibc will be able to
   1.150 -      run against.
   1.151 -      
   1.152 -      The minimum kernel version supported will be dependent upon the
   1.153 -      target you build for. For example:
   1.154 -        alpha*-*-linux-gnu      Requires Linux 2.6.9 for NPTL
   1.155 -        sh[34]-*-linux-gnu      Requires Linux 2.6.11
   1.156 -        powerpc*                Requires Linux 2.4.19
   1.157 -        arm*-*-linux-*gnueabi   Requires Linux 2.6.16
   1.158 -      
   1.159 -      Note that no sanity check is performed by crosstool-NG to ensure
   1.160 -      that the value you enter here is appropriate for your target.
   1.161 -
   1.162 -endif # LIBC_GLIBC_KERNEL_VERSION_CHOSEN
   1.163 -
   1.164 -endchoice
   1.165 -
   1.166 -config LIBC_GLIBC_MIN_KERNEL
   1.167 -    string
   1.168 -    default ""                            if LIBC_GLIBC_KERNEL_VERSION_NONE
   1.169 -    default KERNEL_VERSION                if LIBC_GLIBC_KERNEL_VERSION_AS_HEADERS
   1.170 -    default LIBC_GLIBC_MIN_KERNEL_VERSION if LIBC_GLIBC_USE_HEADERS_MIN_KERNEL
   1.171 -
   1.172 -endif # KERNEL_linux