# eglibc options
# depends on ! BARE_METAL && ARCH_USE_MMU

config LIBC_eglibc
    select LIBC_SUPPORT_NPTL
    select LIBC_SUPPORT_LINUXTHREADS
    help
      EGLIBC (Embedded GLIBC) is a variant of the standard GNU GLIBC
      that is designed to work well on embedded systems.  EGLIBC strives
      to be source and binary compatible with GLIBC.  Its goals include
      a reduced footprint, configurable components, and improved
      cross-compilation support.  EGLIBC also includes some embedded ports
      (such as e500/spe) that are normally separate add-ons of GLIBC.

choice
    bool
    prompt "eglibc version"

config EGLIBC_V_2_5
    bool
    prompt "2_5"

config EGLIBC_V_2_6
    bool
    prompt "2_6"

config EGLIBC_V_2_7
    bool
    prompt "2_7"

config EGLIBC_V_2_8
    bool
    prompt "2_8"

config EGLIBC_V_2_9
    bool
    prompt "2_9"

# CT_INSERT_VERSION_ABOVE
# Don't remove above line!

config EGLIBC_V_TRUNK
    bool
    prompt "'trunk'"
    help
      Selecting this will export the trunk of the eglibc subversion repository.

endchoice

config LIBC_VERSION
    string
    default "trunk" if EGLIBC_V_TRUNK
    default "2_5" if EGLIBC_V_2_5
    default "2_6" if EGLIBC_V_2_6
    default "2_7" if EGLIBC_V_2_7
    default "2_8" if EGLIBC_V_2_8
    default "2_9" if EGLIBC_V_2_9
# CT_INSERT_VERSION_STRING_ABOVE
# Don't remove above line!

config EGLIBC_REVISION
    string
    prompt "Revision to use"
    default "HEAD"
    help
      Enter the revision of trunk you want to use.
      Default is HEAD.
      
      A revision argument can be one of:
          NUMBER       revision number
          '{' DATE '}' revision at start of the date (*)
          'HEAD'       latest in repository
      
      (*) If you want to use a date, please use ISO-8601 formats if
          at all possible.

config EGLIBC_CHECKOUT
    bool
    prompt "checkout instead of export"
    default y if EGLIBC_V_TRUNK
    default n if ! EGLIBC_V_TRUNK
    help
      By default, the eglibc download will be an export of the subversion
      repository. If you say 'y' here, then the repository will instead be
      checked-out, so that you can update it later.
      
      Note that crosstool-NG will *not* update your working copy, you will
      have to do that yourself.
