toolchain: Reverse glibc/eglibc conditionals to check for eglibc
[openwrt/openwrt.git] / toolchain / glibc / Config.version
index 93ea3c31684006f9801ab7bb4e0bd51772c7774d..39066d0c302408efb54c038863cf5c5d7a3429c0 100644 (file)
@@ -1,17 +1,31 @@
+if USE_GLIBC
+
 config GLIBC_VERSION
        string
-       depends on USE_GLIBC
-       default "2.3.6"  if GLIBC_VERSION_2_3_6
-       default "2.4"     if GLIBC_VERSION_2_4
-       default "2.6.1"  if GLIBC_VERSION_2_6_1
-       default "2.7"    if GLIBC_VERSION_2_7
-       default "2.7"
+       default "2.19" if EGLIBC_VERSION_2_19
+       default "2.21" if GLIBC_VERSION_2_21
+       default "2.22" if GLIBC_VERSION_2_22
+
+config EGLIBC_VERSION_2_19
+       default y if !TOOLCHAINOPTS
+       bool
+
+config GLIBC_VERSION_2_21
+       bool
 
-config GLIBC_PORTS
+config GLIBC_VERSION_2_22
        bool
-       depends on USE_GLIBC
-       default y  if GLIBC_VERSION_2_3_6 && (arm || armeb || mips || mipsel || mips64 || mips64el)
-       default y  if GLIBC_VERSION_2_4 && (arm || armeb || mips || mipsel || mips64 || mips64el)
-       default y  if GLIBC_VERSION_2_6_1 && (arm || armeb || mips || mipsel || mips64 || mips64el || powerpc)
-       default y  if GLIBC_VERSION_2_7 && (arm || armeb || mips || mipsel || mips64 || mips64el || powerpc)
-       default n
+
+config GLIBC_REVISION
+       string
+       default "25243" if EGLIBC_VERSION_2_19
+       default "4e42b5b8f8" if GLIBC_VERSION_2_21
+       default "78bd7499af" if GLIBC_VERSION_2_22
+       default ""
+
+endif
+
+menu "eglibc configuration"
+       depends on !TOOLCHAINOPTS && USE_GLIBC
+       source toolchain/glibc/config/Config.in
+endmenu