[massive] add support for alternative C libraries (currently only glibc/eglibc)
[openwrt-10.03/.git] / toolchain / uClibc / Config.in
index 09453bff3e5f351fa6d2ceb1ba87a4d6ede94560..8e6ab37202c944a08e7c354179d94856f22428dd 100644 (file)
@@ -1,26 +1,31 @@
-# Choose uClibc options
-#
-if CONFIG_DEVEL
-       comment "uClibc Options"
-endif
+# Choose uclibc version.
 
-config BR2_UCLIBC_VERSION_SNAPSHOT
-       bool
-       prompt "Use the daily snapshot of uClibc?" if CONFIG_DEVEL
-       default n
+choice
+       prompt "uClibc Version"
+       depends on TOOLCHAINOPTS && USE_UCLIBC
+       default UCLIBC_VERSION_0_9_29
        help
-           Would you like to use the latest daily snapshot?
+         Select the version of uClibc you wish to use.
+         Default for kernel 2.6 is 0.9.29, for kernel 2.4 it is 0.9.28 .
 
-config BR2_USE_UCLIBC_SNAPSHOT
-       string
-       default "snapshot"
-       depends on BR2_UCLIBC_VERSION_SNAPSHOT
+       config UCLIBC_VERSION_SNAPSHOT
+               bool "uClibc snapshot"
 
-config BR2_ENABLE_LOCALE
-       bool
-       prompt "Enable locale/gettext/i18n support?" if CONFIG_DEVEL
-       default n
-       help
-           Enable locale/gettext/i18n support?
+       config UCLIBC_VERSION_0_9_28
+               bool "uClibc 0.9.28"
+
+       config UCLIBC_VERSION_0_9_29
+               bool "uClibc 0.9.29"
 
+endchoice
 
+config UCLIBC_EXTRA_VERSION
+       string
+       prompt "Extra uClibc version"
+       depends on TOOLCHAINOPTS && USE_UCLIBC
+       default "snapshot"   if UCLIBC_VERSION_SNAPSHOT
+       default ".2"         if UCLIBC_VERSION_0_9_28
+       default ""
+       help
+           Default for version 0.9.28 is ".02", for daily snapshot it's just "snapshot"
+           For all other versions the default string is empty.