golang: Move config option into separate file
authorJeffery To <redacted>
Wed, 2 Sep 2020 08:11:45 +0000 (16:11 +0800)
committerJeffery To <redacted>
Sun, 4 Oct 2020 16:25:28 +0000 (00:25 +0800)
Signed-off-by: Jeffery To <redacted>
lang/golang/golang/Config.in [new file with mode: 0644]
lang/golang/golang/Makefile

diff --git a/lang/golang/golang/Config.in b/lang/golang/golang/Config.in
new file mode 100644 (file)
index 0000000..6bbbf72
--- /dev/null
@@ -0,0 +1,15 @@
+menu "Configuration"
+
+config GOLANG_EXTERNAL_BOOTSTRAP_ROOT
+       string "External bootstrap Go root directory"
+       default ""
+       help
+         Path to a working Go tree (>= Go 1.4), with bin, pkg, and src
+         subdirectories and the Go compiler at bin/go.
+
+         If specified, the existing Go installation will be used to
+         compile host (buildroot) Go.
+
+         Leave blank to compile the default bootstrap Go.
+
+endmenu
index 45d79bc32440d55a20406c42c3201f358bda68cc..c08028d09b34c32fa8d86c38790135b1d4bf0c36 100644 (file)
@@ -155,20 +155,7 @@ libraries for the Go programming language.
 endef
 
 define Package/golang/config
-menu "Configuration"
-
-config GOLANG_EXTERNAL_BOOTSTRAP_ROOT
-       string "External bootstrap Go root directory"
-       help
-         Path to a working Go tree (>= Go 1.4), with bin, pkg, and src
-         subdirectories and the Go compiler at bin/go.
-
-         If specified, the existing Go installation will be used to
-         compile host (buildroot) Go.
-
-         Leave blank to compile the default bootstrap Go.
-
-endmenu
+  source "$(SOURCE)/Config.in"
 endef
 
 define Package/golang-doc
git clone https://git.99rst.org/PROJECT