17a82fc253
This bump includes https://go.googlesource.com/go/+/a527bdbda39c48fa772d8d54eb6b849f240442c1 which fixes a gcc6-related compile error cmd/6c /home/buildroot/br2/output/build/host-go-bootstrap-1.4.2/src/cmd/6c/txt.c: In function 'gmove': /home/buildroot/br2/output/build/host-go-bootstrap-1.4.2/src/cmd/6c/txt.c:995:28: error: left shift of negative value [-Werror=shift-negative-value] f->vconst |= (vlong)~0 << 32; ^~ /home/buildroot/br2/output/build/host-go-bootstrap-1.4.2/src/cmd/6c/txt.c:1045:28: error: left shift of negative value [-Werror=shift-negative-value] f->vconst |= (vlong)~0 << 32; ^~ cc1: all warnings being treated as errors not yet caught by autobuilders using this defconfig: http://autobuild.buildroot.net/results/394/394e22be0ef986463e97b3040dad8f978262732c/ Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
49 lines
1.6 KiB
Makefile
49 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# go-bootstrap
|
|
#
|
|
################################################################################
|
|
|
|
GO_BOOTSTRAP_VERSION = 1.4.3
|
|
GO_BOOTSTRAP_SITE = https://storage.googleapis.com/golang
|
|
GO_BOOTSTRAP_SOURCE = go$(GO_BOOTSTRAP_VERSION).src.tar.gz
|
|
|
|
GO_BOOTSTRAP_LICENSE = BSD-3c
|
|
GO_BOOTSTRAP_LICENSE_FILES = LICENSE
|
|
|
|
# To build programs that need cgo support the toolchain needs to be
|
|
# available, so the toolchain is not needed to build host-go-bootstrap
|
|
# itself, but needed by other packages that depend on
|
|
# host-go-bootstrap.
|
|
HOST_GO_BOOTSTRAP_DEPENDENCIES = toolchain
|
|
|
|
HOST_GO_BOOTSTRAP_ROOT = $(HOST_DIR)/usr/lib/go-$(GO_BOOTSTRAP_VERSION)
|
|
|
|
# The go build system is not compatable with ccache, so use HOSTCC_NOCCACHE
|
|
# here. See https://github.com/golang/go/issues/11685.
|
|
HOST_GO_BOOTSTRAP_MAKE_ENV = \
|
|
GOOS=linux \
|
|
GOROOT_FINAL="$(HOST_GO_BOOTSTRAP_ROOT)" \
|
|
GOROOT="$(@D)" \
|
|
GOBIN="$(@D)/bin" \
|
|
CC=$(HOSTCC_NOCCACHE) \
|
|
CGO_ENABLED=0
|
|
|
|
define HOST_GO_BOOTSTRAP_BUILD_CMDS
|
|
cd $(@D)/src && $(HOST_GO_BOOTSTRAP_MAKE_ENV) ./make.bash
|
|
endef
|
|
|
|
define HOST_GO_BOOTSTRAP_INSTALL_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/bin/go $(HOST_GO_BOOTSTRAP_ROOT)/bin/go
|
|
$(INSTALL) -D -m 0755 $(@D)/bin/gofmt $(HOST_GO_BOOTSTRAP_ROOT)/bin/gofmt
|
|
|
|
cp -a $(@D)/lib $(HOST_GO_BOOTSTRAP_ROOT)/
|
|
cp -a $(@D)/pkg $(HOST_GO_BOOTSTRAP_ROOT)/
|
|
|
|
# There is a known issue which requires the go sources to be installed
|
|
# https://golang.org/issue/2775
|
|
cp -a $(@D)/src $(HOST_GO_BOOTSTRAP_ROOT)/
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|