forked from batocera-linux/buildroot
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update go to buildroot master and incorporate patch for using binary …
…golang
- Loading branch information
1 parent
56dfb56
commit 92b0515
Showing
46 changed files
with
216 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -617,9 +617,6 @@ F: package/docker-engine/ | |
F: package/embiggen-disk/ | ||
F: package/fuse-overlayfs/ | ||
F: package/go/ | ||
F: package/go-bootstrap-stage1/ | ||
F: package/go-bootstrap-stage2/ | ||
F: package/go-bootstrap-stage3/ | ||
F: package/gocryptfs/ | ||
F: package/mbpfan/ | ||
F: package/moby-buildkit/ | ||
|
@@ -3039,6 +3036,9 @@ F: package/frotz/ | |
F: package/kvm-unit-tests/ | ||
F: package/xorcurses/ | ||
|
||
N: Thomas Perale <[email protected]> | ||
F: package/go/ | ||
|
||
N: Thomas Petazzoni <[email protected]> | ||
F: arch/Config.in.arm | ||
F: board/beaglev/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
config BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH | ||
string "Translate the HOSTARCH into the architecture name used by the Go compiler" | ||
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 != "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# sha256 checksum from https://go.dev/dl/ | ||
sha256 ac9c723f224969aee624bc34fd34c9e13f2a212d75c71c807de644bb46e112f6 go1.22.5.src.tar.gz | ||
sha256 3ea4c78e6fa52978ae1ed2e5927ad17495da440c9fae7787b1ebc1d0572f7f43 go1.22.5.linux-386.tar.gz | ||
sha256 904b924d435eaea086515bc63235b192ea441bd8c9b198c507e85009e6e4c7f0 go1.22.5.linux-amd64.tar.gz | ||
sha256 8d21325bfcf431be3660527c1a39d3d9ad71535fabdf5041c826e44e31642b5a go1.22.5.linux-arm64.tar.gz | ||
sha256 8c4587cf3e63c9aefbcafa92818c4d9d51683af93ea687bf6c7508d6fa36f85e go1.22.5.linux-armv6l.tar.gz | ||
sha256 5312bb420ac0b59175a58927e70b4660b14ab7319aab54398b6071fabcbfbb09 go1.22.5.linux-ppc64le.tar.gz | ||
sha256 24c6c5c9d515adea5d58ae78388348c97614a0c21ac4d4f4c0dab75e893b0b5d go1.22.5.linux-s390x.tar.gz | ||
sha256 2d36597f7117c38b006835ae7f537487207d8ec407aa9d9980794b2030cbc067 LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
################################################################################ | ||
# | ||
# go-bin | ||
# | ||
################################################################################ | ||
|
||
GO_BIN_SITE = https://go.dev/dl | ||
HOST_GO_BIN_ACTUAL_SOURCE_TARBALL = go$(GO_VERSION).src.tar.gz | ||
GO_BIN_LICENSE = BSD-3-Clause | ||
GO_BIN_LICENSE_FILES = LICENSE | ||
|
||
HOST_GO_BIN_PROVIDES = host-go | ||
|
||
HOST_GO_BIN_SOURCE = go$(GO_VERSION).linux-$(call qstrip, $(BR2_PACKAGE_HOST_GO_BIN_HOST_ARCH)).tar.gz | ||
|
||
define HOST_GO_BIN_INSTALL_CMDS | ||
$(GO_BINARIES_INSTALL) | ||
endef | ||
|
||
$(eval $(host-generic-package)) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
################################################################################ | ||
# | ||
# go-src | ||
# | ||
################################################################################ | ||
|
||
GO_SRC_SITE = https://storage.googleapis.com/golang | ||
GO_SRC_SOURCE = go$(GO_VERSION).src.tar.gz | ||
|
||
GO_SRC_LICENSE = BSD-3-Clause | ||
GO_SRC_LICENSE_FILES = LICENSE | ||
GO_SRC_CPE_ID_VENDOR = golang | ||
|
||
HOST_GO_SRC_PROVIDES = host-go | ||
HOST_GO_SRC_DEPENDENCIES = \ | ||
host-go-bootstrap-stage3 \ | ||
$(HOST_GO_DEPENDENCIES_CGO) | ||
|
||
ifeq ($(BR2_PACKAGE_HOST_GO_TARGET_ARCH_SUPPORTS),y) | ||
|
||
HOST_GO_SRC_CROSS_ENV = \ | ||
CC_FOR_TARGET="$(TARGET_CC)" \ | ||
CXX_FOR_TARGET="$(TARGET_CXX)" \ | ||
GOOS="linux" \ | ||
GOARCH=$(GO_GOARCH) \ | ||
$(if $(GO_GO386),GO386=$(GO_GO386)) \ | ||
$(if $(GO_GOARM),GOARM=$(GO_GOARM)) \ | ||
GO_ASSUME_CROSSCOMPILING=1 | ||
|
||
endif | ||
|
||
# The go build system is not compatible with ccache, so use | ||
# HOSTCC_NOCCACHE. See https://github.com/golang/go/issues/11685. | ||
HOST_GO_SRC_MAKE_ENV = \ | ||
GO111MODULE=off \ | ||
GOCACHE=$(HOST_GO_HOST_CACHE) \ | ||
GOROOT_BOOTSTRAP=$(HOST_GO_BOOTSTRAP_STAGE3_ROOT) \ | ||
GOROOT_FINAL=$(HOST_GO_ROOT) \ | ||
GOROOT="$(@D)" \ | ||
GOBIN="$(@D)/bin" \ | ||
GOOS=linux \ | ||
CC=$(HOSTCC_NOCCACHE) \ | ||
CXX=$(HOSTCXX_NOCCACHE) \ | ||
CGO_ENABLED=$(HOST_GO_CGO_ENABLED) \ | ||
$(HOST_GO_SRC_CROSS_ENV) | ||
|
||
define HOST_GO_SRC_BUILD_CMDS | ||
cd $(@D)/src && \ | ||
$(HOST_GO_SRC_MAKE_ENV) ./make.bash $(if $(VERBOSE),-v) | ||
endef | ||
|
||
define HOST_GO_SRC_INSTALL_CMDS | ||
$(GO_BINARIES_INSTALL) | ||
endef | ||
|
||
$(eval $(host-generic-package)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.