mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 10:31:51 +00:00
Update Golang
This commit is contained in:
parent
8deaac50ef
commit
f83ffd5266
4 changed files with 10 additions and 12 deletions
|
@ -120,7 +120,7 @@ build() {
|
||||||
if [ "$GO_GO_GENERATE" = 1 ]; then
|
if [ "$GO_GO_GENERATE" = 1 ]; then
|
||||||
log "Calling go generate"
|
log "Calling go generate"
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
GOOS='' GOARCH='' GO386='' GOARM='' GOMIPS='' GOMIPS64='' \
|
GOOS='' GOARCH='' GO386='' GOARM='' GOARM64='' GOMIPS='' GOMIPS64='' GORISCV64=''\
|
||||||
go generate -v $targets
|
go generate -v $targets
|
||||||
log
|
log
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -19,14 +19,11 @@ define GoCompiler/Default/CheckHost
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# $(1) source go root
|
# $(1) source go root
|
||||||
# $(2) destination prefix
|
# $(2) additional environment variables (optional)
|
||||||
# $(3) go version id
|
|
||||||
# $(4) additional environment variables (optional)
|
|
||||||
define GoCompiler/Default/Make
|
define GoCompiler/Default/Make
|
||||||
( \
|
( \
|
||||||
cd "$(1)/src" ; \
|
cd "$(1)/src" ; \
|
||||||
$(if $(2),GOROOT_FINAL="$(2)/lib/go-$(3)") \
|
$(2) \
|
||||||
$(4) \
|
|
||||||
$(BASH) make.bash \
|
$(BASH) make.bash \
|
||||||
$(if $(findstring s,$(OPENWRT_VERBOSE)),-v) \
|
$(if $(findstring s,$(OPENWRT_VERBOSE)),-v) \
|
||||||
--no-banner \
|
--no-banner \
|
||||||
|
@ -156,7 +153,7 @@ define GoCompiler/AddProfile
|
||||||
|
|
||||||
# $$(1) additional environment variables (optional)
|
# $$(1) additional environment variables (optional)
|
||||||
define GoCompiler/$(1)/Make
|
define GoCompiler/$(1)/Make
|
||||||
$$(call GoCompiler/Default/Make,$(2),$(3),$(4),$$(1))
|
$$(call GoCompiler/Default/Make,$(2),$$(1))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
# $$(1) override install prefix (optional)
|
# $$(1) override install prefix (optional)
|
||||||
|
|
|
@ -59,11 +59,13 @@ unexport \
|
||||||
# Architecture-specific environment variables:
|
# Architecture-specific environment variables:
|
||||||
unexport \
|
unexport \
|
||||||
GOARM \
|
GOARM \
|
||||||
|
GOARM64 \
|
||||||
GO386 \
|
GO386 \
|
||||||
GOAMD64 \
|
GOAMD64 \
|
||||||
GOMIPS \
|
GOMIPS \
|
||||||
GOMIPS64 \
|
GOMIPS64 \
|
||||||
GOPPC64 \
|
GOPPC64 \
|
||||||
|
GORISCV64 \
|
||||||
GOWASM
|
GOWASM
|
||||||
|
|
||||||
# Environment variables for use with code coverage:
|
# Environment variables for use with code coverage:
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
GO_VERSION_MAJOR_MINOR:=1.22
|
GO_VERSION_MAJOR_MINOR:=1.23
|
||||||
GO_VERSION_PATCH:=0
|
GO_VERSION_PATCH:=4
|
||||||
|
|
||||||
PKG_NAME:=golang
|
PKG_NAME:=golang
|
||||||
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
|
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
|
||||||
|
@ -20,7 +20,7 @@ GO_SOURCE_URLS:=https://dl.google.com/go/ \
|
||||||
|
|
||||||
PKG_SOURCE:=go$(PKG_VERSION).src.tar.gz
|
PKG_SOURCE:=go$(PKG_VERSION).src.tar.gz
|
||||||
PKG_SOURCE_URL:=$(GO_SOURCE_URLS)
|
PKG_SOURCE_URL:=$(GO_SOURCE_URLS)
|
||||||
PKG_HASH:=4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c
|
PKG_HASH:=ad345ac421e90814293a9699cca19dd5238251c3f687980bbcae28495b263531
|
||||||
|
|
||||||
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
||||||
PKG_LICENSE:=BSD-3-Clause
|
PKG_LICENSE:=BSD-3-Clause
|
||||||
|
@ -34,7 +34,6 @@ PKG_BUILD_FLAGS:=no-mips16
|
||||||
|
|
||||||
PKG_GO_PREFIX:=/usr
|
PKG_GO_PREFIX:=/usr
|
||||||
PKG_GO_VERSION_ID:=$(GO_VERSION_MAJOR_MINOR)
|
PKG_GO_VERSION_ID:=$(GO_VERSION_MAJOR_MINOR)
|
||||||
PKG_GO_ROOT:=$(PKG_GO_PREFIX)/lib/go-$(PKG_GO_VERSION_ID)
|
|
||||||
|
|
||||||
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/go-$(PKG_VERSION)
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/go-$(PKG_VERSION)
|
||||||
HOST_BUILD_PARALLEL:=1
|
HOST_BUILD_PARALLEL:=1
|
||||||
|
@ -65,6 +64,7 @@ HOST_GO_VALID_OS_ARCH:= \
|
||||||
wasip1_wasm \
|
wasip1_wasm \
|
||||||
\
|
\
|
||||||
freebsd_riscv64 \
|
freebsd_riscv64 \
|
||||||
|
openbsd_riscv64 \
|
||||||
\
|
\
|
||||||
linux_ppc64 linux_ppc64le \
|
linux_ppc64 linux_ppc64le \
|
||||||
linux_mips linux_mipsle linux_mips64 linux_mips64le \
|
linux_mips linux_mipsle linux_mips64 linux_mips64le \
|
||||||
|
@ -394,7 +394,6 @@ define Build/Compile
|
||||||
cd "$(PKG_BUILD_DIR)/bin" ; \
|
cd "$(PKG_BUILD_DIR)/bin" ; \
|
||||||
export $(GO_PKG_TARGET_VARS) ; \
|
export $(GO_PKG_TARGET_VARS) ; \
|
||||||
$(CP) go go-host ; \
|
$(CP) go go-host ; \
|
||||||
GOROOT_FINAL="$(PKG_GO_ROOT)" \
|
|
||||||
GO_GCC_HELPER_CC="$(TARGET_CC)" \
|
GO_GCC_HELPER_CC="$(TARGET_CC)" \
|
||||||
GO_GCC_HELPER_CXX="$(TARGET_CXX)" \
|
GO_GCC_HELPER_CXX="$(TARGET_CXX)" \
|
||||||
$(PKG_GO_VARS) \
|
$(PKG_GO_VARS) \
|
||||||
|
|
Loading…
Reference in a new issue