# uClibc options

choice
    bool
    prompt "uClibc version"

config LIBC_V_snapshot
    bool
    prompt "latest snapshot"

config LIBC_V_specific_date
    bool
    prompt "<specific date>"

config LIBC_V_0_9_28
    bool
    prompt "0.9.28 (OBSOLETE)"
    depends on OBSOLETE

config LIBC_V_0_9_28_1
    bool
    prompt "0.9.28.1 (OBSOLETE)"
    depends on OBSOLETE

config LIBC_V_0_9_28_2
    bool
    prompt "0.9.28.2 (OBSOLETE)"
    depends on OBSOLETE

config LIBC_V_0_9_28_3
    bool
    prompt "0.9.28.3"

config LIBC_V_0_9_29
    bool
    prompt "0.9.29"

# CT_INSERT_VERSION_ABOVE
# Don't remove above line!
endchoice

config LIBC_VERSION
    string
    prompt "Enter date (YYYYMMDD)" if LIBC_V_specific_date
    default "snapshot" if LIBC_V_snapshot
    default "0.9.28" if LIBC_V_0_9_28
    default "0.9.28.1" if LIBC_V_0_9_28_1
    default "0.9.28.2" if LIBC_V_0_9_28_2
    default "0.9.28.3" if LIBC_V_0_9_28_3
    default "0.9.29" if LIBC_V_0_9_29
# CT_INSERT_VERSION_STRING_ABOVE
# Don't remove above line!
    help
      Enter the date of the snapshot you want to use in the form: YYYYMMDD
      where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
      day in the month.
      
      Please note that uClibc site removes snapshots older than a month.

choice
    bool
    prompt "Debug level"
    default LIBC_UCLIBC_DEBUG_LEVEL_0

config LIBC_UCLIBC_DEBUG_LEVEL_0
    bool
    prompt "none"

config LIBC_UCLIBC_DEBUG_LEVEL_1
    bool
    prompt "minimal"

config LIBC_UCLIBC_DEBUG_LEVEL_2
    bool
    prompt "all"

endchoice

config LIBC_UCLIBC_DEBUG_LEVEL
    int
    default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
    default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
    default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2

config LIBC_UCLIBC_CONFIG_FILE
    string
    prompt "Configuration file"
    default ""
    help
      Path to the configuration file.
      
      You _must_ provide one (for now).

config LIBC_UCLIBC_LOCALES
    bool
    prompt "Add support for locales"
    default n
    help
      Say y if you want uClibc to support localisation.

      Note that seems to be broken on recent uClibc releases.