golang: Move config option into separate file

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
Jeffery To 2020-09-02 16:11:45 +08:00
parent fc7cf379e3
commit 4674564e42
No known key found for this signature in database
GPG Key ID: C616D9E719E868E4
2 changed files with 16 additions and 14 deletions

View File

@ -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

View 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