config/libc/eglibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 01 22:46:57 2011 +0200 (2011-08-01)
changeset 2591 491d62ac2017
parent 2520 e3523df95b6b
child 2909 28ac8fbd9e6a
permissions -rw-r--r--
configure: do not require svn

svn is needed to download eglibc from the upstream repository.
In some situations, though, it can happen that:
- the developpers' machines do not have svn
- a LAN mirror has been set-up with pre-downloaded eglibc tarballs
In this case, it makes sense not to hard-depend on svn.

So, if svn is missing, just say so, and add a comment in the
menuconfig.

Reported-by: ANDY KENNEDY <ANDY.KENNEDY@adtran.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 # eglibc options
     2 
     3 ## depends on ! MINGW32 && ! BARE_METAL && ARCH_USE_MMU
     4 ##
     5 ## select LIBC_SUPPORT_NPTL
     6 ## select LIBC_SUPPORT_LINUXTHREADS
     7 ##
     8 ## help EGLIBC (Embedded GLIBC) is a variant of the standard GNU GLIBC
     9 ## help that is designed to work well on embedded systems.  EGLIBC strives
    10 ## help to be source and binary compatible with GLIBC.  Its goals include
    11 ## help a reduced footprint, configurable components, and improved
    12 ## help cross-compilation support.  EGLIBC also includes some embedded ports
    13 ## help (such as e500/spe) that are normally separate add-ons of GLIBC.
    14 
    15 choice
    16     bool
    17     prompt "eglibc version"
    18 # Don't remove next line
    19 # CT_INSERT_VERSION_BELOW
    20 
    21 config LIBC_EGLIBC_V_2_14
    22     bool
    23     prompt "2_14"
    24     depends on EXPERIMENTAL
    25     select LIBC_EGLIBC_2_14_or_later
    26 
    27 config LIBC_EGLIBC_V_2_13
    28     bool
    29     prompt "2_13"
    30     depends on EXPERIMENTAL
    31     select LIBC_EGLIBC_2_13_or_later
    32 
    33 config LIBC_EGLIBC_V_2_12
    34     bool
    35     prompt "2_12"
    36     select LIBC_EGLIBC_2_12_or_later
    37 
    38 config LIBC_EGLIBC_V_2_11
    39     bool
    40     prompt "2_11"
    41     select LIBC_EGLIBC_2_11_or_later
    42 
    43 config LIBC_EGLIBC_V_2_10
    44     bool
    45     prompt "2_10"
    46     select LIBC_EGLIBC_2_10_or_later
    47 
    48 config LIBC_EGLIBC_V_2_9
    49     bool
    50     prompt "2_9"
    51     select LIBC_EGLIBC_2_9_or_later
    52 
    53 config LIBC_EGLIBC_V_2_8
    54     bool
    55     prompt "2_8 (OBSOLETE)"
    56     depends on OBSOLETE
    57 
    58 config LIBC_EGLIBC_V_2_7
    59     bool
    60     prompt "2_7 (OBSOLETE)"
    61     depends on OBSOLETE
    62 
    63 config LIBC_EGLIBC_V_2_6
    64     bool
    65     prompt "2_6 (OBSOLETE)"
    66     depends on OBSOLETE
    67 
    68 config LIBC_EGLIBC_V_2_5
    69     bool
    70     prompt "2_5 (OBSOLETE)"
    71     depends on OBSOLETE
    72 
    73 config LIBC_EGLIBC_V_TRUNK
    74     bool
    75     prompt "'trunk'"
    76     select LIBC_EGLIBC_2_14_or_later
    77     help
    78       Selecting this will export the trunk of the eglibc subversion repository.
    79 
    80 endchoice
    81 
    82 config LIBC_VERSION
    83     string
    84 # Don't remove next line
    85 # CT_INSERT_VERSION_STRING_BELOW
    86     default "2_14" if LIBC_EGLIBC_V_2_14
    87     default "2_13" if LIBC_EGLIBC_V_2_13
    88     default "2_12" if LIBC_EGLIBC_V_2_12
    89     default "2_11" if LIBC_EGLIBC_V_2_11
    90     default "2_10" if LIBC_EGLIBC_V_2_10
    91     default "2_9" if LIBC_EGLIBC_V_2_9
    92     default "2_8" if LIBC_EGLIBC_V_2_8
    93     default "2_7" if LIBC_EGLIBC_V_2_7
    94     default "2_6" if LIBC_EGLIBC_V_2_6
    95     default "2_5" if LIBC_EGLIBC_V_2_5
    96     default "trunk" if LIBC_EGLIBC_V_TRUNK
    97 
    98 config LIBC_EGLIBC_2_14_or_later
    99     bool
   100     select LIBC_EGLIBC_2_13_or_later
   101 
   102 config LIBC_EGLIBC_2_13_or_later
   103     bool
   104     select LIBC_EGLIBC_2_12_or_later
   105 
   106 config LIBC_EGLIBC_2_12_or_later
   107     bool
   108     select LIBC_EGLIBC_2_11_or_later
   109 
   110 config LIBC_EGLIBC_2_11_or_later
   111     bool
   112     select LIBC_EGLIBC_2_10_or_later
   113 
   114 config LIBC_EGLIBC_2_10_or_later
   115     bool
   116     select LIBC_EGLIBC_2_9_or_later
   117 
   118 config LIBC_EGLIBC_2_9_or_later
   119     bool
   120     select LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
   121 
   122 config LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
   123     bool
   124 
   125 if CONFIGURE_has_svn
   126 
   127 config EGLIBC_REVISION
   128     string
   129     prompt "Revision to use"
   130     default "HEAD"
   131     help
   132       Enter the revision of trunk you want to use.
   133       Default is HEAD.
   134       
   135       A revision argument can be one of:
   136           NUMBER       revision number
   137           '{' DATE '}' revision at start of the date (*)
   138           'HEAD'       latest in repository
   139       
   140       (*) If you want to use a date, please use ISO-8601 formats if
   141           at all possible.
   142 
   143 config EGLIBC_HTTP
   144     bool
   145     prompt "use http:// instead of svn://"
   146     help
   147       By default, when eglibc is downloaded it is checked out using
   148       svn://svn.eglibc.org. This option allows you to download eglibc
   149       from http://www.eglibc.org, if you are behind a proxy or firewall.
   150       If you are behind a proxy, don't forget to update your
   151       .subversion/servers file with your proxy info in [global].
   152 
   153 config EGLIBC_CHECKOUT
   154     bool
   155     prompt "checkout instead of export"
   156     default y if LIBC_EGLIBC_V_TRUNK
   157     help
   158       By default, the eglibc download will be an export of the subversion
   159       repository. If you say 'y' here, then the repository will instead be
   160       checked-out, so that you can update it later.
   161       
   162       Note that crosstool-NG will *not* update your working copy, you will
   163       have to do that yourself.
   164 
   165 endif # ! CONFIGURE_has_svn
   166 if ! CONFIGURE_has_svn
   167 
   168 comment "svn is missing. You'll have to either:"
   169 comment "|  - have a pre-downloaded local tarball"
   170 comment "|  - or have a LAN mirror with a pre-downloaded tarball"
   171 comment "otherwise you won't be able to download eglibc"
   172 
   173 endif # ! CONFIGURE_has_svn
   174 
   175 config EGLIBC_OPT_SIZE
   176     bool
   177     prompt "optimize eglibc for size (-Os)"
   178     help
   179       Optimize eglibc for size using -Os instead of -O2. This will make eglibc
   180       smaller but may make it slower.
   181 
   182 config EGLIBC_CUSTOM_CONFIG
   183     bool
   184     prompt "Use custom configuration file"
   185     help
   186       Use a custom configuration file to disable some features in the eglibc
   187       library. The configuration file options are described in detail in the
   188       option-groups.def file in the eglibc source directory.
   189 
   190 if EGLIBC_CUSTOM_CONFIG
   191     config EGLIBC_OPTION_GROUPS_FILE
   192         string
   193         prompt "Path to the option-groups configuration file"
   194         default ""
   195         help
   196           Path to the option groups configuration file.
   197 
   198     config EGLIBC_BUNDLED_NSS_CONFIG
   199         bool
   200         prompt "Use bundled NSS config file"
   201         default y
   202         help
   203           Use minimal nsswitch configuration file bundled in eglibc.
   204           This option is only meaningful when runtime nss configuration
   205           is disabled in the option groups file.
   206 
   207     config EGLIBC_NSS_CONFIG_FILE
   208         string
   209         prompt "Path to the NSS config file"
   210         default ""
   211         depends on !EGLIBC_BUNDLED_NSS_CONFIG
   212         help
   213           Path to the nsswitch configuration file
   214 
   215     config EGLIBC_BUNDLED_NSS_FUNCTIONS
   216         bool
   217         prompt "Use bundled NSS functions file"
   218         default y
   219         help
   220           Use minimal nsswitch functions file bundled in eglibc.
   221           This option is only meaningful when runtime nss configuration
   222           is disabled in the option groups file.
   223 
   224     config EGLIBC_NSS_FUNCTIONS_FILE
   225         string
   226         prompt "Path to the NSS functions file"
   227         default ""
   228         depends on !EGLIBC_BUNDLED_NSS_FUNCTIONS
   229         help
   230           Path to the nsswitch functions file
   231 endif