This package provides a pre-built version for the host-go virtual package introduced in the previous commits: - host-go-bin installs a pre-built version of the Go compiler. By default, host-go remains built from sources to keep the same behavior as the former version. The menuconfig entry for host-go is updated to expose the host-go-bin provider. The dependencies are set as such as if host-go-src does not support the host architecture, it will automatically fall back to host-go-bin and vice versa. Signed-off-by: Thomas Perale <thomas.perale@mind.be> [yann.morin.1998@free.fr: - update hashes for 1.22.7 - add hash for the source tarball - set _DL_SUBDIR - don't set a prompt to BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
15 lines
509 B
Plaintext
15 lines
509 B
Plaintext
# Translate the HOSTARCH into the architecture name used by the Go compiler
|
|
config BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH
|
|
string
|
|
default "armv6l" if BR2_HOSTARCH = "arm"
|
|
default "arm64" if BR2_HOSTARCH = "aarch64"
|
|
default "ppc64le" if BR2_HOSTARCH = "powerpc64le"
|
|
default "s390x" if BR2_HOSTARCH = "s390x"
|
|
default "386" if BR2_HOSTARCH = "x86"
|
|
default "amd64" if BR2_HOSTARCH = "x86_64"
|
|
|
|
config BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH_SUPPORTS
|
|
bool
|
|
default y
|
|
depends on BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH != ""
|