summaryrefslogtreecommitdiffstats
path: root/package/go
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-11-07 23:10:59 +0100
committerPeter Korsgaard <peter@korsgaard.com>2017-11-08 13:35:55 +0100
commita3fda8e292c4b5b98482b5b75f551476c570a034 (patch)
treed7f58aa4f3e68949dc598cd5760dae891fa2b4b4 /package/go
parent90d86994f86fec8578772a8a7465bf912c69e1ca (diff)
downloadbuildroot-a3fda8e292c4b5b98482b5b75f551476c570a034.tar.gz
buildroot-a3fda8e292c4b5b98482b5b75f551476c570a034.zip
go-bootstrap: add BR2_PACKAGE_HOST_GO_BOOTSTRAP_ARCH_SUPPORTS
go-bootstrap is a host package that builds a first stage Go compiler, later used to build the final Go compiler. However, this first stage compiler only supports building on x86, x86-64 and arm as host architectures, so we need to add the relevant architecture dependencies to avoid having go-bootstrap built on other unsupported platforms. We do this by introducing BR2_PACKAGE_HOST_GO_BOOTSTRAP_ARCH_SUPPORTS in a new package/go-bootstrap/Config.in.host file. This option is then used by BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS to make sure we can't enable Go packages when the host architecture doesn't allow building the Go compiler. Fixes: http://autobuild.buildroot.net/results/cbd419c6ab6fa8a6d18dc137c91f895867e53b8a/ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/go')
-rw-r--r--package/go/Config.in.host1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/go/Config.in.host b/package/go/Config.in.host
index a210033efd..c871ac4196 100644
--- a/package/go/Config.in.host
+++ b/package/go/Config.in.host
@@ -1,6 +1,7 @@
config BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
bool
default y
+ depends on BR2_PACKAGE_HOST_GO_BOOTSTRAP_ARCH_SUPPORTS
depends on (BR2_arm && BR2_TOOLCHAIN_SUPPORTS_PIE) || BR2_aarch64 \
|| BR2_i386 || BR2_x86_64 || BR2_powerpc64le \
|| BR2_mips64 || BR2_mips64el
OpenPOWER on IntegriCloud