config/libc/eglibc.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Tue May 31 20:55:30 2011 +0200 (2011-05-31)
changeset 2489 b7c9f410704f
parent 2484 d1a8c2ae7946
child 2512 6d9b79f63eda
permissions -rw-r--r--
eglibc: use the PKGVERSION and BUGURL options

This patch makes eglibc benefit from the TOOLCHAIN_PKGVERSION and
TOOLCHAIN_BUGURL options.

Signed-off-by: "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
     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_13
    22     bool
    23     prompt "2_13"
    24     depends on EXPERIMENTAL
    25     select LIBC_EGLIBC_2_13_or_later
    26 
    27 config LIBC_EGLIBC_V_2_12
    28     bool
    29     prompt "2_12"
    30     select LIBC_EGLIBC_2_12_or_later
    31 
    32 config LIBC_EGLIBC_V_2_11
    33     bool
    34     prompt "2_11"
    35     select LIBC_EGLIBC_2_11_or_later
    36 
    37 config LIBC_EGLIBC_V_2_10
    38     bool
    39     prompt "2_10"
    40     select LIBC_EGLIBC_2_10_or_later
    41 
    42 config LIBC_EGLIBC_V_2_9
    43     bool
    44     prompt "2_9"
    45     select LIBC_EGLIBC_2_9_or_later
    46 
    47 config LIBC_EGLIBC_V_2_8
    48     bool
    49     prompt "2_8 (OBSOLETE)"
    50     depends on OBSOLETE
    51 
    52 config LIBC_EGLIBC_V_2_7
    53     bool
    54     prompt "2_7 (OBSOLETE)"
    55     depends on OBSOLETE
    56 
    57 config LIBC_EGLIBC_V_2_6
    58     bool
    59     prompt "2_6 (OBSOLETE)"
    60     depends on OBSOLETE
    61 
    62 config LIBC_EGLIBC_V_2_5
    63     bool
    64     prompt "2_5 (OBSOLETE)"
    65     depends on OBSOLETE
    66 
    67 config LIBC_EGLIBC_V_TRUNK
    68     bool
    69     prompt "'trunk'"
    70     select LIBC_EGLIBC_2_13_or_later
    71     help
    72       Selecting this will export the trunk of the eglibc subversion repository.
    73 
    74 endchoice
    75 
    76 config LIBC_VERSION
    77     string
    78 # Don't remove next line
    79 # CT_INSERT_VERSION_STRING_BELOW
    80     default "2_13" if LIBC_EGLIBC_V_2_13
    81     default "2_12" if LIBC_EGLIBC_V_2_12
    82     default "2_11" if LIBC_EGLIBC_V_2_11
    83     default "2_10" if LIBC_EGLIBC_V_2_10
    84     default "2_9" if LIBC_EGLIBC_V_2_9
    85     default "2_8" if LIBC_EGLIBC_V_2_8
    86     default "2_7" if LIBC_EGLIBC_V_2_7
    87     default "2_6" if LIBC_EGLIBC_V_2_6
    88     default "2_5" if LIBC_EGLIBC_V_2_5
    89     default "trunk" if LIBC_EGLIBC_V_TRUNK
    90 
    91 config LIBC_EGLIBC_2_13_or_later
    92     bool
    93     select LIBC_EGLIBC_2_12_or_later
    94 
    95 config LIBC_EGLIBC_2_12_or_later
    96     bool
    97     select LIBC_EGLIBC_2_11_or_later
    98 
    99 config LIBC_EGLIBC_2_11_or_later
   100     bool
   101     select LIBC_EGLIBC_2_10_or_later
   102 
   103 config LIBC_EGLIBC_2_10_or_later
   104     bool
   105     select LIBC_EGLIBC_2_9_or_later
   106 
   107 config LIBC_EGLIBC_2_9_or_later
   108     bool
   109     select LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
   110 
   111 config LIBC_EGLIBC_HAS_PKGVERSION_BUGURL
   112     bool
   113 
   114 config EGLIBC_REVISION
   115     string
   116     prompt "Revision to use"
   117     default "HEAD"
   118     help
   119       Enter the revision of trunk you want to use.
   120       Default is HEAD.
   121       
   122       A revision argument can be one of:
   123           NUMBER       revision number
   124           '{' DATE '}' revision at start of the date (*)
   125           'HEAD'       latest in repository
   126       
   127       (*) If you want to use a date, please use ISO-8601 formats if
   128           at all possible.
   129 
   130 config EGLIBC_CHECKOUT
   131     bool
   132     prompt "checkout instead of export"
   133     default y if LIBC_EGLIBC_V_TRUNK
   134     help
   135       By default, the eglibc download will be an export of the subversion
   136       repository. If you say 'y' here, then the repository will instead be
   137       checked-out, so that you can update it later.
   138       
   139       Note that crosstool-NG will *not* update your working copy, you will
   140       have to do that yourself.
   141 
   142 config EGLIBC_OPT_SIZE
   143     bool
   144     prompt "optimize eglibc for size (-Os)"
   145     help
   146       Optimize eglibc for size using -Os instead of -O2. This will make eglibc
   147       smaller but may make it slower.
   148 
   149 config EGLIBC_CUSTOM_CONFIG
   150     bool
   151     prompt "Use custom configuration file"
   152     help
   153       Use a custom configuration file to disable some features in the eglibc
   154       library. The configuration file options are described in detail in the
   155       option-groups.def file in the eglibc source directory.
   156 
   157 if EGLIBC_CUSTOM_CONFIG
   158     config EGLIBC_OPTION_GROUPS_FILE
   159         string
   160         prompt "Path to the option-groups configuration file"
   161         default ""
   162         help
   163           Path to the option groups configuration file.
   164 
   165     config EGLIBC_BUNDLED_NSS_CONFIG
   166         bool
   167         prompt "Use bundled NSS config file"
   168         default y
   169         help
   170           Use minimal nsswitch configuration file bundled in eglibc.
   171           This option is only meaningful when runtime nss configuration
   172           is disabled in the option groups file.
   173 
   174     config EGLIBC_NSS_CONFIG_FILE
   175         string
   176         prompt "Path to the NSS config file"
   177         default ""
   178         depends on !EGLIBC_BUNDLED_NSS_CONFIG
   179         help
   180           Path to the nsswitch configuration file
   181 
   182     config EGLIBC_BUNDLED_NSS_FUNCTIONS
   183         bool
   184         prompt "Use bundled NSS functions file"
   185         default y
   186         help
   187           Use minimal nsswitch functions file bundled in eglibc.
   188           This option is only meaningful when runtime nss configuration
   189           is disabled in the option groups file.
   190 
   191     config EGLIBC_NSS_FUNCTIONS_FILE
   192         string
   193         prompt "Path to the NSS functions file"
   194         default ""
   195         depends on !EGLIBC_BUNDLED_NSS_FUNCTIONS
   196         help
   197           Path to the nsswitch functions file
   198 endif