diff --git a/openwrt/toolchain/Config.in b/openwrt/toolchain/Config.in
index 3f0d13fe9cebef805718d70f18a38a40ee625328..5720beb8b0de332986b7ed19d5a06e1c6423cb16 100644
--- a/openwrt/toolchain/Config.in
+++ b/openwrt/toolchain/Config.in
@@ -50,3 +50,4 @@ config TARGET_OPTIMIZATION
 	help
 	  Optimizations to use when building for the target host.
 
+source "toolchain/gcc/Config.version"
diff --git a/openwrt/toolchain/gcc/Config.in b/openwrt/toolchain/gcc/Config.in
index 49129073404513c335172e9a5b4be1a13a2d03ac..6c584db4052ea1d4876014e54efcd451ad578f1d 100644
--- a/openwrt/toolchain/gcc/Config.in
+++ b/openwrt/toolchain/gcc/Config.in
@@ -1,14 +1,5 @@
 # Choose gcc version.
 
-if !TOOLCHAINOPTS
-	config GCC_VERSION_3_4_4
-		default y if LINUX_2_4_BRCM
-		
-	config GCC_VERSION_4_0_3
-		default y if LINUX_2_6_ARUBA
-
-endif
-
 choice
 	prompt "GCC compiler Version" if TOOLCHAINOPTS
 	default GCC_VERSION_4_0_3 if LINUX_2_6_ARUBA
@@ -41,19 +32,6 @@ choice
 
 endchoice
 
-config GCC_VERSION
-	string
-	prompt "GCC compiler Version" if (TOOLCHAINOPTS && NULL)
-	default "3.4.4"     if GCC_VERSION_3_4_4
-	default "3.4.5"     if GCC_VERSION_3_4_5
-	default "3.4.6"     if GCC_VERSION_3_4_6
-	default "4.0.2"     if GCC_VERSION_4_0_2
-	default "4.0.3"     if GCC_VERSION_4_0_3
-	default "4.1.0"     if GCC_VERSION_4_1_0
-	default "4.1.1"     if GCC_VERSION_4_1_1
-	default "3.4.6"
-
-
 config EXTRA_GCC_CONFIG_OPTIONS
 	string
 	prompt "Additional gcc options" if TOOLCHAINOPTS
@@ -68,3 +46,4 @@ config INSTALL_LIBSTDCPP
 	help
 	    Build/install c++ compiler and libstdc++?
 
+
diff --git a/openwrt/toolchain/gcc/Config.version b/openwrt/toolchain/gcc/Config.version
new file mode 100644
index 0000000000000000000000000000000000000000..80e26060521542931ef839f30ed6b6f853b364ee
--- /dev/null
+++ b/openwrt/toolchain/gcc/Config.version
@@ -0,0 +1,21 @@
+config GCC_VERSION
+	string
+	default "3.4.4"     if GCC_VERSION_3_4_4
+	default "3.4.5"     if GCC_VERSION_3_4_5
+	default "3.4.6"     if GCC_VERSION_3_4_6
+	default "4.0.2"     if GCC_VERSION_4_0_2
+	default "4.0.3"     if GCC_VERSION_4_0_3
+	default "4.1.0"     if GCC_VERSION_4_1_0
+	default "4.1.1"     if GCC_VERSION_4_1_1
+	default "3.4.6"
+
+if !TOOLCHAINOPTS
+	config GCC_VERSION_3_4_4
+		default y if LINUX_2_4_BRCM
+		
+	config GCC_VERSION_4_0_3
+		default y if LINUX_2_6_ARUBA
+
+endif
+
+