initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
config BR2_PACKAGE_HOST_GO_BOOTSTRAP_ARCH_SUPPORTS
bool
# See src/cmd/dist/unix.c for the list of support
# architectures
default y if BR2_HOSTARCH = "x86"
default y if BR2_HOSTARCH = "x86_64"
default y if BR2_HOSTARCH = "arm"
+3
View File
@@ -0,0 +1,3 @@
# Locally computed:
sha256 f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52 go1.4-bootstrap-20171003.tar.gz
sha256 dd26a7abddd02e2d0aba97805b31f248ef7835d9e10da289b22e3b8ab78b324d LICENSE
+50
View File
@@ -0,0 +1,50 @@
################################################################################
#
# go-bootstrap
#
################################################################################
# Use last C-based Go compiler: v1.4.x
# See https://golang.org/doc/install/source#bootstrapFromSource
GO_BOOTSTRAP_VERSION = 1.4-bootstrap-20171003
GO_BOOTSTRAP_SITE = https://dl.google.com/go
GO_BOOTSTRAP_SOURCE = go$(GO_BOOTSTRAP_VERSION).tar.gz
GO_BOOTSTRAP_LICENSE = BSD-3-Clause
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)/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))