aboutsummaryrefslogtreecommitdiff
path: root/lang/golang/golang-values.mk
Commit message (Collapse)AuthorAge
* golang: Update to 1.21.0, remove patchJeffery To2023-08-15
| | | | | | | | | | | | | | Upstream has updated the Go compiler to not use gold when building for arm, and is waiting for a fix to binutils (released in 2.41) before doing the same for aarch64.[1] Based on the above, it does not appear that https://github.com/golang/go/pull/49748 will be merged. This removes the patch from that pull request. [1]: https://github.com/golang/go/issues/22040 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.20.6Jeffery To2023-07-17
| | | | | | | | | | Includes fix for CVE-2023-29406 (net/http: insufficient sanitization of Host header). This also updates the copyright information for various Go packaging files. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Enable riscv64 for Go compiler and packagesJeffery To2023-06-04
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.20.2, refresh patchJeffery To2023-03-20
| | | | | | | | | | | | | | | | | | | Includes fixes for: * 1.20.1: * CVE-2022-41722: path/filepath: path traversal in filepath.Clean on Windows * CVE-2022-41723: net/http: avoid quadratic complexity in HPACK decoding * CVE-2022-41724: crypto/tls: large handshake records may cause panics * CVE-2022-41725: net/http, mime/multipart: denial of service from excessive resource consumption * 1.20.2: * CVE-2023-24532: crypto/elliptic: specific unreduced P-256 scalars produce incorrect results Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.19.7Jeffery To2023-03-14
| | | | | | | | | Includes fix for CVE-2023-2453 (crypto/elliptic: specific unreduced P-256 scalars produce incorrect results). This also includes makefile updates for Go 1.19. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.18, update patchJeffery To2022-03-28
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.17Jeffery To2021-08-23
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.16Jeffery To2021-02-22
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Fix vars not passed when calling cache_cleanupJeffery To2020-10-16
| | | | | | Fixes https://github.com/openwrt/packages/issues/13674. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Move build cache into $(TMP_DIR)Jeffery To2020-10-16
| | | | | | | | | | | | | This changes the default build cache directory from $(TOPDIR)/.go-build to $(TMP_DIR)/go-build, so that the cache directory is ignored by git and is removed by "make dirclean". This does not move/remove a build cache directory in the previous location; it will need to be removed manually. Fixes https://github.com/openwrt/packages/issues/13675. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Add option to enable Spectre mitigationsJeffery To2020-10-06
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Move package scripts into golang-build.shJeffery To2020-10-06
| | | | | | | | This also adds GO_PKG_INSTALL_BIN_PATH which determines the path where binaries are installed by GoPackage/Package/Install/Bin (this was previously hard-coded to /usr/bin). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Share build cache across package buildsJeffery To2020-10-06
| | | | | | | This also adds a config option GOLANG_BUILD_CACHE_DIR to customize the location of the build cache directory. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Move module cache into DL_DIRJeffery To2020-10-06
| | | | | | | | This also adds a config option GOLANG_MOD_CACHE_WORLD_READABLE; if enabled, chmod is run after a Go package build to make all files/directories in the module cache world-readable. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.15.2Jeffery To2020-10-05
| | | | | | | | 1.15.1 includes a fix for CVE-2020-24553: net/http/cgi,net/http/fcgi: Cross-Site Scripting (XSS) when Content-Type is not specified Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Blacklist older (or no) FPUs rather than whitelist newer FPUsJeffery To2020-05-13
| | | | | | | This should be more future-proof (presumably all future ARM FPUs will be at least VFPv3). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.14Jeffery To2020-03-05
| | | | Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Reorganize GoPackage/Environment and Makefile variablesJeffery To2020-02-05
| | | | | | | | | | | | | | | * Move more environment variables into GoPackage/Environment * Split GoPackage/Environment into target and build sections * Do not set GOROOT_FINAL for Go packages (setting it should only affect the Go compiler and not Go packages) * Set CGO_LDFLAGS to $(TARGET_LDFLAGS) * Move GO_TARGET_* variables from golang-values.mk, and GO_VERSION_* variables from golang-version.mk, into golang/Makefile This also updates runc, containerd, and docker-ce to reflect the changes in GoPackage/Environment. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Fix selection of GOARM valueJeffery To2020-01-14
| | | | | | | | | This fixes how GOARM is selected for arm platforms, based on support for VFP/VFPv3 rather than CPU version. Fixes #10967. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Add support for ASLR/PIE for host and target GoJeffery To2020-01-08
| | | | | | | | | | | | | | | | | This adds support to compile host and target Go as position-independent executables. Host Go will have PIE enabled if Go supports PIE on the host platform. Target Go will have PIE enabled if Go supports PIE on the target platform and CONFIG_PKG_ASLR_PIE is selected. Go 1.13 supports PIE for x86 and arm targets; mips support is in progress[1]. [1]: https://github.com/golang/go/issues/21222#issuecomment-542064462 Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Make golang-values.mk more readableJeffery To2020-01-08
| | | | | | | This replaces conditional functions with conditional directives to make golang-values.mk more readable. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update variables unexported in golang-values.mkJeffery To2020-01-08
| | | | | | The lists of variables are updated for Go 1.13. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Re-format environment variable unexportsJeffery To2020-01-08
| | | | | | | | | | This changes the formatting of environment variable unexports in golang-values.mk to be more maintainable, and to document the sources of variables. There should be no change to the actual list of variables unexported. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Use new -trimpath option when compiling Go packagesJeffery To2019-09-13
| | | | | | | | | | | | | | Go 1.13 added a new -trimpath option to the "go build" command[1] that removes system paths from compiled executables. This replaces the previous -trimpath flags. There are still system paths in the compiled executable (for crti.o and crtn.o, when cross-compiling); these appear to be stripped during the packaging process. [1]: https://golang.org/doc/go1.13#trimpath Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Add support for setting gcflags/ldflags from package MakefileJeffery To2019-03-21
| | | | | | | | | | | | | | | | This adds several variables for Go package Makefiles: * GO_PKG_GCFLAGS - go tool compile arguments * GO_PKG_LDFLAGS - go tool link arguments * GO_PKG_LDFLAGS_X - go tool link -X definitions Settings these will add the corresponding flags to the go install command line. (Other command line arguments can still be added by passing them as the first argument to GoPackage/Build/Compile.) This also adds Go's runtime environment variables (GOGC, GOMAXPROCS, GOTRACEBACK) to the unexport list. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Ignore GOFLAGS, GO111MODULE environment variablesJeffery To2019-02-11
| | | | | | These were added in Go 1.11. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: Update to 1.11.1, add mips64 / mips64el buildsJeffery To2018-10-13
| | | | | | | | | Go 1.11 added softfloat support for 64-bit MIPS systems[1], so this also adds builds for mips64 and mips64el. [1] https://golang.org/doc/go1.11#mips Signed-off-by: Jeffery To <jeffery.to@gmail.com>
* golang: new packagesJeffery To2018-03-21
From golang.org: The Go programming language is an open source project to make programmers more productive. This commit consists of two "parts": * golang/host: Main Go compiler for host (installed to STAGING_DIR_HOST/lib/go-cross), used to cross-compile Go programs to be packaged. * golang (and golang-src/golang-doc): Main Go compiler for on-target development. These packages are quite large, but I would expect only developers to install these. Signed-off-by: Jeffery To <jeffery.to@gmail.com>