Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cbcbb7aab1 | |||
| b35091298f | |||
| a329fe126e | |||
| ff07745507 | |||
| 584c3c9044 | |||
| 51b4eb29db | |||
| 95bb90611c | |||
| 56b6d276da | |||
| 654787fe39 | |||
| b8364d8e2b | |||
| 65fd70b810 | |||
| 4d5f77bd76 | |||
| d8d5e05fa4 | |||
| 3bfbdf1622 |
@@ -4,5 +4,5 @@
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
rm -rf feeds/packages/lang/golang
|
rm -rf feeds/packages/lang/golang
|
||||||
svn export https://github.com/sbwml/packages_lang_golang/trunk feeds/packages/lang/golang
|
git clone https://github.com/sbwml/packages_lang_golang -b 20.x feeds/packages/lang/golang
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -73,9 +73,6 @@ define GoCompiler/Default/Install/Bin
|
|||||||
$(INSTALL_BIN) -p "$(1)/bin/$(4)"/* "$(2)/lib/go-$(3)/bin/"
|
$(INSTALL_BIN) -p "$(1)/bin/$(4)"/* "$(2)/lib/go-$(3)/bin/"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg"
|
|
||||||
$(CP) "$(1)/pkg/$(4)$(if $(5),_$(5))" "$(2)/lib/go-$(3)/pkg/"
|
|
||||||
|
|
||||||
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg/tool/$(4)"
|
$(INSTALL_DIR) "$(2)/lib/go-$(3)/pkg/tool/$(4)"
|
||||||
$(INSTALL_BIN) -p "$(1)/pkg/tool/$(4)"/* "$(2)/lib/go-$(3)/pkg/tool/$(4)/"
|
$(INSTALL_BIN) -p "$(1)/pkg/tool/$(4)"/* "$(2)/lib/go-$(3)/pkg/tool/$(4)/"
|
||||||
endef
|
endef
|
||||||
|
|||||||
+17
-9
@@ -7,8 +7,8 @@
|
|||||||
|
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
GO_VERSION_MAJOR_MINOR:=1.19
|
GO_VERSION_MAJOR_MINOR:=1.20
|
||||||
GO_VERSION_PATCH:=3
|
GO_VERSION_PATCH:=9
|
||||||
|
|
||||||
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:=18ac263e39210bcf68d85f4370e97fb1734166995a1f63fb38b4f6e07d90d212
|
PKG_HASH:=4923920381cd71d68b527761afefa523ea18c5831b4795034c827e18b685cdcf
|
||||||
|
|
||||||
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
|
||||||
@@ -58,6 +58,7 @@ HOST_GO_VALID_OS_ARCH:= \
|
|||||||
\
|
\
|
||||||
dragonfly_amd64 \
|
dragonfly_amd64 \
|
||||||
illumos_amd64 \
|
illumos_amd64 \
|
||||||
|
freebsd_riscv64 \
|
||||||
solaris_amd64 \
|
solaris_amd64 \
|
||||||
\
|
\
|
||||||
aix_ppc64 \
|
aix_ppc64 \
|
||||||
@@ -66,12 +67,23 @@ HOST_GO_VALID_OS_ARCH:= \
|
|||||||
linux_ppc64 linux_ppc64le \
|
linux_ppc64 linux_ppc64le \
|
||||||
linux_mips linux_mipsle linux_mips64 linux_mips64le \
|
linux_mips linux_mipsle linux_mips64 linux_mips64le \
|
||||||
linux_riscv64 linux_s390x \
|
linux_riscv64 linux_s390x \
|
||||||
|
linux_loong64 \
|
||||||
\
|
\
|
||||||
openbsd_mips64
|
openbsd_mips64
|
||||||
|
|
||||||
BOOTSTRAP_SOURCE:=go1.4-bootstrap-20171003.tar.gz
|
ifeq ($(HOST_ARCH),x86_64)
|
||||||
|
PKG_ARCH:=amd64
|
||||||
|
SHA256:=550f9845451c0c94be679faf116291e7807a8d78b43149f9506c1b15eb89008c
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(HOST_ARCH),aarch64)
|
||||||
|
PKG_ARCH:=arm64
|
||||||
|
SHA256:=06f505c8d27203f78706ad04e47050b49092f1b06dc9ac4fbee4f0e4d015c8d4
|
||||||
|
endif
|
||||||
|
|
||||||
|
BOOTSTRAP_SOURCE:=go1.17.3.linux-$(PKG_ARCH).tar.gz
|
||||||
BOOTSTRAP_SOURCE_URL:=$(GO_SOURCE_URLS)
|
BOOTSTRAP_SOURCE_URL:=$(GO_SOURCE_URLS)
|
||||||
BOOTSTRAP_HASH:=f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52
|
BOOTSTRAP_HASH:=$(SHA256)
|
||||||
|
|
||||||
BOOTSTRAP_BUILD_DIR:=$(HOST_BUILD_DIR)/.go_bootstrap
|
BOOTSTRAP_BUILD_DIR:=$(HOST_BUILD_DIR)/.go_bootstrap
|
||||||
|
|
||||||
@@ -213,10 +225,6 @@ define Host/Compile
|
|||||||
|
|
||||||
mkdir -p "$(GO_BUILD_CACHE_DIR)"
|
mkdir -p "$(GO_BUILD_CACHE_DIR)"
|
||||||
|
|
||||||
$(call GoCompiler/Bootstrap/Make, \
|
|
||||||
$(HOST_GO_VARS) \
|
|
||||||
)
|
|
||||||
|
|
||||||
$(call GoCompiler/Host/Make, \
|
$(call GoCompiler/Host/Make, \
|
||||||
GOROOT_BOOTSTRAP="$(BOOTSTRAP_ROOT_DIR)" \
|
GOROOT_BOOTSTRAP="$(BOOTSTRAP_ROOT_DIR)" \
|
||||||
$(if $(HOST_GO_ENABLE_PIE),GO_LDFLAGS="-buildmode pie") \
|
$(if $(HOST_GO_ENABLE_PIE),GO_LDFLAGS="-buildmode pie") \
|
||||||
|
|||||||
Reference in New Issue
Block a user