Browse Source

golang: Move config option into separate file

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lilik-openwrt-22.03
Jeffery To 4 years ago
parent
commit
4674564e42
No known key found for this signature in database GPG Key ID: C616D9E719E868E4
2 changed files with 16 additions and 14 deletions
  1. +15
    -0
      lang/golang/golang/Config.in
  2. +1
    -14
      lang/golang/golang/Makefile

+ 15
- 0
lang/golang/golang/Config.in 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

+ 1
- 14
lang/golang/golang/Makefile View File

@ -155,20 +155,7 @@ libraries for the Go programming language.
endef endef
define Package/golang/config 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 endef
define Package/golang-doc define Package/golang-doc


Loading…
Cancel
Save