Browse Source

toolchain: get rid of musl version kconfig symbol overloading

SVN-Revision: 36359
Felix Fietkau 12 years ago
parent
commit
eac3474257
2 changed files with 12 additions and 12 deletions
  1. 5 3
      toolchain/musl/Config.in
  2. 7 9
      toolchain/musl/Config.version

+ 5 - 3
toolchain/musl/Config.in

@@ -3,14 +3,16 @@
 choice
 	prompt "musl Version"
 	depends on TOOLCHAINOPTS && USE_MUSL
-	default MUSL_VERSION_0_9_8
+	default MUSL_USE_VERSION_0_9_8
 	help
 	  Select the version of musl you wish to use.
 
-	config MUSL_VERSION_0_9_8
+	config MUSL_USE_VERSION_0_9_8
+		select MUSL_VERSION_0_9_8
 		bool "musl 0.9.8"
 
-	config MUSL_VERSION_0_9_9
+	config MUSL_USE_VERSION_0_9_9
+		select MUSL_VERSION_0_9_9
 		bool "musl 0.9.9"
 
 endchoice

+ 7 - 9
toolchain/musl/Config.version

@@ -1,18 +1,16 @@
+if USE_MUSL
+
 config MUSL_VERSION
 	string
 	depends on USE_MUSL
 	default "0.9.8"       if MUSL_VERSION_0_9_8
 	default "0.9.9"       if MUSL_VERSION_0_9_9
-	default "0.9.8"
-
-if !TOOLCHAINOPTS
 
-	config MUSL_VERSION_0_9_8
-		default y if USE_MUSL
-		bool
+config MUSL_VERSION_0_9_8
+	default y if !TOOLCHAINOPTS
+	bool
 
-	config MUSL_VERSION_0_9_9
-		default y if USE_MUSL
-		bool
+config MUSL_VERSION_0_9_9
+	bool
 
 endif