|
@@ -34,7 +34,7 @@ config BR2_PACKAGE_HOST_GO_TARGET_CGO_LINKING_SUPPORTS
|
|
|
config BR2_PACKAGE_HOST_GO_HOST_ARCH_SUPPORTS
|
|
|
bool
|
|
|
default y
|
|
|
- depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS
|
|
|
+ depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS || BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH_SUPPORTS
|
|
|
|
|
|
# CGO linking for the host. Since we use the same compiler for target
|
|
|
# and host, if the target can't do CGO linking, then the host can't.
|
|
@@ -57,7 +57,8 @@ if BR2_PACKAGE_HOST_GO
|
|
|
|
|
|
choice
|
|
|
prompt "Go compiler variant"
|
|
|
- default BR2_PACKAGE_HOST_GO_SRC
|
|
|
+ default BR2_PACKAGE_HOST_GO_SRC if BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS
|
|
|
+ default BR2_PACKAGE_HOST_GO_BIN if BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH_SUPPORTS
|
|
|
help
|
|
|
Select a Go compiler variant.
|
|
|
|
|
@@ -65,18 +66,27 @@ choice
|
|
|
|
|
|
config BR2_PACKAGE_HOST_GO_SRC
|
|
|
bool "host go (source)"
|
|
|
+ depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_STAGE3_ARCH_SUPPORTS
|
|
|
help
|
|
|
This package will build the go compiler for the host.
|
|
|
|
|
|
-endchoice
|
|
|
+config BR2_PACKAGE_HOST_GO_BIN
|
|
|
+ bool "host go (pre-built)"
|
|
|
+ depends on BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH_SUPPORTS
|
|
|
+ help
|
|
|
+ This package will install pre-built versions of the compiler
|
|
|
|
|
|
-endif
|
|
|
+endchoice
|
|
|
|
|
|
config BR2_PACKAGE_PROVIDES_HOST_GO
|
|
|
string
|
|
|
- # Default to host-go-src, as the only provider for now
|
|
|
- default "host-go-src"
|
|
|
+ # Default to host-go-src
|
|
|
+ default "host-go-src" if BR2_PACKAGE_HOST_GO_SRC
|
|
|
+ default "host-go-bin" if BR2_PACKAGE_HOST_GO_BIN
|
|
|
+
|
|
|
+endif
|
|
|
|
|
|
+source "package/go/go-bin/Config.in.host"
|
|
|
source "package/go/go-bootstrap-stage1/Config.in.host"
|
|
|
source "package/go/go-bootstrap-stage2/Config.in.host"
|
|
|
source "package/go/go-bootstrap-stage3/Config.in.host"
|