config/libc/eglibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Mon Aug 15 22:52:51 2011 +0200 (2011-08-15)
changeset 2933 be5d4773a894
parent 2591 491d62ac2017
child 2950 10cc39ae5c6b
permissions -rw-r--r--
cc/gcc: pass the language list to the core backend

As the core backend can be used to also build the bare-metal compiler,
we have to tel it what languages to build.

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