config/libc/eglibc.in
author Daniel Zimmermann <netzimme@gmail.com>
Sat Nov 16 16:16:51 2013 +0100 (2013-11-16)
changeset 3251 ec603d1371b9
parent 3243 9838aecd6340
child 3278 b8da1339f9fc
permissions -rw-r--r--
libc/{glibc,eglibc}: Don't download glibc-ports when not available

Don't download glibc-ports when glibc or eglibc version greater than 2.16,
because the "ports" source is mainline in the glibc or eglibc since version 2.17.

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