toolchain: get rid of eglibc version kconfig symbol overloading
authorFelix Fietkau <nbd@openwrt.org>
Thu, 18 Apr 2013 12:04:55 +0000 (12:04 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 18 Apr 2013 12:04:55 +0000 (12:04 +0000)
SVN-Revision: 36358

toolchain/eglibc/Config.in
toolchain/eglibc/Config.version

index de5c5b429dab031b4b3699d6387733cb0f465580..791033662ac688d3336cf5d8fbef1261f7ef3efb 100644 (file)
@@ -1,21 +1,21 @@
 choice
        prompt "eglibc version"
        depends on TOOLCHAINOPTS && USE_EGLIBC
-       default EGLIBC_VERSION_2_15
+       default EGLIBC_USE_VERSION_2_15
        help
          Select the version of eglibc you wish to use.
 
-       config EGLIBC_VERSION_2_15
+       config EGLIBC_USE_VERSION_2_15
                bool "eglibc 2.15"
-               depends on !GCC_VERSION_LLVM
+               select EGLIBC_VERSION_2_15
 
-       config EGLIBC_VERSION_2_16
+       config EGLIBC_USE_VERSION_2_16
                bool "eglibc 2.16"
-               depends on !GCC_VERSION_LLVM
+               select EGLIBC_VERSION_2_16
 
-       config EGLIBC_VERSION_2_17
+       config EGLIBC_USE_VERSION_2_17
                bool "eglibc 2.17"
-               depends on !GCC_VERSION_LLVM
+               select EGLIBC_VERSION_2_17
 
 endchoice
 
index 92ba3e6ee0d71ceca11e549f2b368e01e8241dac..a383bb211d8608fdb681a110384edd5afba45918 100644 (file)
@@ -1,7 +1,19 @@
+if USE_EGLIBC
+
 config EGLIBC_VERSION
        string
-       depends on USE_EGLIBC
        default "2.15" if EGLIBC_VERSION_2_15
        default "2.16" if EGLIBC_VERSION_2_16
        default "2.17" if EGLIBC_VERSION_2_17
-       default "2.15"
+
+config EGLIBC_VERSION_2_15
+       default y if !TOOLCHAINOPTS
+       bool
+
+config EGLIBC_VERSION_2_16
+       bool
+
+config EGLIBC_VERSION_2_17
+       bool
+
+endif